473,656 Members | 2,793 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1598
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.javas cript 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
2079
by: Luca | last post by:
About one month ago I have inserted in my web site a clickcounter who controls the access to almost every link, but this script who changed the path in every link so the search engines couldn't recognize my links and my web site has lost a lot in search engines ranks; this is the script: <A href="http://www.mywebsite.com/cgi-bin/click/go.cgi?http://www.fiao.it" Target="_blank">
2
1736
by: Dennis | last post by:
This may be easy for most but I can't get this thing to work. I believe I followed all the instructions but when I click on the link no window opens just the default IE page cannot display. Here is exactly what I entered in the link dialog: <a href="javascript:popImage('http://www.sambuccibros.com/carseat.jpg','New Car Seat')"> Is this my problem? Please help.
4
2792
by: esoroka | last post by:
Hello, Trying to run a script what start ASP button: document.Form1.all.click(); It is work one time only. Next script ignore it. Where can be problem??? A full script is as follows:
7
1786
by: selen | last post by:
I am using above script for Focus to txtAdi which is textbox in c# web application.But it doesnt work. Have you any idea why it doesnt work thanks....... char c=(char)34;
0
3221
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
1
1738
by: pmclinn | last post by:
The code below is generated by an application that allows you to put a Microsoft assistant on a webpage. I'm having a heck of a time trying to get this script to launch on a server side button click though. I want my user to click on a button to launch this script. I have tried adding the object code to the html directly and then creating a client on click event with no luck. I eventually want to dynamically update the text that will...
0
1835
by: lechatthierry | last post by:
Is it possible to block a mouse event on an Hyperlink with a general script event? This is quite troublesome for me. I am trying to find a way to block the windows shortcut SHIFT + MOUSE LEFT BUTTON that open the Hyperlink in a new window for a Web application. I just want to capture the Shift click event and prevent it from opening a new page. Mouse Wheel didn't pose any problems but the other mouse buttons seems to ignore the...
1
1949
by: Neko | last post by:
Is it possible to block a mouse event on an Hyperlink with a general script event? This is quite troublesome for me. I am trying to find a way to block the windows shortcut SHIFT + MOUSE LEFT BUTTON that open the Hyperlink in a new window for a Web application. I just want to capture the Shift click event and prevent it from opening a new page. Mouse Wheel didn't pose any problems but the other mouse buttons seems to ignore the...
4
3713
by: meenu_susi | last post by:
i have different colors for shirt... When I click the blue color the shirt color will change to blue color and Near to that shirt I will have a button as design now when I click that button it get posted To next page where I want the changed shirt color to be displayed(as I told when I click blue the shirt will change to blue that blue shirt has to be displayed in next page when I click the button) Then the script is as follows ...
5
1996
by: Bjorn Sagbakken | last post by:
Hello I have just migrated from VS 2003 to VS 2005, and .NET framework 1.1 to 2.0 I am at the end of debugging and fixing stuff. Now there is one error I just cannot find a solution to: On some pages I have applied a small client-script to trap the enter-key beeing pressed and re-route this action. With the new version this little script still works, it traps the enter-key. BUT it causes postback-errors on many other .NET control,...
0
8297
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8816
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8717
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8600
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7311
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1930
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.