Jump to content

Opening and Closing flash MX


edie209
 Share

Recommended Posts

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.

Link to comment
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")
Link to comment
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]

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