mr-es335 Posted December 27, 2025 Posted December 27, 2025 Good day, I require a visual counter to the following: Func ViewCustomCmdsList() WinActivate($hSAWSTUDIO_MAIN) ; ----------------------------------------------- ; Select Custom Cmds button Sleep($iTimeOut) MouseClick($MOUSE_CLICK_LEFT, 250, 378, 1, 0) Sleep(1000) ; --------------------- ; Select each Cmd in turn Sleep($iTimeOut) Send("{DOWN +3}") For $i = 2 To 26 Sleep($iDelayTime) Send("{DOWN}") Next ; --------------------- Sleep(1000) Send("{ESC}") EndFunc ;==>ViewCustomCmdsList Any ideas? mr-es335 Sentinel Music Studios
Solution ioa747 Posted December 27, 2025 Solution Posted December 27, 2025 Func ViewCustomCmdsList() WinActivate($hSAWSTUDIO_MAIN) ; ----------------------------------------------- ; Select Custom Cmds button Sleep($iTimeOut) MouseClick($MOUSE_CLICK_LEFT, 250, 378, 1, 0) Sleep(1000) ; --------------------- ; Select each Cmd in turn Sleep($iTimeOut) Send("{DOWN +3}") For $i = 2 To 26 ToolTip(" from 26", -1, -1, $i ) Sleep($iDelayTime) Send("{DOWN}") Next ; --------------------- ToolTip("") Sleep(1000) Send("{ESC}") EndFunc ;==>ViewCustomCmdsList Merry Christmas and a happy new year 🎄 mr-es335 1 I know that I know nothing
mr-es335 Posted December 27, 2025 Author Posted December 27, 2025 ioa747, With bit of "tweaking"... Func ViewCustomCmdsList() WinActivate($hSAWSTUDIO_MAIN) ; ----------------------------------------------- ; Select Custom Cmds button Sleep($iTimeOut) MouseClick($MOUSE_CLICK_LEFT, 250, 378, 1, 0) Sleep(1000) ; --------------------- ; Select each Cmd in turn Sleep($iTimeOut) Send("{DOWN +3}") For $i = 2 To 27 Sleep($iTimeOut) ToolTip($i & " of 27", 450, 440) Sleep($iDelayTime) Send("{DOWN}") Next ; --------------------- ToolTip("") Sleep(1000) Send("{ESC}") EndFunc ;==>ViewCustomCmdsList ; ----------------------------------------------- ...and the very, very same to you, iao747!! ioa747 1 mr-es335 Sentinel Music Studios
Gianni Posted December 27, 2025 Posted December 27, 2025 ... or also with two counters ... one of which is a little more "visual" #include <WindowsStylesConstants.au3> Func ViewCustomCmdsList() Local $hwnd = GUICreate("", 200, 30, -1, -1, $WS_POPUP) Local $hwPrg = GUICtrlCreateProgress(0, 0, 200, 30) GUISetState(@SW_SHOWNOACTIVATE, $hwnd) WinActivate($hSAWSTUDIO_MAIN) ; ----------------------------------------------- ; Select Custom Cmds button Sleep($iTimeOut) MouseClick($MOUSE_CLICK_LEFT, 250, 378, 1, 0) Sleep(1000) ; --------------------- ; Select each Cmd in turn Sleep($iTimeOut) Send("{DOWN +3}") For $i = 2 To 27 Sleep($iTimeOut) ToolTip($i & " of 27", 450, 440) GUICtrlSetData($hwPrg, $i * (100 / 27)) Sleep($iDelayTime) Send("{DOWN}") Next ; --------------------- ToolTip("") GUIDelete($hwnd) Sleep(1000) Send("{ESC}") EndFunc ;==>ViewCustomCmdsList ; ----------------------------------------------- ioa747 1 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....
Nine Posted December 27, 2025 Posted December 27, 2025 Or this simple : Example() Func Example() Local Const $iTimeOut = 250, $iDelayTime = 150, $iLen = 27 SplashTextOn("Counter", "Starting", 150, 60, -1, -1, Default, "Arial", 14) Sleep($iTimeOut) For $i = 2 To $iLen Sleep($iTimeOut) ControlSetText("Counter", "", "Static1", $i & " out of " & $iLen) Sleep($iDelayTime) Next SplashOff() EndFunc ;==>Example ioa747 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now