Thanks everybody.
@Michael Vogel:
Your code works. I did not know about that call. But it leaves the focus on the button 1 even so button 3 is "clicked" afterwards. So it can be used to "click" something without showing.
Btw, the multiline button shows both lines on my system (W7 64bit, running 32bit PB)
@Rashad:
Your code works as well, and leaves the focus on the "clicked" button.
It really moves the mouse, so it might become handy for another thing I need to do.
@Thomas:
Your hint seems to do exactly what my code did before, so I am using this now:
Code: Select all
Procedure Oclick(id.l)
gid.l=GadgetID(id)
If IsWindowEnabled_(gid)
PostMessage_(gid,#WM_LBUTTONDOWN,0,0)
PostMessage_(gid,#WM_LBUTTONUP,0,0)
EndIf
EndProcedure
Could somebody explain why sendmessage worked in the past and now does no longer work with 4.50?
Sorry folks, I did not work with PB for a longer period of time and now have to make some additions to older code and stumble about things that "suddenly" stopped working.
