rlagksquf Posted August 29, 2012 Share Posted August 29, 2012 Hi guys..a newbie here I'm trying to make a script that will click 3 (keyboard) and 4 every 1 minute as below #include <Misc.au3> While 1 Send("{3}") Sleep(2000) Send("{4}") Sleep(62000) WEnd It seems to do what I want to at first then the script pause and nothing happens after that.. Could someone help me out with this? thanks Link to comment Share on other sites More sharing options...
Kendall Posted August 29, 2012 Share Posted August 29, 2012 Because you do not have this in a continual loop it will only run 1 time. Take a look here. http://www.autoitscript.com/autoit3/docs/intro/lang_loops.htmSince you are new i would suggest going through the help file and looking at the examples there. If you don't mind why are you making this? The Codemonkeyhttp://www.BMVHDloader.com Link to comment Share on other sites More sharing options...
water Posted August 29, 2012 Share Posted August 29, 2012 While/WEnd isn't a loop? Sure it is! It's the other way round. The script will never stop because there is no ExitLoop or Exit statement. lordofthestrings 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
andrei0x309 Posted August 29, 2012 Share Posted August 29, 2012 Don't use brackets { , in send argument for key "3" cause 3 is not a special key , use send("3") and send("4") instead Send("{3}") and Send("{4}"). 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