Jump to content

Script not exiting


hpp3
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

; 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}")

Link to comment
Share on other sites

; 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

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