edie209 Posted November 24, 2006 Share Posted November 24, 2006 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 More sharing options...
jpm Posted November 24, 2006 Share Posted November 24, 2006 difficult to help you without the script you are using. Link to comment Share on other sites More sharing options...
edie209 Posted November 24, 2006 Author Share Posted November 24, 2006 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 More sharing options...
NeoFoX Posted November 24, 2006 Share Posted November 24, 2006 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 More sharing options...
edie209 Posted November 24, 2006 Author Share Posted November 24, 2006 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 Link to comment Share on other sites More sharing options...
edie209 Posted November 24, 2006 Author Share Posted November 24, 2006 NeoFoX that sees to have worked I will now test it on a full RIS install thanks alot Link to comment Share on other sites More sharing options...
NeoFoX Posted November 24, 2006 Share Posted November 24, 2006 I`m glad I could help you [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 More sharing options...
jpm Posted November 24, 2006 Share Posted November 24, 2006 Send("{CTRLDOWN}q") oÝ÷ Ø*.ÖÞjëh×6 Winkill("Macromedia Flash MX 2004","") would have same result... NeoIn fact no when the session is not really started. Send need the session to be active WinKill does not Link to comment Share on other sites More sharing options...
NeoFoX Posted November 24, 2006 Share Posted November 24, 2006 Sorry, JPM 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] Link to comment Share on other sites More sharing options...
jpm Posted November 24, 2006 Share Posted November 24, 2006 Sorry, JPM wrong choice of words in that syntax Indeed, winkill just closes the window and send needs to be on an active window..NeoThanksYou know I am a really french native ... 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