Jump to content

Help for My Script


Fanatick
 Share

Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...