自己用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
}