1

I want to write a very simple client side javascript code to move mouse inside browser. That can makes lync always show "online" which makes my boss happy. what is the good way to control mouse ? thanks

BufBills
  • 8,005
  • 12
  • 48
  • 90
  • 2
    I'm not sure this can be done at all, not with current APIs – salezica Nov 26 '14 at 01:53
  • possible duplicate of [Move the mouse pointer to a specific position?](http://stackoverflow.com/questions/4752501/move-the-mouse-pointer-to-a-specific-position) – Tomty Nov 26 '14 at 01:56
  • Very interested to see if this can actually be pulled off with JS :) – Trevan Hetzel Nov 26 '14 at 01:58
  • There must be a Lync API you can use instead to force always online? Why do you need to do this in JavaScript? – Rup Nov 26 '14 at 02:00
  • i think javascript is very small and don not need to be installed on Windows machine, which can get around of company IT department. – BufBills Nov 26 '14 at 02:02
  • i have multiple fiends who think this is a very useful tool they need. but they don't want to install anything on their machine. so javascript is an good option which can be ran in browser. – BufBills Nov 26 '14 at 02:03
  • Not an answer as it is not JS, but I've used this [MouseJiggle](https://mousejiggler.codeplex.com/) app in the past. It is a downloadable program, but it doesn't install which means it isn't blocked by IT policy. It moves the mouse around. There is even an option to do this without moving the cursor. – jasonscript Nov 26 '14 at 02:12

1 Answers1

3

You can't. There's some pretty serious security implications of doing it. That said, you may be able to achieve your goal by triggering a mousemove or click event via jQuery together with a setInterval to trick the page into thinking a human is interacting with it.

Jack
  • 20,735
  • 11
  • 48
  • 48
  • 1
    I think OP means that the aim is to interact with Microsoft Lync to make it seem they're always online; i.e. they're lazy but don't want their boss to find out. – Ja͢ck Nov 26 '14 at 02:08
  • Looks like there is a webapp version so I don't see what that matters? You'd just do what I said in the console directly or make a browser extension. It's not my job to judge the purpose if it's not illegal. – Jack Nov 26 '14 at 02:17
  • Ah, I was under the impression that Lync runs in a separate app :) – Ja͢ck Nov 26 '14 at 02:18