自己用ahk的命令写了个函数,来完成一些找标题,找坐标和代码补全,名字纯属恶趣味
; Generated by Auto-GUI 3.0.1
#SingleInstance Force
#NoEnv
SetWorkingDir %A_ScriptDir%
SetBatchLines -1
Menu Tray, Icon, shell32.dll, 233
Gui +Resize +AlwaysOnTop
Gui Font, s9, Segoe UI
Gui Color, 0x00FF40
Gui, Add, Text, Right y+10,Change Mode
Gui, add, DropDownList, vwhat x+10 gtest,WindowsPos||Title|ProcessName
Gui, add, DropDownList, vhow x+10 gtest,WinWait|click||WinActivate|MsgBox|#IfWinActive|GroupAdd|MsgBox
Gui, add, DropDownList, vwhere x+10 gtest,SciTE||code
Gui, Show
Return
GuiSize:
If (A_EventInfo == 1) {
Return
}
Return
GuiEscape:
GuiClose:
ExitApp
test:
Gui, submit, NoHide
Return
F12::
Gui, submit, NoHide
InfoGet(what,how,where)
return
InfoGet(what,how,where){
Clipboard:=""
switch what
{
case "WindowsPos":
MouseGetPos, xpos, ypos
case "Title":
WinGetTitle, Title, A
case "ProcessName":
WinGet,ProcessName,ProcessName ,A
}
switch how
{
case "WinWait":
clipboard:="WinWait," Title
ClipWait,2
case "click":
Clipboard:="click," xpos "," ypos ","
ClipWait,2
case "WinActivate":
Clipboard:="ahk_exe "ProcessName
ClipWait,2
case "#IfWinActive":
Clipboard:="#IfWinActive ahk_exe " ProcessName
ClipWait,2
case "GroupAdd":
Clipboard:="GroupAdd, ,ahk_exe " ProcessName Title
ClipWait,2
case "MsgBox":
MsgBox % ProcessName Title xpos ypos
}
switch where
{
case "SciTE":
WinActivate ahk_class SciTEWindow
case "code":
WinActivate ahk_exe code.exe
}
return Clipboard
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。