Jump to content
Sign in to follow this  
Myillon

ControlClick

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.
  :)

Share this post


Link to post
Share on other sites

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

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