toxicvn Posted February 11, 2009 Share Posted February 11, 2009 (edited) hey i want click to control on popup of ie as under image i tryed ControlClick( ) and .. but it not working this is a example: CODEif WinExists("Internet Explorer","") Then MsgBox(0,"","no day roi") WinWaitActive("[TITLE:Internet Explorer; CLASS:#32770; INSTANCE:1]", "") ControlClick("Internet Explorer","","[CLASS:Button; INSTANCE:1]") ;ControlClick("Internet Explorer", "&No", "[iD:7]");ControlClick("Internet Explorer", "&No", "[iD:7]") ;$send = ControlSend("Internet Explorer", "", "&No", "!n") ;Sleep(100) ;$send = ControlClick("Internet Explorer", "", "[CLASS:Button; TEXT:&No; INSTANCE:2]") ;$handle = ControlGetHandle("[CLASS:Button1]", "", "[CLASS:Button; INSTANCE:1]") MsgBox(0,"",$handle) pop_up.bmp Edited February 11, 2009 by toxicvn Link to comment Share on other sites More sharing options...
Manjish Posted February 11, 2009 Share Posted February 11, 2009 hey i want click to control on popup of ie as under image i tryed ControlClick( ) and .. but it not working this is a example: CODEif WinExists("Internet Explorer","") Then MsgBox(0,"","no day roi") WinWaitActive("[TITLE:Internet Explorer; CLASS:#32770; INSTANCE:1]", "") ControlClick("Internet Explorer","","[CLASS:Button; INSTANCE:1]") ;ControlClick("Internet Explorer", "&No", "[iD:7]");ControlClick("Internet Explorer", "&No", "[iD:7]") ;$send = ControlSend("Internet Explorer", "", "&No", "!n") ;Sleep(100) ;$send = ControlClick("Internet Explorer", "", "[CLASS:Button; TEXT:&No; INSTANCE:2]") ;$handle = ControlGetHandle("[CLASS:Button1]", "", "[CLASS:Button; INSTANCE:1]") MsgBox(0,"",$handle) U have to give controlclick co-ordinates, won't work without it.. [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com Link to comment Share on other sites More sharing options...
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