AquilaChill Posted May 22, 2008 Share Posted May 22, 2008 the help file of autoit3 really is great... seriously use it, scite is also great for making scripts in. the Opt() should be at the top of your script, you can use it again to change it if you need to later in a script. Opt("SendKeyDownDelay", 2) ;(text after a ; is comments, autoit ignores them), sets time that each key is held down to 2ms (1000=1sec) Opt("SendKeyDelay", 2) ;time between key sends, note that (really)old computers can only send text so fast through autoit ;some apps (like games) won't pickup the keystrokes with too low of delays HotKeySet("+!h", "SendHi") While(2) Sleep(100) WEnd Func SendHi() Send("this is text sent.{ENTER}you can use multiple per send.") EndFunc ;comments are comments, stick em where you left off one day to remind yourself where you need to work on or maybe what this does or a quick description of Func blah() and such. the examples in the help file are useful to know how some things work too. people are anoying, am i? ;) v2.95 Link to comment Share on other sites More sharing options...
inloveofrapo Posted May 23, 2008 Author Share Posted May 23, 2008 the help file of autoit3 really is great... seriously use it, scite is also great for making scripts in. the Opt() should be at the top of your script, you can use it again to change it if you need to later in a script. Opt("SendKeyDownDelay", 2) ;(text after a ; is comments, autoit ignores them), sets time that each key is held down to 2ms (1000=1sec) Opt("SendKeyDelay", 2) ;time between key sends, note that (really)old computers can only send text so fast through autoit ;some apps (like games) won't pickup the keystrokes with too low of delays HotKeySet("+!h", "SendHi") While(2) Sleep(100) WEnd Func SendHi() Send("this is text sent.{ENTER}you can use multiple per send.") EndFunc ;comments are comments, stick em where you left off one day to remind yourself where you need to work on or maybe what this does or a quick description of Func blah() and such. the examples in the help file are useful to know how some things work too. Thanks for any1 who gave me help.. If any body find out why my script is still keeping shift + alt in, after script is finish typing a sence, post in this topic please! Link to comment Share on other sites More sharing options...
inloveofrapo Posted May 23, 2008 Author Share Posted May 23, 2008 Thanks for any1 who gave me help..If any body find out why my script is still keeping shift + alt in, after script is finish typing a sence, post in this topic please!How do i get 2 buttons to press at once? ( alt + shift ) After script is end ? Link to comment Share on other sites More sharing options...
inloveofrapo Posted May 24, 2008 Author Share Posted May 24, 2008 How do i get 2 buttons to press at once? ( alt + shift ) After script is end ?Nobody knows this ? :/ Link to comment Share on other sites More sharing options...
PsaltyDS Posted May 24, 2008 Share Posted May 24, 2008 Maybe? Send("{ALTDOWN}") Send("{LSHIFT}") Send("{ALTUP}") Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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