Sign in to follow this  
Followers 0
Aassdd

MS Paint Controls

6 posts in this topic

I use paint very often but I hate that it doesn't have any hotkeys. Unfortunately, I can't find the controls because window info recognizes the toolbar as one control. Anyone know how to get the controls or click somewhere in the screen without moving the mouse?

Share this post


Link to post
Share on other sites



ControlClick will send a click message to the control without actually using the mouse.

I don't believe you can actually get the controls. This was probably an owner drawn box that simulated a toolbar with several "hot" zones.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

AfxControlBar42u1 :

AfxControlBar42u2 : Colors

AfxControlBar42u3 : Tools

AfxControlBar42u4 :

AfxWnd42u1 : Colors

AfxWnd42u2 : Tools

msctls_statusbar321 : For Help, click Help Topics on the Help Menu.

Afx:1000000:81 :

AfxFrameOrView42u1 :

Edit:

Meant to say that ControlClick can use Client Coords for x and y position :).

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

I think ControlClick will be fine, thank you.

Share this post


Link to post
Share on other sites

ControlClick will send a click message to the control without actually using the mouse.

I don't believe you can actually get the controls. This was probably an owner drawn box that simulated a toolbar with several "hot" zones.

Not fully sure if it can be done fully but check how far you come with the following references

* http://www.autoitscript.com/forum/index.php?showtopic=64739 (limit the searcharea to the area of the toolbar will improve speed)

* http://www.autoitscript.com/forum/index.ph...c=54776&hl=

* GUIToolbar.au3 in helpfile

Share this post


Link to post
Share on other sites

I'll use ControlClick but.. why this doesn't work:

ControlClick("Paint", "", "[CLASSNN:AfxWnd42u2]", Default, Default, 45, 15)

and this does:

ControlClick("Paint", "", "[CLASSNN:AfxWnd42u2]", "left", 1, 45, 15)

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  
Followers 0