artayura Posted September 4, 2009 Share Posted September 4, 2009 Hello.I want to do a script that repeat pressing number 1 for 3 times, and number 2 for 3 times.Then it will repeat until i press END which will end the script.Here is my script :HotKeySet("{END}", "_end")While 1Send("{1 3}") // press number "1" 3 timesSleep(5000)Send ( "{3 3}") // press number "2" 3 timesSleep(5000)WEndFunc _end()ExitEndFuncIs correct? Link to comment Share on other sites More sharing options...
martin Posted September 4, 2009 Share Posted September 4, 2009 Hello.I want to do a script that repeat pressing number 1 for 3 times, and number 2 for 3 times.Then it will repeat until i press END which will end the script.Here is my script :Is correct? Apart from "//" which should be ";" it looks ok, but why do you need to ask, can't you try it? Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
artayura Posted September 4, 2009 Author Share Posted September 4, 2009 he he he.. i don't like to see error in the script that i'm running... owh.. that // is just a statement.. thank u sir.. have a nice day. 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