vimala Posted March 31, 2010 Posted March 31, 2010 Hello Sir/Mam Will you please help me in clicking Button in Upload Screens.?Iam uploading files to the DB.After it is Finished ,MessageBox containing Ok Button is displayed.Iam unable to click this ok button.Please help me in sorting this out. Thanks Vimala
PsaltyDS Posted March 31, 2010 Posted March 31, 2010 Lots of things might work. Post what you get on the Summary tab of the AutoIt Window Info Tool (AU3Info.exe) when examining that control, and it will be easy to see what works best. That's a good general step to learn: When you want to automate a window/control, gather information about it first with AU3Info (or some other inspector, like WinSpy). Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
vimala Posted April 1, 2010 Author Posted April 1, 2010 Hello Sir I tried with a separate script containing only WinActivate("msgwindowname") send("{SPACE}") to click OK button.It works.Why this happens?Will you please help me in sorting this out?I have included summary of OK Button in a Msgbox window during Automation. Using AutoIt 3 Window info summary ------------------------------------- >>>> Window <<<< Title: ClearVision Class: #32770 Position: 399, 325 Size: 231, 146 Style: 0x94C801C5 ExStyle: 0x00010101 Handle: 0x00060454 >>>> Control <<<< Class: Button Instance: 1 ClassnameNN: Button1 Advanced (Class): [CLASS:Button; INSTANCE:1] ID: 2 Text: OK Position: 75, 80 Size: 75, 23 ControlClick Coords: 38, 13 Style: 0x50030000 ExStyle: 0x00000004 Handle: 0x00060442 >>>> Mouse <<<< Position: 113, 93 Cursor ID: 0 Color: 0x000000 >>>> StatusBar <<<< >>>> Visible Text <<<< OK Total number of entries in file : 1 Number of valid entries : 0 Number of duplicate entries : 1 Number of Invalid entries : 0 >>>> Hidden Text <<<<
JohnOne Posted April 1, 2010 Posted April 1, 2010 ControlClick($hWnd,"","[CLASS:Button; INSTANCE:1]","Primary",1) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
PsaltyDS Posted April 1, 2010 Posted April 1, 2010 ControlClick($hWnd,"","[CLASS:Button; INSTANCE:1]","Primary",1) I wouldn't assume a noob already had the window handle: ControlClick("[CLASS:#32770; TITLE:ClearVision]","","[CLASS:Button; INSTANCE:1]","Primary",1) Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
vimala Posted April 2, 2010 Author Posted April 2, 2010 Hello Sir I thank you for your reply. I tried with Control Click control and this is not working.From my side I tried with mouse click also.Is this a problem in development of this application? regards Vimala
JohnOne Posted April 2, 2010 Posted April 2, 2010 I'm not sure I understand when you say "Is this a problem in development". I dont know the application, but the info coming from windowinfotool looks fine. If you post some of your code where you are trying to click the button, perhaps someone may better be able to help you. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now