Guest UWBernie Posted May 23, 2005 Share Posted May 23, 2005 Hi, I'm looking to create a script to run on remote computers and install Microsofts AntiSpyware Beta. I will be pushing this program out using SMS to run hidden on client computers. So i neet to target non active windows i have done this using contolsend and it works great for the installer however i also want to use it to run the inital configuation wizard but i cant press the buttons. Can Anyone help heres the code i've tried and the window info of the button. ;click next at Welcome screen ControlSend("Microsoft AntiSpyware Setup Assistant","","ThunderRT6UserControlDC9","{ENTER}") sleep(15) ;click next at AutoUpdater ControlSend("Microsoft AntiSpyware Setup Assistant","","ThunderRT6UserControlDC9","{ENTER}") sleep(15) ;sleep may be needed here ;click next at security agent ControlSend("Microsoft AntiSpyware Setup Assistant","","ThunderRT6UserControlDC9","{ENTER}") sleep(15) ;click no on spynet community ControlCommand("Microsoft AntiSpyware Setup Assistant","NO",4,"check","") sleep(15) ;click next at spynet ControlSend("Microsoft AntiSpyware Setup Assistant","","ThunderRT6UserControlDC9","{ENTER}") sleep(15) ;click on run scan later ControlSend("Microsoft AntiSpyware Setup Assistant","","ThunderRT6OptionButton1","{ENTER}") sleep(15) ;close the window ControlSend("Microsoft AntiSpyware (Beta 1)","","","{ALT F4}") and the next button Press CTRL-ALT-F to pause the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: Microsoft AntiSpyware Setup Assistant Class: ThunderRT6FormDC Size: X: 224 Y: 415 W: 575 H: 450 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Window: X: 504 Y: 424 Cursor ID: 2 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0xF6F6F4 Dec: 16185076 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: X: 475 Y: 386 W: 85 H: 25 Control ID: ClassNameNN: ThunderRT6UserControlDC9 Text: >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< txtFocus >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< Run a spyware scan every night at 2 a.m. (you can modify the time later). Skip the initial scan Yes. I want to help fight spyware (recommended). No. No. Yes, help keep me secure (recommended). Yes, automatically keep Microsoft AntiSpyware updated (recommended). No. Link to comment Share on other sites More sharing options...
TuMbLeWeEd Posted May 23, 2005 Share Posted May 23, 2005 Try: ControlClick("Microsoft AntiSpyware Setup Assistant","","ThunderRT6UserControlDC9","left") if that does not work try tho focus the control first with: ControlFocus ( "Microsoft AntiSpyware Setup Assistant", "", "ThunderRT6UserControlDC9" ) My AutoIt stuffChatBichProjectSelectorWindow control grabberUsefull LinksPort forwarding with routers Link to comment Share on other sites More sharing options...
Guest UWBernie Posted May 24, 2005 Share Posted May 24, 2005 ok i tried those and still no luck any more ideas I tried to figure out how many tabs in each box were needed and then send an enter however it dosnt seem uniform Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 24, 2005 Moderators Share Posted May 24, 2005 ok i tried those and still no luck any more ideas I tried to figure out how many tabs in each box were needed and then send an enter however it dosnt seem uniform<{POST_SNAPBACK}>Maybe this thread can give you an idea or 2: ClickinControl BetaWish I could be more help, but hope it helps a bit :"> 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...
TuMbLeWeEd Posted May 24, 2005 Share Posted May 24, 2005 ok i tried those and still no luck any more ideas I tried to figure out how many tabs in each box were needed and then send an enter however it dosnt seem uniform<{POST_SNAPBACK}>Downd the app to see and it seems you can not simulate a click for those buttons when the window is hidden.Solution:Start App hidden, move the window out of the screen and show the GUIwindow again (not visible for the user sinds it does not show in the taskbar)The buttons are clickable when first:ControlFocus("Microsoft AntiSpyware Setup Assistant","","ThunderRT6UserControlDC9")thenControlSend("Microsoft AntiSpyware Setup Assistant","","ThunderRT6UserControlDC9","{ENTER}")Radiobuttons do respond to controlclickLast action to run scan now or later are only mousclick accessableuse opt("MouseCoordMode",2) and MouseClick ( "left" , x, y )Hope this works My AutoIt stuffChatBichProjectSelectorWindow control grabberUsefull LinksPort forwarding with routers 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