Jump to content
Sign in to follow this  
Guest UWBernie

buttons with no contolID?

Recommended Posts

Guest UWBernie

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.

Share this post


Link to post
Share on other sites
Guest UWBernie

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

Share this post


Link to post
Share on other sites

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 Beta

Wish 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.

Share this post


Link to post
Share on other sites

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")

then

ControlSend("Microsoft AntiSpyware Setup Assistant","","ThunderRT6UserControlDC9","{ENTER}")

Radiobuttons do respond to controlclick

Last action to run scan now or later are only mousclick accessable

use opt("MouseCoordMode",2) and MouseClick ( "left" , x, y )

Hope this works

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...