Sign in to follow this  
Followers 0
edie209

Opening and Closing flash MX

10 posts in this topic

Hi I have just recently found AutoIT.

I am trying to achieve somthing very simple I think.

I have a site licence for Macromedia MX of which I install Via RunOnceEx that all woks really well ut the only problem is that FLash MX needs to be opened once with admin rights.

So I created a AutoIT script using SciTe ScriptWriter to open and close flash and then compiled it into an exe this works fine when I run the script on a PC when I run it from RunOnceEx it freezes half way through flash will open but It will not go any further.

I have tried using Alt F4 and Ctrl Q to close but have had no luck. Could someone please point me in the right direction and tell me what I am doing wrong.

Share this post


Link to post
Share on other sites



difficult to help you without the script you are using. ;)

Share this post


Link to post
Share on other sites

Sorry about that, here is the code I have last tried using Ctrl Q to close Flash MX

Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
Run('C:\Program Files\Macromedia\Flash MX 2004\Flash.exe')
WinWait("Macromedia Flash MX 2004","")
If Not WinActive("Macromedia Flash MX 2004","") Then WinActivate("Macromedia Flash MX 2004","")
WinWaitActive("Macromedia Flash MX 2004","")
Send("{CTRLDOWN}q")

Share this post


Link to post
Share on other sites

Sorry about that, here is the code I have last tried using Ctrl Q to close Flash MX

Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
Run('C:\Program Files\Macromedia\Flash MX 2004\Flash.exe')
WinWait("Macromedia Flash MX 2004","")
If Not WinActive("Macromedia Flash MX 2004","") Then WinActivate("Macromedia Flash MX 2004","")
WinWaitActive("Macromedia Flash MX 2004","")
Send("{CTRLDOWN}q")
Send("{CTRLDOWN}q")
oÝ÷ Ø*.ÖÞjëh×6
Winkill("Macromedia Flash MX 2004","")

would have same result...

Neo


[center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center]

Share this post


Link to post
Share on other sites

Send("{CTRLDOWN}q")
oÝ÷ Ø*.ÖÞjëh×6
Winkill("Macromedia Flash MX 2004","")

would have same result...

Neo

Thanks I will go and try that now

Share this post


Link to post
Share on other sites

NeoFoX that sees to have worked I will now test it on a full RIS install thanks alot ;)

Share this post


Link to post
Share on other sites

Send("{CTRLDOWN}q")
oÝ÷ Ø*.ÖÞjëh×6
Winkill("Macromedia Flash MX 2004","")

would have same result...

Neo

In fact no when the session is not really started.

Send need the session to be active

WinKill does not ;)

Share this post


Link to post
Share on other sites

Sorry, JPM :lmao: wrong choice of words in that syntax ;)

Indeed, winkill just closes the window and send needs to be on an active window..

Neo


[center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center]

Share this post


Link to post
Share on other sites

Sorry, JPM :evil: wrong choice of words in that syntax :lmao:

Indeed, winkill just closes the window and send needs to be on an active window..

Neo

Thanks

You know I am a really french native ... ;)

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