m1405 Posted September 23, 2006 Share Posted September 23, 2006 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 More sharing options...
AzKay Posted September 23, 2006 Share Posted September 23, 2006 Whats an .aur file? # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
m1405 Posted September 23, 2006 Author Share Posted September 23, 2006 Whats an .aur file?Sorry, mistyping. Mean an .au3 file.Marco Link to comment Share on other sites More sharing options...
AzKay Posted September 23, 2006 Share Posted September 23, 2006 HotKeySet("^{F2}", "_Run") While 1 Sleep(1000) WEnd Func _Run() Run(@AutoItExe & " /AutoIt3ExecuteScript PATHTOSCRIPT.au3") EndFunc # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
m1405 Posted September 23, 2006 Author Share Posted September 23, 2006 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 Link to comment Share on other sites More sharing options...
m1405 Posted September 24, 2006 Author Share Posted September 24, 2006 Anybody else working with hotkeys able to give me a hint? Thanks in advance. Marco Link to comment Share on other sites More sharing options...
Xandl Posted September 24, 2006 Share Posted September 24, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now