HiNoTora Posted January 1, 2014 Share Posted January 1, 2014 hi, id like to know how to keep sending different keys with different time.. um dunno how to ask while 1 Send("{F4}") Sleep(500) Send("{F4}") Sleep(500) ; first of loop Send("{F4}") Sleep(500) Send("{F4}") Sleep(500) Send("{F8}") ; Second loop Sleep(15000) Send("{F10}") ; third loop Sleep(15000) Wend So how i can make those 3 to ... x.x my english sucks.. i dont want my script to go from sending F4 to Send F10. I want it has 3 loops what has its own downtime. Link to comment Share on other sites More sharing options...
water Posted January 1, 2014 Share Posted January 1, 2014 Hi HiNoTora, can you please tell us which program you try to automate? Send isn't very reliable and might interfere with user actions. I'd recommend ControlSend etc. 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...
Solution HiNoTora Posted January 1, 2014 Author Solution Share Posted January 1, 2014 Hi HiNoTora, can you please tell us which program you try to automate? Send isn't very reliable and might interfere with user actions. I'd recommend ControlSend etc. I need to send keys, there are no controlsend func Link to comment Share on other sites More sharing options...
AutID Posted January 1, 2014 Share Posted January 1, 2014 ;Sleep(3000) while 1 _FirstLoop() _SecondLoop() _ThirdLoop() Wend Func _FirstLoop() Send("{F4}") Sleep(500) Send("{F4}") Sleep(500) ; first of loop Send("{F4}") Sleep(500) Send("{F4}") Sleep(500) EndFunc Func _SecondLoop() Send("{F8}") ; Second loop Sleep(15000) EndFunc Func _ThirdLoop() Send("{F10}") ; third loop Sleep(15000) EndFunc There are several ways to do it. And as Water said if it interacts an app then controlsend would be better. Anyway here you go. Happy new year https://iblockify.wordpress.com/ Link to comment Share on other sites More sharing options...
AutID Posted January 3, 2014 Share Posted January 3, 2014 I need to send keys, there are no controlsend func That actually is a good solution. Glad it gave you an answer. https://iblockify.wordpress.com/ 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