jugador Posted March 21, 2022 Posted March 21, 2022 @MaximusCZ do say if it work as I am trying to learn _WinAPI_PostMessage WinActivate("[TITLE:Simulation diagram]", "") Local $WM_LBUTTONDOWN = 0x0201 Local $WM_LBUTTONUP = 0x0202 Local $o_hWnd = WinGetHandle("[CLASS:ABSABFloatWin]") Local $o_BarHwnd = ControlGetHandle($o_hWnd, '', 'ABSActiveBarDockWnd1') _WinAPI_PostMessage($o_BarHwnd, $WM_LBUTTONDOWN, 0x0001, _MakeLong(295, 19)) _WinAPI_PostMessage($o_BarHwnd, $WM_LBUTTONUP, 0x0000, _MakeLong(295, 19))
Zedna Posted March 22, 2022 Posted March 22, 2022 Look here Resources UDF ResourcesEx UDF AutoIt Forum Search
MaximusCZ Posted March 22, 2022 Author Posted March 22, 2022 @junkew Yes, I tried MSAA (not even sure what that is). The other option resulted in target program crashing often. Not sure how to handle WM_GETOBJECT, I dont understand the parameters I should pass. @jugador It works as long as my mouse is actually on the button. Once its not on the button, the button only flickers as if hovered on for the duration of the click (not visible in your script, but visible with "Sleep(100)" added inbetween LBUTTONDOWN and LBUTTONUP. Your script should work elsewhere, its just my application thats special. @Zedna I am not sure I am using Winspector correctly? I open it up along with my target program, drag the crosshair over control of interest and it shows me the control in tree, Thats where my luck ends: When I select "Watch this window class", it asks me what to look for (I select all), and nothing happens. When I open "Messages", the window is always empty. When I open "Properties", it shows properties of window (and clicking refresh works, so dragging the window and pressing refresh updates its position in Properties) but Messages is still empty. I made sure its unpaused. Ran winspector as administrator.
Zedna Posted March 22, 2022 Posted March 22, 2022 https://www.autohotkey.com/board/topic/36813-pictorial-find-wm-command-parameter-with-winspector/ Resources UDF ResourcesEx UDF AutoIt Forum Search
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