Jump to content

Battling Scripts?


Recommended Posts

i was bored, and wondering if there would be a simple way to send a variable from one autoit script to another... so maybe they could compete with each other or somthing, like fighting programs...maybe a rock paper scissors sort of thing...

like...

$var = Random(1, 3, 1)
;;; something that sends variable to other script
;;; something that receives variable from other script
If $var = $otherscriptvar Then MsgBox(0, "Result", "Tie")
;;; etc

1 = rock

2 = paper

3 = scissors

etc...

rock, paper, scissors would be just a start though... i was thinking of making somthing much more intricate, like receive $var then counter attack, etc...

any help is appreciated... : )

Link to comment
Share on other sites

  • Moderators

TCP

StdOut/In

A file/Registry to write to for both to read

Those are the 3 that just popped in my head.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

TCP

StdOut/In

A file/Registry to write to for both to read

Those are the 3 that just popped in my head.

i was thinking of using either a reg entry or an ini file...but i'm not so sure yet, haven't put much thought into it...

anyone who wants to try or to help is welcome to it... : )

Link to comment
Share on other sites

On the same comp? That would be, quite frankly, dumb.

Use TCP like SmOke_N said or upload ini's to a host with headers so clients can know which two users are talking to eachother.

I would frown upon a registry-infesting rock/paper/scissors game.

Ah well.

Ha, I haven't been on these forums since... 2006, almost. Behold, my legacy signature:My AutoIt idol is Valuater. You know you love him, too.My Stuff: D&D AGoT Tools Suite
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...