Whips87 Posted November 2, 2013 Share Posted November 2, 2013 Hello! im trying to figure how can i make a script that will not '' Loop '' so acutaly when i press 1 i want it send 5 time 1 1 1 1 1 so acutaly when i press 2 i want it send 5 time 2 2 2 2 2 so acutaly when i press 3 i want it send 5 time 3 3 3 3 3 im stuck on .. the beggin so just figured how to do a HotKeySet("{1}", "Key1") atm my script look like that but .. nothing work lol HotKeySet("{1}", "Key1") HotKeySet("{2}", "Key2") HotKeySet("{3}", "Key3") ;--------------------------------------- While 1 Sleep(1500) Key1() Key2() Key3() WEnd Func Key1() Send("1") Sleep(150) Send("1") Sleep(150) Send("1") EndFunc Func Key2() Send(2) Sleep(150) Send(2) Sleep(150) Send(2) EndFunc Func Key3() Send(3) Sleep(150) Send(3) Sleep(150) Send(3) EndFunc Whats going on ? Link to comment Share on other sites More sharing options...
AutID Posted November 2, 2013 Share Posted November 2, 2013 Rad help files for more.HotKeySet("{a}", "Key1") HotKeySet("{w}", "Key2") HotKeySet("{t}", "Key3") HotKeySet("{e}", "_exit") ;--------------------------------------- While 1 Sleep(10) WEnd Func Key1() Send("1") Sleep(150) Send("1") Sleep(150) Send("1") EndFunc Func Key2() Send(2) Sleep(150) Send(2) Sleep(150) Send(2) EndFunc Func Key3() Send(3) Sleep(150) Send(3) Sleep(150) Send(3) EndFunc Func _exit() Exit EndFunc https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
water Posted November 2, 2013 Share Posted November 2, 2013 Whips87, please enclose your AutoIt script in code tags. The editor has a blue "A" iconfor that. Thanks. BTW: Which program do you try to automate? Send isn't very reliable. There might be better ways to do what you want to do. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted November 2, 2013 Share Posted November 2, 2013 And could you please give your threads a more meaningful title? Every user on this forum is searching for help My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
JohnOne Posted November 2, 2013 Share Posted November 2, 2013 You might want to unset the hotkey when enter function, reset it before exit AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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