469,306 Members | 1,872 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

Script to click on ok of the pop up

Hi ,
I am running a program which at the end of each run comes up with a
pop up saying whether every thing went fine or not. In that pop up I
have to click on either "ok" or "cancel" to go ahead and run my
program again. There is no way that I can avoid the popup. I want to
run my program for a large number of times and I want to find a way in
which, as soon as the popup comes, the mouse will automatically go
there and click on the "ok" button so that the next run can start
automatically.
I would really appreciate if any one can help me in this matter.

Thank you,
swaroop.
Jul 23 '05 #1
2 1499
Ivo
"swaroop" wrote
I am running a program which at the end of each run comes up with a
pop up saying whether every thing went fine or not. In that pop up I
have to click on either "ok" or "cancel" to go ahead and run my
program again. There is no way that I can avoid the popup. I want to
run my program for a large number of times and I want to find a way in
which, as soon as the popup comes, the mouse will automatically go
there and click on the "ok" button so that the next run can start
automatically.
I would really appreciate if any one can help me in this matter.

Thank you,
swaroop.


If it is not a javascript program, it 's a little off topic in the
comp.lang.javascript newsgroup.
If it is, the "popup", which has all the characteristics of a basic
window.confirm() call, can be avoided by changing the code. If it's a
webpage which is not yours, think of a bookmarklet to automate certain
things from your browser only.
Could you show some relevant code or an url?
In any case, the mouse position is read-only.
Btw, if the original author of the program was a sensible person, there
might be reason for the repeated request for confirmation, why you need to
think about clicking "Cancel" once in while.
HTH
Ivo
Jul 23 '05 #2
swaroop wrote:
Hi ,
I am running a program which at the end of each run comes up with a
pop up saying whether every thing went fine or not. In that pop up I
have to click on either "ok" or "cancel" to go ahead and run my
program again. There is no way that I can avoid the popup. I want to
run my program for a large number of times and I want to find a way in
which, as soon as the popup comes, the mouse will automatically go
there and click on the "ok" button so that the next run can start
automatically.
I would really appreciate if any one can help me in this matter.

Thank you,
swaroop.


Perhaps you could try disabling Javascript just before you start the
program... or else, if you have access to the web pages, you could
change the alert to something like document.write - If all else fails,
employ a monkey to do it while you drink your coffee...

randelld
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Luca | last post: by
2 posts views Thread by Dennis | last post: by
7 posts views Thread by selen | last post: by
1 post views Thread by pmclinn | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.