想要通过autohotkey(AHK)自动点击搜索按钮,填写搜索磁盘和搜索内容,实现Total commander的文本自动搜索
; Alt-Shift-W (Run or activate Total Commander)
!+w::
if not WinExist( "ahk_class TTOTAL_CMD" )
Run "D:\Program Files\totalcmd\totalcmd64.exe"
目前代码只能通过快捷键Alt-Shift-W启动Total Commander
使用sendmessage函数调用Total commander的内部命令(.INC),但是里面的命令都是数字化,不知道能不能输入文本,使用WinGetText,WinGetTitle等函数获取搜索框。
通过AHK代码实现从步骤1到步骤5的全过程,最终实现自动搜索文本文件。