Just starting out? Need help? Post your questions and find answers here.
Stefan
 
Posts: 60
Joined: Mon Feb 05, 2018 9:44 pm

Mouselocate() doesn't work

by Stefan Sun Apr 21, 2019 6:34 am

Code: Select all
OpenWindow(0,10,10,800,600,"Test",#PB_Window_Normal)
ExamineMouse()
MouseLocate(10,10)


Mouse doesn't move. What do I wrong?
User avatar
Arbrakaan
 
Posts: 88
Joined: Mon Feb 24, 2014 10:54 pm
Location: Geneva

Re: Mouselocate() doesn't work

by Arbrakaan Sun Apr 21, 2019 8:20 am

Code: Select all
OpenWindow(0,10,10,800,600,"Test",#PB_Window_Normal)
ExamineMouse()
Debug MouseX()
MouseLocate(10,10)
Debug MouseX()


The "mouse" move well, but not the cursor.
You can't move the cursor in JS for security reasons.
Return to Coding Questions

Who is online

Users browsing this forum: No registered users and 3 guests