AutoIt Forums: IDing a button press in another program - AutoIt Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

IDing a button press in another program

#1 User is offline   middae 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 15
  • Joined: 26-October 09

Posted 03 November 2009 - 04:56 PM

ProgramB - 3rd party program, has a small window pop up titled "Done Scanning". On this window, is a button, labeled "Done"

Can I have my script identify when the "Done" button is pressed on this other program? I don't have a clue where to begin on this...

Thanks in advance!

#2 User is offline   lordicast 

  • Mass Spammer!
  • PipPipPipPip
  • Group: Full Members
  • Posts: 308
  • Joined: 14-August 07
  • Location:SuiSun CA

Posted 03 November 2009 - 05:32 PM

Try Window Info Tool.
With that find ControlSend,ControlGetFocus in help.

#3 User is offline   middae 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 15
  • Joined: 26-October 09

Posted 03 November 2009 - 05:33 PM

Is that going to let AutoIt know when the button is pressed by human rather than by AutoIt?

#4 User is offline   Melba23 

  • Yes, me!
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 4,864
  • Joined: 01-August 08
  • Gender:Not Telling
  • Location:Where never lark or even eagle flew

Posted 03 November 2009 - 06:17 PM

middae,

If you can ID the pop-up using the AU3 Window Info tool then you could always wait until the pop-up appears and then wait for it to vanish again when the "Done" button is pressed. WinWaitActive and WinWaitClose are there for exactly that!

M23

#5 User is offline   middae 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 15
  • Joined: 26-October 09

Posted 03 November 2009 - 07:28 PM

Oh snap - brilliant!!

-Mid

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users