Aassdd Posted March 6, 2008 Share Posted March 6, 2008 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? Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 6, 2008 Share Posted March 6, 2008 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. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 6, 2008 Moderators Share Posted March 6, 2008 (edited) AfxControlBar42u1 : AfxControlBar42u2 : ColorsAfxControlBar42u3 : ToolsAfxControlBar42u4 : AfxWnd42u1 : ColorsAfxWnd42u2 : Toolsmsctls_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 March 6, 2008 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. Link to comment Share on other sites More sharing options...
Aassdd Posted March 6, 2008 Author Share Posted March 6, 2008 I think ControlClick will be fine, thank you. Link to comment Share on other sites More sharing options...
junkew Posted March 6, 2008 Share Posted March 6, 2008 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 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Aassdd Posted March 6, 2008 Author Share Posted March 6, 2008 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) 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