Jump to content


Photo

How to control a Control ...


  • Please log in to reply
2 replies to this topic

#1 Beastmaster

Beastmaster
  • Members
  • 191 posts

Posted 08 July 2004 - 03:45 PM

I'd an issue on which Chris has recommended to use the 15+ command ControlGetPos to get a controls position to move/click onto it.
The main thing I like about the control commands is that the assigned window hasn't to be active or fully displayed to trigger the control.

Unfortunately, to know the position of the control itself won't work in this case as I've to click a specific section on it ("No. Lines"). The control uses a single name and therefore seems not to be able to identify to which of its parts a ControlSend should be directed.

So it needs the mouse to do that click. And for that reason that specific window has to be fully available, but that's another story :x

I thought about a "tiny" tweak on the ControlClick command 8)

ControlClick [, X, Y, Control, WinTitle, WinText, WhichButton, ClickCount, Hold/Release?, ExcludeTitle, ExcludeText]
(These coordinates are relative to the target control).

Posted Image

Sounds like another weird request, isn't it :wink:

#2 Chris

Chris
  • Administrators
  • 10727 posts

Posted 08 July 2004 - 05:43 PM

It's not a strange request, beardboy mentioned something similar. It's a good idea and easy to change, so I've done so. This change and a few others have been applied as described at http://www.autohotke... ... =2242#2242

#3 Beastmaster

Beastmaster
  • Members
  • 191 posts

Posted 08 July 2004 - 07:27 PM

1h:58min have passed and you've solved it. Halleluja. I must be in heaven. Thx Chris :D :D :D