Jump to content

Recommended Posts

Posted

With Hotkeys, the file is .ahk and the code inside is this:

 

^w::
   Send, This is some text
Return

 What is the equivalent in AutoIt

Additionally how to launch a program with a hotkey?

#n::
Run Notepad
return

Any VERY simple way to do this with AutoIt?

Thanks,

 

Posted (edited)
HotKeySet("{F2}","SendKeys")
HotKeySet("{F3}","StartProgram")

While 1
    Sleep(100)
WEnd

Func SendKeys()
    Send("asdf")
EndFunc

Func StartProgram()
    Run(@ProgramFilesDir & "\Internet Explorer\IExplore.exe")
EndFunc

 

Edited by computergroove

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

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