Which command is the window version of the MouseButton() ?
Which command is the window version of the MouseButton() ?
What title says...
Re: Which command is the window version of the MouseButton()
Do you mean for monitoring the mouse button in an window event loop?
Case #WM_LBUTTONDOWN :MessageRequester("Test Left Click","")
Case #WM_RBUTTONDOWN :MessageRequester("Test Right Click","")
Case #WM_MBUTTONDOWN :MessageRequester("Test Middle Click","")
Case #WM_LBUTTONDOWN :MessageRequester("Test Left Click","")
Case #WM_RBUTTONDOWN :MessageRequester("Test Right Click","")
Case #WM_MBUTTONDOWN :MessageRequester("Test Middle Click","")
"What you are is what you have been. What you’ll be is what you do now.” -Buddha
Re: Which command is the window version of the MouseButton()
So your saying that window works on events ?
Re: Which command is the window version of the MouseButton()
The question is.... What do you want exactly ??
Re: Which command is the window version of the MouseButton()
Yeah what he said!Bisonte wrote:The question is.... What do you want exactly ??
An example of what I said;
Code: Select all
Procedure.s MouseLoc() ; a procedure to get mouse location in window
Protected.s LocText
x = WindowMouseX(0)
y = WindowMouseY(0)
LocText = "Mouse Located at X="+Str(x)+" Y="+Str(y)
ProcedureReturn LocText
EndProcedure
OpenWindow(0,0,0,550,350,"Basic Window Eventloop",#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered)
Repeat
Select WaitWindowEvent():
Case #PB_Event_CloseWindow
End
Case #WM_LBUTTONDOWN :MessageRequester("Test Left Click",MouseLoc())
Case #WM_RBUTTONDOWN :MessageRequester("Test Right Click",MouseLoc())
Case #WM_MBUTTONDOWN :MessageRequester("Test Middle Click",MouseLoc())
EndSelect
ForEver
Giving a example of the code you are trying to create will help people to know what you are looking for.
"What you are is what you have been. What you’ll be is what you do now.” -Buddha
Re: Which command is the window version of the MouseButton()
If i wanted more help, i would have said that.
Re: Which command is the window version of the MouseButton()
EventType()Primoz128 wrote:What title says...
Re: Which command is the window version of the MouseButton()
Priceless.Primoz128 wrote:If i wanted more help, i would have said that.
Oh what a day today.
"Have you tried turning it off and on again ?"