Sign in to follow this  
Followers 0
Jmoore3274

Simple Question

3 posts in this topic

I'm not sure if this is even possible but I don't see why it wouldn't be. What I'm trying to do is Make a script that will loop but at the start of the script it can choose to do something randomly. For example I would like to move my mouse to certain areas but I want it to go to those areas in a random order. Can this be done? If it can could some one point me in the correct direction so I can read up on it. I have looked for an answer but I'm not even sure what I'm looking for.

Thanks in advance

Share this post


Link to post
Share on other sites



I'm not sure if this is even possible but I don't see why it wouldn't be. What I'm trying to do is Make a script that will loop but at the start of the script it can choose to do something randomly. For example I would like to move my mouse to certain areas but I want it to go to those areas in a random order. Can this be done? If it can could some one point me in the correct direction so I can read up on it. I have looked for an answer but I'm not even sure what I'm looking for.

Thanks in advance

you can try like this, there ar probably shorter solutions you can try forum search if this dont help

Global $r,$0,$1,$2,$3
$r = $r&Random(0,3,1)
While 1
    Select
        Case StringInStr($r,'0') And $0 = ""
            MsgBox(0,"",0) 
            $0 = "1"
        Case StringInStr($r,'1') And $1 = ""
            MsgBox(0,"",1)
            $1 = "1"
        Case StringInStr($r,'2') And $2 = ""
            MsgBox(0,"",2)
            $2 = "1"
        Case StringInStr($r,'3') And $3 = ""
            MsgBox(0,"",3)
            $3 = "1"
        Case $0 = "1" And $1 = "1" And $2 = "1" And $3 = "1"
            $r = ""
            myfunc()
    EndSelect
    $r = $r&Random(0,3,1)
WEnd

Func myfunc()
    MsgBox(0,"","THE END")
    Exit
EndFunc

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

While 1 ; Loop
    MouseMove(Random(0,1024),Random(0,768)) ; set random position, max X = 1024, max y = 768
    Sleep(3000) 
    ; 3 seconds pause...
    ; enough time to click the system tray icon(to exit/pause)
    ; before the cursor moves to another random position
WEnd


Hi ;)

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