Jump to content

Simple Question


Jmoore3274
 Share

Recommended Posts

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

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

 
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...