Necromorph Posted July 28, 2010 Posted July 28, 2010 ive been messing with an automated installer progam im working on, and i can get it to work in win xp, but not on win7 x64. here is a little test, that doesn't work for me. MsgBox(0, "test", "this is a test box.") Sleep(1500) ControlClick("test", "this is a test box", "[CLASS:Button; INSTANCE:1]") ;Send("{ENTER}") swap out the controlclick and the send, neither work. any suggestions?
FireFox Posted July 28, 2010 Posted July 28, 2010 ive been messing with an automated installer progam im working on, and i can get it to work in win xp, but not on win7 x64. here is a little test, that doesn't work for me. MsgBox(0, "test", "this is a test box.") Sleep(1500) ControlClick("test", "this is a test box", "[CLASS:Button; INSTANCE:1]") ;Send("{ENTER}") swap out the controlclick and the send, neither work. any suggestions? Because the script continues only when the msgbox is closed... so I suggest you to make a script with a msgbox MsgBox(64, "test", "this is a test box.") And another one with the controlclick ControlClick("[TITLE:test;CLASS:#32770]", "", "[CLASS:Button; INSTANCE:1]", "left", 2) Regards, d3mon.
Necromorph Posted July 28, 2010 Author Posted July 28, 2010 #include<GUIConstants.au3> GUICreate("test", 150, 150) GUISetState() $buttonTest = GUICtrlCreateButton("test", 25, 25, 75) Sleep(1000) ControlClick("test", '', "[CLASS:Button; INSTANCE:1]") ;Send("{ENTER}") While 1 $msg = GUIGetMsg() Switch $msg Case $gui_event_close Exit Case $buttonTest MsgBox(0, "test", "the test button has been clicked!") EndSwitch WEnd thanks, that actually just crossed my mind. duh to me! so i made this one, which works. but it still doesnt fix my issue. i have an installer for a progarm, and controlclick, send, mouse click, none of them work. i will keep troubleshooting it. thanks again
Necromorph Posted July 28, 2010 Author Posted July 28, 2010 i found as soon as i turned UAC off (all the way), it works. hmmm.
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