解决ahkspy有时候不能读太长的标题

自己用ahk的命令写了个函数,来完成一些找标题,找坐标和代码补全,名字纯属恶趣味

解决ahkspy有时候不能读太长的标题

; 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
}




给TA捐赠
共{{data.count}}人
人已捐赠
其他

自己整的社保计算器

2022-3-5 16:19:34

其他

音量控制——win 桌面美化

2022-3-5 18:02:20

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
有新私信 私信列表
搜索