Sign in to follow this  
Followers 0
m1405

Starting script with Hotkey

7 posts in this topic

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

Share this post


Link to post
Share on other sites



Whats an .aur file?


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

Whats an .aur file?

Sorry, mistyping. Mean an .au3 file.

Marco

Share this post


Link to post
Share on other sites

Thanks for the Code!

Question:

Is this the code for a separate script managing the hotkeys (one function per script, to be placed in autostart) or do I have to put this in every script I write?

Marco

Share this post


Link to post
Share on other sites

Anybody else working with hotkeys able to give me a hint?

Thanks in advance.

Marco

Share this post


Link to post
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

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  
Followers 0