473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Confirm window appears

Hello, new to this group. I'm by no means an expert, just a working slug who's got another hat to wear in trying to do some scripting.

What I have is a window that appears only when some conditions are met, which I don't have control over. I'm trying to just have it select No to it when it occurs. In doing an if statement it looks for the window regardless if it's there or not. (tried .attach, .visable, .object) they all try to attach to a window that isn't there. I want it to only do something if the window appears. Below is part of the script:

Window("Scan Validation Tool - TWAIN Window").Attach
CheckBox("Caption='Save Images To Files'").SetCheck
Button("Caption=setup").Click
DotNETForm("KODAK i1220 Scanner DotNETForm").Attach
DotNETTreeView("Name=m_treeviewProfiles").SelectIt em "\My Default"
Here is where the window appears(sometimes)
DotNETForm("Confirm Changes DotNETForm").Attach

The below 2 lines are in response to that window.
DotNETButton("Name=m_driverbuttonCancel").Attach
DotNETButton("Name=m_driverbuttonNo").Click

This is where I want it to go if the window doesn't appear.
DotNETTreeView("Name=m_treeviewProfiles").SelectIt em "\Color Document"

Thanks
Oct 18 '06 #1
1 1706
I figured it out using a whenever statement, which goes to a subroutine.
Oct 18 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Terry | last post by:
anyone know how to pop up a confirm window with (Y) & (N)?? I want to pop up a "Do you want to continue?" message box (javascript only, can't use vbscript) with (Y) & (N). when click (N), then...
2
by: Hans | last post by:
Hi! I have an asp application where I use a lot of javascript for validations etc and as it is today I use alert, confirm and prompt dialogs. Now we are adding support for unicode and I have...
3
by: Doug O'Leary | last post by:
Hey, all; Apparently, I'm missing the concept. I'm writing a web app in perl to manage nagios configuration files. One of the things I'd like to do is to confirm an update via a popup window...
2
by: phil2phil | last post by:
hi, is there anyway to make certain text in the confirm window, the one what comes up when i call confirm(text) in javascript? I'm displaying a message in the confirm window to the user and...
1
by: caroline.doidge | last post by:
This is a weird one and I am wondering if someone can help? I have a piece of Javascript function deleteRequest(searchID) { if (confirm('Are you sure?')){ location =...
2
by: Jon Paal | last post by:
I can't seem to get this to redirect on confirm. Dialog appears but does not change pages on "ok" what's missing here ? btnComplete.Attributes.Add("onclick", "if(confirm(' complete...
4
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I change the confirm box to say yes/no or default to cancel?...
3
by: tshad | last post by:
Is there a way to do a Javascript confirm box when an aspx page initially loads (not postback)? I can make the confirm box come up by doing the following:...
5
by: GiJeet | last post by:
Hello, I'm trying to figure this code out. <input type="submit" onclick="if(!confirm('Are you sure?') return false; "... /> I know that if you return false in an event like this onclick it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...

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.