Autohotkey 自动热键控件设置文本
我正在尝试更改窗口的内容。我的代码结尾如下:Autohotkey 自动热键控件设置文本,autohotkey,Autohotkey,我正在尝试更改窗口的内容。我的代码结尾如下: ... ControlFocus, SysListView321, A ControlGet, CtrlText, List,, SysListView321, A ; MsgBox %CtrlText% ; This shows the correct contents, as expected 我现在想更改上面的内容。使用Window Spy,我确定: ClassNN = SysListView321 Text = List1 我一次尝试
...
ControlFocus, SysListView321, A
ControlGet, CtrlText, List,, SysListView321, A
; MsgBox %CtrlText% ; This shows the correct contents, as expected
我现在想更改上面的内容。使用Window Spy,我确定:
ClassNN = SysListView321
Text = List1
我一次尝试了以下方法:
ControlSetText, SysListView321, New Text Here, A
ControlSetText, List1, New Text Here, A
两者都没有任何效果
我缺少什么?这里的问题是您使用的是ListView。无法使用ListView控制SetText。。。必须选择已存在的行,或添加该行,然后选择该行。事实上,ListView有一整套纯粹属于它们的函数。它们的前缀都是LV_。您正在寻找LV_添加或LV_修改