Mouselocate() doesn't work

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

Mouselocate() doesn't work

Post by Stefan »

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: 91
Joined: Mon Feb 24, 2014 10:54 pm
Location: Geneva
Contact:

Re: Mouselocate() doesn't work

Post by Arbrakaan »

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.
Post Reply