Jump to content

Simple problem AutoIt & Macro Magic


quest
 Share

Recommended Posts

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

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

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

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

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 MHz

It was a combination of what you said.... find the answer attached.

Regards

Gary

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