Sign in to follow this  
Followers 0
quest

Simple problem AutoIt & Macro Magic

8 posts in this topic

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

Share this post


Link to post
Share on other sites



Macro Magic may need to execute AutoIt3.exe and have the au3 script as the parameter?

Share this post


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

Share this post


Link to post
Share on other sites

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

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


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

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites

Thanks MHz

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

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