Jump to content

Recommended Posts

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

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 2019-08-19 - Version 1.4.13.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2019-07-24 - Version 1.3.6.0) - Download - General Help & Support - Example Scripts - Wiki
Outlook Tools (NEW 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
 
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

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

×
×
  • Create New...