Myillon Posted February 26, 2005 Share Posted February 26, 2005 First off Hi, ive been using Autoit since Legacy (not sure when) Quick introduction! Anyways on to my problem I was trying to make a macro to send commands to a window while i had it underlying ie: not in focus The other way i could have done this is Mouseclick("Left",x,y) but I didnt want the window to be in focus, I was wondering if it was possibile to get this effect by using the ControlFocus and ControlClick functions. If the ClassNameNN is not accurate (For example im trying to press a button, but Control ID under the button is blank) Mabye there is a way to specify the x y to send the click at? Or is this impossibile unless it has an ID? Thanks! Link to comment Share on other sites More sharing options...
buzz44 Posted February 26, 2005 Share Posted February 26, 2005 so the button isnt a GUI button that you made urself ? ie $msg = GUIGetMsg() Select Case $msg = $Button Msgbox(0,"Hello", "You click the button") EndSelect if not then wat button is it. qq Link to comment Share on other sites More sharing options...
Developers Jos Posted February 26, 2005 Developers Share Posted February 26, 2005 If the ClassNameNN is not accurate (For example im trying to press a button, but Control ID under the button is blank)Mabye there is a way to specify the x y to send the click at?Or is this impossibile unless it has an ID?<{POST_SNAPBACK}>AFAIK .... A control will have an ClassNameNN ... If its a valid control then you can try to use the button text in stead of the ClassNameNN . SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Myillon Posted February 26, 2005 Author Share Posted February 26, 2005 I thought so, this isnt a GUI ive made or anything I was actually trying to Macro a game I was playing but I guess I cant do it in this way since it dosent return a Valid control. Thanks anyways 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