; -------------------------- Run as Administrator --------------------------
full_command_line := DllCall("GetCommandLine", "str")
If not (A_IsAdmin or RegExMatch(full_command_line, " /restart(?!\S)"))
{
Try
{
If A_IsCompiled
Run *RunAs "%A_ScriptFullPath%" /restart
Else
Run *RunAs "%A_AhkPath%" /restart "%A_ScriptFullPath%"
}
ExitApp
}
; -------------------------- Run as Administrator --------------------------
#NoEnv ;optional
SetWorkingDir %A_ScriptDir% ;optional
SendMode Input ;optional
#SingleInstance Force ;optional
SetTitleMatchMode 2 ;optional
;DetectHiddenWindows, On ;optional
#WinActivateForce ;optional
SetControlDelay -1 ;optional
SetWinDelay -1 ;optional
SetKeyDelay -1 ;optional
SetMouseDelay -1 ;optional
SetBatchLines -1
#UseHook ;optional
#Persistent ;optional
;#NoTrayIcon ;optional
Process , Priority, , High ;optional
;=========================================================
#Include, ImagePut.ahk
;=========================================================
;imagepath:="D:\桌面\答题.png" ;optional
;=========================================================
Suspend On
;FileSelectFile, imagepath ;optional
Suspend, Off
;imagetitle:="答题" ;optional
;=========================================================
zoom:=1
Return
WheelDown::
zoom-=0.1
WinClose, ahk_id %windowsid%
windowsid:= ImagePut("window",{image: imagepath,crop: [0, "0%", "100%", "100%"],scale: zoom},imagetitle) ;crop字段为optional
ToolTip, % "缩放率:" Round(zoom,1) "`n小键盘*:冻结窗口"
Return
Wheelup::
zoom+=0.1
WinClose, ahk_id %windowsid%
windowsid:= ImagePut("window",{image: imagepath,crop: [0, "0%", "100%", "100%"],scale: zoom},imagetitle) ;crop字段为optional
ToolTip, % "缩放率:" Round(zoom,1) "`n小键盘*:冻结窗口"
Return
NumpadMult::
ToolTip
Suspend On
Pause
Return
F8::ExitApp
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
不解释一下这是干什么用的么?