gal9 Posted December 21, 2022 Share Posted December 21, 2022 I use Send("{ALT}{A}") to click the button only this way it is work how I can check button valid? Link to comment Share on other sites More sharing options...
ioa747 Posted December 21, 2022 Share Posted December 21, 2022 (edited) where you will use it https://defkey.com/what-means/alt-a Edited December 21, 2022 by ioa747 I know that I know nothing Link to comment Share on other sites More sharing options...
ioa747 Posted December 21, 2022 Share Posted December 21, 2022 for me in PSPad this is ok ;Pauses execution of the script until the requested window is active WinWaitActive("[CLASS:TfPSPad]") ;~ ; Sleep for 3 seconds. ;~ Sleep(3000) ;~ Send("{ALT}{A}") ; Sleep for 3 seconds. Sleep(3000) Send("{ALT}") Send("a") I know that I know nothing Link to comment Share on other sites More sharing options...
Nine Posted December 21, 2022 Share Posted December 21, 2022 (edited) To check validity you would need to read the text of the button and see if there is an "&" before the "A" ? And Send("!a") would be better, no ? Edited December 21, 2022 by Nine SkysLastChance 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) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
ioa747 Posted December 21, 2022 Share Posted December 21, 2022 (edited) as @Nine correct say Send("!a") would be better wrong copy to the right place ;Pauses execution of the script until the requested window is active WinWaitActive("[CLASS:TfPSPad]") ;~ ; Sleep for 3 seconds. ;~ Sleep(3000) ;~ Send("{ALT}{A}") ; Sleep for 3 seconds. Sleep(3000) Send("!a") ;~ ; Sleep for 3 seconds. ;~ Sleep(3000) ;~ Send("{ALT}") ;~ Send("a") and something I didn't say before is that the alt + a shortcuts in PSPad is show/hide Character Table Edited December 21, 2022 by ioa747 I know that I know nothing Link to comment Share on other sites More sharing options...
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