[Gambas-user] Buffer Monitoring

Charlie charlie at ...2793...
Mon May 4 17:30:47 CEST 2015


I tried the code below on Linux Mint 17.1 Cinnamon. You will need a Form with
a Timer added. It only tracks the mouse position but I was able to open
Terminal, Calculator and other programs and even if Gambas did not have
focus the position of the mouse was still being Printed to the Gambas
Terminal.

Public Sub Form_Open()

Timer1.enabled = True
Timer1.delay = 1

End

Public Sub Timer1_Timer()
Dim sX, sY As Integer

sX = Mouse.ScreenX
sY = Mouse.ScreenY

Print sX, "  ", sY
End 



--
View this message in context: http://gambas.8142.n7.nabble.com/Buffer-Monitoring-tp51401p51455.html
Sent from the gambas-user mailing list archive at Nabble.com.




More information about the User mailing list