Aassdd 0 Report post 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? Share this post Link to post Share on other sites
Richard Robertson 186 Report post 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. Share this post Link to post Share on other sites
SmOke_N 199 Report post 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. Share this post Link to post Share on other sites
Aassdd 0 Report post Posted March 6, 2008 I think ControlClick will be fine, thank you. Share this post Link to post Share on other sites
junkew 234 Report post 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 Share this post Link to post Share on other sites
Aassdd 0 Report post 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) Share this post Link to post Share on other sites