0

What do I put in my onkeydown to move the mouse to a specified [x,y]?

The Student
  • 27,520
  • 68
  • 161
  • 264

2 Answers2

2

nothing. you don't get to control the mouse from javascript.

however, you may be able to simulate the action you're looking for.

Simulating click with javascript on document

Community
  • 1
  • 1
lincolnk
  • 11,218
  • 4
  • 40
  • 61
1

Seriously? You want to move my mouse pointer without my permission? Get real! You can imagine how such capabilities could be used for malicious purposes.

Josh Stodola
  • 81,538
  • 47
  • 180
  • 227