解决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管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
有新私信 私信列表
搜索