flamingice13

KeyPress?

6 posts in this topic

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!

Share this post


Link to post
Share on other sites



You should take a look at the "Send()" function

Share this post


Link to post
Share on other sites

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 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - 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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          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