How to...? Program/script that clicks a button every time a particular window pops up.

V

VChao

What script/program can I use to automatically click a button in a
particular window whenever it pops up?

My webmail times out very often, but it gives me a warning window
asking me if I want to stay logged in. I have two button choices: yes
or no; and I have to click yes within 5 minutes. I want to
automatically click on the yes button every time this window pops up.


My apologies if this is the wrong forum group for this matter. If so,
can you direct me to the appropriate place?


Thank you,
VChao
 
G

Guest

VChao said:
What script/program can I use to automatically click a button in a
particular window whenever it pops up?

My webmail times out very often, but it gives me a warning window
asking me if I want to stay logged in. I have two button choices: yes
or no; and I have to click yes within 5 minutes. I want to
automatically click on the yes button every time this window pops up.


My apologies if this is the wrong forum group for this matter. If so,
can you direct me to the appropriate place?


Thank you,
VChao

You can disable javascript, that will stop the popup windows
altogether, you may be able to just add that site to your
restricted/untrusted zone to stop it running scripts im not sure, that
way you can leave JS enabled for other sites.

Flamer.
 
3

3c273

There is a freeware program call PTFB (Push The Freakin' Button) that does
exactly as you wish. Google for it. I think it has gone payware but you
should be able to find an older version.
Louis
 
G

Guest

http://www.autoitscript.com

Something along the lines of:

do
If WinActive('window title', 'optional identifying text') then
Send('{ENTER}')
sleep(100)
until 0

In most languages this would be a dangerous endless-loop, but scripts can be
stopped using the tray icon, so it's OK here. Note also that while AutoIt
itself is non case-sensitive, the window titles ARE case-sensitive.
 
J

Jon

Certainly possible via a script, but that may not be your best option

Right-click your internet connection in "Network Connections" > Properties >
Options
Check the "Idle time.." settings

Also "Internet Explorer"
Tools > Internet Options > Connections > [Click on internet connection] >
Settings > Advanced
Check the disconnection settings here too.
 
V

VChao

3c273 said:
There is a freeware program call PTFB (Push The Freakin' Button) that does
exactly as you wish. Google for it. I think it has gone payware but you
should be able to find an older version.
Louis

PERFECT! Exactly what I was looking for.
FYI, for the old free version, search " PTFB1064.zip "
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top