Jump to content

Recommended Posts

Posted

@MaximusCZ

do say if it work as I am trying to learn _WinAPI_PostMessage :lol:

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))

 

Posted

@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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...