[-AI-] 動態CLASSNN

看板EzHotKey作者 (搞不定嗎用C4就對了)時間2年前 (2022/05/25 13:13), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
解決按鈕開啟CLASS 固定是WindowsForms10.BUTTON.app.0.378734a, 但是INSTANCE每次都可能變動 靠文字比對,取得當下的 CLASSNN get ID or ClassNN for a control/button? - AutoIt General Help and Support - AutoIt Forums https://www.autoitscript.com/forum/topic/55372 -get-id-or-classnn-for-a-controlbutton/ $title = "Marshmallow Fluff Installer" $text = "" $checktext = "I understand by leaving this box checked I will be allowing the Marshmallow Fluff Overlord to " $i = 1 While Not @error = 1 If ControlCommand($title, $text, "Button" & $i, "IsVisible", "") Then $text = ControlGetText($title, $text, "Button" & $i) If StringInStr($text, $checktext) Then If ControlCommand($title, $text, "Button" & $i, "IsChecked", "") Then ControlFocus($title, $text, "Button" & $i) ControlClick($title, $text, "Button" & $i) EndIf MsgBox(64, "Unchecked", $text) EndIf EndIf $i += 1 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 60.250.204.229 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/EzHotKey/M.1653455605.A.107.html
文章代碼(AID): #1YZRhr47 (EzHotKey)
文章代碼(AID): #1YZRhr47 (EzHotKey)