flamingice13 Posted April 10, 2015 Share Posted April 10, 2015 How would I make a key press like...for example... HotKeySet("{Esc}","Terminate") While 1 //This would be sending a function key like Ctrl? WEnd Func Terminate() Exit EndFunc Thanks! Link to comment Share on other sites More sharing options...
TheOnlyOne Posted April 10, 2015 Share Posted April 10, 2015 You should take a look at the "Send()" function Link to comment Share on other sites More sharing options...
computergroove Posted April 10, 2015 Share Posted April 10, 2015 HotKeySet("{Esc}","Terminate") While 1 Send("{CTRL}");This would be sending a function key like Ctrl? Sleep(100) WEnd Func Terminate() Exit EndFunc Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html Link to comment Share on other sites More sharing options...
argumentum Posted April 10, 2015 Share Posted April 10, 2015 How would I make a key press like...for example... HotKeySet("{Esc}","Terminate") While 1 //This would be sending a function key like Ctrl? WEnd Func Terminate() Exit EndFunc Thanks! look at https://www.autoitscript.com/autoit3/docs/functions/Send.htm, it said there: '^'This tells AutoIt to send a CONTROL keystroke; therefore, Send("^!a") would send "CTRL+ALT+a". so, post your complete code if you don't understand this. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
water Posted April 10, 2015 Share Posted April 10, 2015 Could you please describe which program you try to automate? Using "Send" is not always very reliable and most of the times there are 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...
Developers Jos Posted April 10, 2015 Developers Share Posted April 10, 2015 Reading through the posts you made in the last couple days the following sticks out: Your intentions seem to be dodgy to say the least. You ask simple questions that should have been easily found by opening the helpfile or a little searching. You claim to know the rules but yet are posting an example image with the word Captha in it. So, you have my attention and would advice you to start thinking and putting in a little effort before asking the next question. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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