Jump to content
Sign in to follow this  
hpp3

Script not exiting

Recommended Posts

hpp3

I am on NT4. Some program somewhere decided I needed an updated GDI32.dll (as if this were something new...). Now when I start Mozilla Firefox, it complains that the GDI gradient fill entry point not found, I click OK and then MFF starts and runs fine from there. Annoying, so I made a script to AutoIt-matically (hehe) pop that "OK" button. Worked beautifully until a week ago, when the "A" icon in my tray didn't go away after the script executed. Once again, harmless but annoying, and everytime I start MFF I get a new "A" in my tray. Why is this and how do I convince my script to properly go away after executing?

Thanks...

Share this post


Link to post
Share on other sites
Thatsgreat2345

cant u right click and click exit or just press ctrl alt delte and end the process?

Share this post


Link to post
Share on other sites
hpp3

Yeah, but that's not the problem... The script should be exiting, as in going away, after it is done with it's job. Instead it sits there in my tray (paused) until I banish it with a right-click-exit.

Share this post


Link to post
Share on other sites
Thatsgreat2345

paste ur script i want to look at it

Share this post


Link to post
Share on other sites
hpp3

; AutoIt Version: 3.0
; Language:    English
; Platform:    All
; Author:        hpp3
;
; Script Function:
;   Because my NT system's gdi32.dll is the wrong one or something,
;   I wrote a script to hit the 'ok' button when Firefox tells me
;   Entry Point Not Found

Run ("x:\program files\Mozilla firefox\firefox.exe")

WinWaitActive ("firefox.exe - Entry Point Not Found")

Send ("{ENTER}")

Share this post


Link to post
Share on other sites
AutoChris

; AutoIt Version: 3.0
; Language:    English
; Platform:    All
; Author:        hpp3
;
; Script Function:
;   Because my NT system's gdi32.dll is the wrong one or something,
;   I wrote a script to hit the 'ok' button when Firefox tells me
;   Entry Point Not Found

Run ("x:\program files\Mozilla firefox\firefox.exe")

WinWaitActive ("firefox.exe - Entry Point Not Found")

Send ("{ENTER}")

<{POST_SNAPBACK}>

Try giving your WinWaitActive a timeout:

$wait = WinWaitActive ("firefox.exe - Entry Point Not Found","", 5)

If $wait = 1 Then

Send ("{ENTER}")

Else

Exit

EndIf

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.