Miliardsto Posted June 30, 2020 Posted June 30, 2020 I want to send 5 times ALT+END keys and 1 time ALT+HOME I have tried a lot of variations like etc: Send("{ALTDOWN}") Send("{END}") Send("{ALTUP}") // other Send("{!END}") Send("!{END}") // other Send("{ALT DOWN}") Sometimes it worked one time pressed, but it must be send 5 times.
TheXman Posted June 30, 2020 Posted June 30, 2020 Did you try Send("!{END 5}") Send("!{HOME}") CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
Miliardsto Posted June 30, 2020 Author Posted June 30, 2020 33 minutes ago, TheXman said: Did you try Send("!{END 5}") Send("!{HOME}") I made function by hotkey. It use ALT+END one time and no use ALT+HOME. Sometimes it uses ALT+HOME only ; Press Esc to terminate script, Pause/Break to "pause" #include <Color.au3> #include <MsgBoxConstants.au3> HotKeySet("{ESC}", "Terminate") HotKeySet("{F1}", "Zooming") ;;;; Body of program would go here ;;;; While 1 Sleep(10) WEnd ;;;;;;;; Func Zooming() ;Send("{ALTDOWN}") ; Send("{HOME}") ;Sleep(150) Send("!{END 5}") Sleep(100) Send("!{HOME}") EndFunc Func Terminate() Exit 0 EndFunc ;==>Terminate
Nine Posted June 30, 2020 Posted June 30, 2020 Sending keys is probably the worst strategy of automation. What if you could interact directly with the controls, it would make your script stronger. What is the application you are trying to automate ? “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