Welcome Guest.   Make a donation to an author on the site November 26, 2014, 08:01:29 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: IDEA (silly help really)  (Read 2083 times)
Uncle Larry
Supporting Member
**
Posts: 8


View Profile Give some DonationCredits to this forum member
« on: February 08, 2011, 03:43:08 PM »

Guys this is so lame I'm embarrassed to even ask.  I'm using autohotkey to write a stay-resident macro to kill a #$%#$(# message box our app developers put into an IE based application we all use every day.  It is a notice box that pops up on nearly every file we work on, and we have to click it "ok" to make it go away before proceeding.

What I've written works ... once.  I cannot get the stupid thing to loop and twiddle its thumbs until the next instance pops up.  Here is what I have:

#Persistent
WinWait, Windows Internet Explorer, There are APP data/U
IfWinNotActive, Windows Internet Explorer, There are APP data/U, WinActivate, Windows Internet Explorer, There are APP data/U
WinWaitActive, Windows Internet Explorer, There are APP data/U
Send {Enter}
Sleep, 100

The actual error box says "There are APP data/info related errors, Click the App Data Error tab to get full details" but by using macro recorder I wrote the above and it works.  I suppose I need to put this into some kind of while ... loop or something, but I'm just too tired at night when I get to play with this stuff to think it through.

A little help?  Please?
Logged
Target
Honorary Member
**
Posts: 1,414



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: February 08, 2011, 04:51:11 PM »

the issue appears to be that you have no loop, ie the code runs through to the end but there's nothing to direct it back to the beginning

try this instead - it's untested, but it should work
[copy or print]
#Persistent

Loop
{
    ifwinexist, Windows Internet Explorer, There are APP data/U
    {
        WinActivate, Windows Internet Explorer, There are APP data/U
        Send {Enter}
    }
    Sleep, 100
}
Logged

"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
Uncle Larry
Supporting Member
**
Posts: 8


View Profile Give some DonationCredits to this forum member
« Reply #2 on: February 09, 2011, 08:12:47 AM »

 Thmbsup  Thanks - it worked!  I used to do some fairly elaborate VB scripts in the past, but apparently if you don't use it, you lose it. 
Logged
Target
Honorary Member
**
Posts: 1,414



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: February 09, 2011, 05:37:44 PM »

you're most welcome!
Logged

"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.024s | Server load: 0.12 ]