Dear friends,
please, I have read the forum, but I cant find what I need.
I am finding solution, how can I read coordinates (x,Y) of mouse cursor on my screen
Then I am trying this:
I need checking the position continuously on my screen (monitor)
abd I get error:
java.lang.RuntimeException: Object should first be initialized (MouseEvent)
Please help me
Thank you very much
p4ppc
please, I have read the forum, but I cant find what I need.
I am finding solution, how can I read coordinates (x,Y) of mouse cursor on my screen
Then I am trying this:
B4X:
Sub Checkposition
Dim eventdata As MouseEvent
Dim joo As JavaObject = eventdata
joo.InitializeStatic("MouseEvent")
x = joo.RunMethod("getScreenX", Null)
y = joo.RunMethod("getScreenY", Null)
End Sub
I need checking the position continuously on my screen (monitor)
abd I get error:
java.lang.RuntimeException: Object should first be initialized (MouseEvent)
Please help me
Thank you very much
p4ppc
Last edited: