Sign in to follow this  
Followers 0
Fanatick

Help for My Script

3 posts in this topic

#1 ·  Posted (edited)

Hi i have a error in my script , in the line 18 for the mouse click right , i want the mouse move random in the X and Y and after right click ,

or the programme continuing to press the right button in mouse because its more pratic than click each time the mouse move , but move the mouse in random X and Y and when i click in "é" the programm stop , and when i click in "&" the programme start / restart . But i prefer the programm press the right click all time and move the mouse . Sry for bad english. and thank for help :P

#include <GUIConstants.au3>

HotKeySet ( '&','moveandclick' )

HotKeySet ( 'é','stop' )

$i=0

While 1

Sleep(1000)

WEnd

Func moveandclick()

While 1

#NoTrayIcon

If $i=1 Then ExitLoop

$x = Random(325,1112)

If $i=1 Then ExitLoop

$y = Random(290,832)

If $i=1 Then ExitLoop

MouseMove($x,$y)

If $i=1 Then ExitLoop

MouseClick($right)

sleep(300)

If $i=1 Then ExitLoop

If $i=1 Then ExitLoop

WEnd

$i=0

EndFunc

Func stop()

$i=1

EndFunc

Edited by Fanatick

Share this post


Link to post
Share on other sites



programm is for diablo2 , i want he do wall bone for me and i play in small window.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0