Jump to content
Sign in to follow this  
flamingice13

KeyPress?

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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 2020-09-05 - Version 1.5.1.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-27 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - Wiki

 

Share this post


Link to post
Share on other sites

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.
  :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...