Jump to content

Starting script with Hotkey


m1405
 Share

Recommended Posts

IS there a way to run the .aur files in one of the following ways?

1) With hotkey (or do I have to programm these hotkeys on my own and put a Macro in the Autostart)?

2) Scheduled e.g. always after starting OS or every day at 7pm .... ?

Thanks for a hint or link .. .

Marco

Link to comment
Share on other sites

Just expand Azkay's example, if you want to run more then one script via hotkey:

HotKeySet("^{F1}", "_Run1")
HotKeySet("^{F2}", "_Run2")
HotKeySet("^{F3}", "_Run3")

While 1
Sleep(1000)
WEnd

Func _Run1()
Run(@AutoItExe & " /AutoIt3ExecuteScript c:\temp\YourFirstScript.au3")       ; <--- change script name, full path
EndFunc

Func _Run2()
Run(@AutoItExe & " /AutoIt3ExecuteScript d:\YourSecondScript.au3")   ; <--- change script name, full path
EndFunc

Func _Run3()
Run(@AutoItExe & " /AutoIt3ExecuteScript YourThirdScript.au3")       ; <--- change script name, full path
EndFunc
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...