Jump to content
Oxbile

Setting Variables

Recommended Posts

Oxbile

Is There Any Commands That Can Create A Random Variable.

I know How To Do This In Batch

---------------------------------------------------------------------------------------------------------

set %variable%=%random% >nul.save

 

set %variable%=%random% < nul.save

---------------------------------------------------------------------------------------------------------

 

is there any way to imatate that in autoit?

Share this post


Link to post
Share on other sites
Synapsee
While 1

    ;https://www.autoitscript.com/autoit3/docs/functions/Random.htm
    $iVar = Random(1, 2, 1)

    ;https://www.autoitscript.fr/autoit3/docs/functions/MsgBox.htm
    MsgBox(0, "", $iVar)

WEnd

 

Share this post


Link to post
Share on other sites
Oxbile
1 hour ago, Synapsee said:
While 1

    ;https://www.autoitscript.com/autoit3/docs/functions/Random.htm
    $iVar = Random(1, 2, 1)

    ;https://www.autoitscript.fr/autoit3/docs/functions/MsgBox.htm
    MsgBox(0, "", $iVar)

WEnd

 

and how to load it in send?

sorry im new.

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

×