quest Posted September 9, 2005 Share Posted September 9, 2005 Simple problem AutoIt & Macro Magic I am trying to do a simple task (just trying to learn AutoIt) I have created an au3 script called test, on the XP desktop. MsgBox(0, "Tutorial", "Hello World!") When i click on it, it runs as expected, displaying hello world. I then make a macro in Macro Magic, to playback the following file H:\Documents and Settings\GB\Desktop\test.au3 When this is tried, it simple opens Notepad with the au3 command (as if its ready to edit it)? I assume there is some other function i must send at the end of the macro text, to tell AutoIt to run it? Any help please? Regards Gary Link to comment Share on other sites More sharing options...
MHz Posted September 9, 2005 Share Posted September 9, 2005 Macro Magic may need to execute AutoIt3.exe and have the au3 script as the parameter? Link to comment Share on other sites More sharing options...
quest Posted September 9, 2005 Author Share Posted September 9, 2005 Macro Magic may need to execute AutoIt3.exe and have the au3 script as the parameter?<{POST_SNAPBACK}>Just tried it in Win98se and it runs as expected.But on XP Pro with Service Pack2 it does as i said before?Any ideas?Regards Gary Link to comment Share on other sites More sharing options...
seandisanti Posted September 9, 2005 Share Posted September 9, 2005 Just tried it in Win98se and it runs as expected.But on XP Pro with Service Pack2 it does as i said before?Any ideas?Regards Gary<{POST_SNAPBACK}>you could just compile your scripts, and then run them. or you could do all of your automating with autoit... Link to comment Share on other sites More sharing options...
quest Posted September 9, 2005 Author Share Posted September 9, 2005 you could just compile your scripts, and then run them. or you could do all of your automating with autoit...<{POST_SNAPBACK}>Compiled as you said.....it now works.....looks like XP Pro SP2 stops scripts of any type running?I did like to keep it as a au3 file as the it was easy to edit etc..... just means i have to keep a au3 file and a compiled file of it on the PC.Regards Gary Link to comment Share on other sites More sharing options...
MHz Posted September 9, 2005 Share Posted September 9, 2005 I did like to keep it as a au3 file as the it was easy to edit etc..... just means i have to keep a au3 file and a compiled file of it on the PC.<{POST_SNAPBACK}>No experience with Macro Magic, but it can run programs?You should be able to enter a commandline like this in Macro Magic?"C:\Program Files\AutoIt3\AutoIt3.exe" "H:\Documents and Settings\GB\Desktop\test.au3"It would be strange if it could not run this. Assuming you AutoIt3.exe is at that path. Link to comment Share on other sites More sharing options...
quest Posted September 9, 2005 Author Share Posted September 9, 2005 No experience with Macro Magic, but it can run programs?You should be able to enter a commandline like this in Macro Magic?"C:\Program Files\AutoIt3\AutoIt3.exe" "H:\Documents and Settings\GB\Desktop\test.au3"It would be strange if it could not run this. Assuming you AutoIt3.exe is at that path.<{POST_SNAPBACK}>Thanks MHzIt was a combination of what you said.... find the answer attached.Regards Gary Link to comment Share on other sites More sharing options...
MHz Posted September 9, 2005 Share Posted September 9, 2005 Thanks MHzIt was a combination of what you said.... find the answer attached.<{POST_SNAPBACK}>Yes, that looks correct. Glad you got the script to work ok. 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