Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

Mouse fun - Python Code Bank


Mouse fun
Moves the mouse around the screen at random times. fun to watch people freak out thinking their computer is possessed. save as .pyw and place in startup folder, or get creative and use app redirection.
                #Mouse Fun
#By: Tech B.
#10/13/2009
################
#For best effect, SaveAs .pyw for no console
#    place in windows startup folder and make hidden =)    
#                                                        
#Feel free to modify.                                         
#Enjoy!!!! lol                                              
#######################################################
print """Save this file as .pyw"""
from ctypes import *
import random, time

user = windll.user32

cor = [10,20,30,40,50,60,70,80,90,100,110,
       120,130,140,150,160,170,180,190,200,
       210,220,230,240,250,260,270,280,290,
       300,310,320,340,350,360,370,380,390,
       400,410,420,430,440,450,460,470,480,
       490,500,510,520,530,540,560,570,580,
       590,600,610,620,630,640,650,670,680,
       690,700,710,720,730,740,750,760,770,
       780,800,810,820,830,840,850,860,870,
       880,900]

t = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100]



while 1:
    random.shuffle(cor)
    random.shuffle(t)
    time.sleep(t[0])
    user.SetCursorPos(cor[0],cor[1])
    time.sleep(.1)
    user.SetCursorPos(cor[1],cor[2])
    time.sleep(.1)
    user.SetCursorPos(cor[2],cor[3])
    time.sleep(.1)
    user.SetCursorPos(cor[3],cor[4])
    time.sleep(.1)
    user.SetCursorPos(cor[4],cor[5])
    time.sleep(.1)
    user.SetCursorPos(cor[5],cor[6])
    time.sleep(.1)
    user.SetCursorPos(cor[6],cor[7])
    time.sleep(.1)
    user.SetCursorPos(cor[7],cor[8])
    time.sleep(.1)
    user.SetCursorPos(cor[8],cor[9])

            
Comments
Sorry but there are no comments to display