25
May
10

jython anti-screensaver script



A little something I put together to prevent the screensaver from starting:


from java.awt import Robot
from random import randint
from time import sleep

if __name__ == "__main__":
	rob = Robot()
	while True:
		rand_pos = randint(0,800)
		print "moving at %s" % rand_pos
		rob.mouseMove(rand_pos,rand_pos)
		sleep(10)

Advertisements

0 Responses to “jython anti-screensaver script”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Blog Stats

  • 223,857 hits

%d bloggers like this: