lewcamino Posted October 17, 2005 Share Posted October 17, 2005 Heres another fun one... Is it possible to tell what button a user has pressed (clicked) in a window? Example; Call from 13125551234 [accept] [reject] Is there a was to tell what the user pressed? PS. This is not my dialog box, as in it is from another program, blutooth headset profile on the computer to be exact. Any info would help ofcourse, thanx in advance. Thanx; Lew Link to comment Share on other sites More sharing options...
buzz44 Posted October 17, 2005 Share Posted October 17, 2005 (edited) Find out what title the window changes after each button has been pressed, then simply check what it changed to. Ofcourse this won't work if the title doesn't change lol. Edited October 17, 2005 by Burrup qq Link to comment Share on other sites More sharing options...
svennie Posted October 17, 2005 Share Posted October 17, 2005 Heres another fun one...Is it possible to tell what button a user has pressed (clicked) in a window?Example;Call from 13125551234[accept] [reject]Is there a was to tell what the user pressed?PS. This is not my dialog box, as in it is from another program, blutooth headset profile on the computer to be exact.Any info would help ofcourse, thanx in advance.Thanx; LewWhile 1 $text=ControlGetText("Incoming call","",ControlGetFocus("Incoming call")) If $text = "Accept" Then ;code when accepted ExitLoop ElseIf $text = "Reject" ;code when rejected ExitLoop EndIf WEndHopefully it helps you . Sorry for my English, I'm Dutch... =DMedia UDFINet Adv UDF Link to comment Share on other sites More sharing options...
LxP Posted October 17, 2005 Share Posted October 17, 2005 You could always write code to hide the window asking the question and write an AutoIt GUI that mimics the information shown on that other window. The user will click a button on your AutoIt GUI, your AutoIt code will know what the user wants to do, it can pass that information to the other window and carry out any necessary actions before/after it does so. 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