bitman Posted April 2, 2006 Share Posted April 2, 2006 Hey, I have posted quite i few times about this problem. It seems as this problem does not want to be solved. Some times my autoscritp click at the right button but most of the times it does not. it seems like this security warning window is very difficult to autoscript. I have tried following if WinExists("Security Warning","You are about to install a cer") Then WinWait("Security Warning","You are about to install a cer") if NOT WinActive ( 'Security Warning', 'You are about to install a cer' ) then WinActivate ( 'Security Warning' ) endif Send("{ALTDOWN}y{ALTUP}") ;ControlClick("Security Warning","You are about to install a cer","Button1") EndIf or if WinExists("Security Warning","You are about to install a cer") Then WinWait("Security Warning","You are about to install a cer") if NOT WinActive ( 'Security Warning', 'You are about to install a cer' ) then WinActivate ( 'Security Warning' ) endif sleep(2000) Send("{ALTDOWN}y{ALTUP}") sleep(2000) ;ControlClick("Security Warning","You are about to install a cer","Button1") EndIf I have also tried other combinations like send +tab enter please help me out I have no clue what so ever what is wrong. Link to comment Share on other sites More sharing options...
herewasplato Posted April 3, 2006 Share Posted April 3, 2006 Next time - please locate your old posts and add what is called a "bump" to that thread. Just post a reply to the end of it with something like "anyone?"... That will bump it to the top of the forum for those who happen to be on to see....you only have a few posts for me to dig thru:http://www.autoitscript.com/forum/index.ph...ndpost&p=165588...and that mentions some of what you have tried - it is a good history.Might I suggest that you copy/paste the contents of the "AutoIt Window Info" for the window of interest into your next post? (post it to that other thread - let this one die...) [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 3, 2006 Share Posted April 3, 2006 uhmmmmm why is the control click commeneted? Link to comment Share on other sites More sharing options...
herewasplato Posted April 3, 2006 Share Posted April 3, 2006 uhmmmmm why is the control click commeneted?because it did not work and he was using Send("{ALTDOWN}y{ALTUP}")he left it in the code to show what had been tried - just my guess :-) [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 3, 2006 Moderators Share Posted April 3, 2006 Send('!y') might be better there? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
herewasplato Posted April 3, 2006 Share Posted April 3, 2006 so much for "let this one die..."I should have posted to the first thread...I did not see in that other post (or this one) where ControlFocus was tried before ControlClick.From the help file for ControlClick:The control might first need to be given focus with the ControlFocus command.If that does not work, post the contents of the info window. [size="1"][font="Arial"].[u].[/u][/font][/size] 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