Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How do I make Jscript interact with an EXE or MUD (game)?

  1. Jul 28, 2010 #1
    I'm trying to write Jscript code that will interact with a MUD for me. A MUD is a Multi-User Dungeon. It's a text-based online game. The server sends the names and descriptions of places and things for the player to interact with.


    What I need to know is: 1) How do I pass information from an exe, where the text is displayed, to my code, or a specific method for processing, and 2) have my code send back strings (and enter them into the .exe's text field.)


    I wrote Java for about a year in some computer science classes, using BlueJ to create various things, but they all acted on their own and never interacted with other programs.








    A similar but not very relevant question was posted here: https://www.physicsforums.com/showthread.php?t=384110
     
    Last edited: Jul 29, 2010
  2. jcsd
  3. Jul 29, 2010 #2

    Borg

    User Avatar
    Science Advisor
    Gold Member
    2017 Award

    https://www.physicsforums.com/showthread.php?t=414380"

    Illegal/Dangerous Activities:
    Explicit "how to" discussions of illegal and/or dangerous activities, or posts advocating such activities, are prohibited; such as: how to make explosives, manufacture crack, steal software, hack into the CIA, ...

    You are asking how to write software that will violate the terms of the MUD.
     
    Last edited by a moderator: Apr 25, 2017
  4. Jul 29, 2010 #3

    There are thousands of different MUDs, few with the same rule sets. This MUD allows scripting, and the creator of the mud condones it. In fact, most muds do allow scripts, just not outrageous ones that completely automate the character for days on end.

    You could choose to not read the entire first paragraph of the original post. I put it there to help give people a better understanding.
     
    Last edited by a moderator: Apr 25, 2017
  5. Jul 29, 2010 #4

    Borg

    User Avatar
    Science Advisor
    Gold Member
    2017 Award

    Care to post a link to the site that you want to write the script for? It would be interesting to see exactly what they say about this.
    All MUDs send information to your computer. This doesn't say anything about condoning automated scripts.
     
  6. Jul 29, 2010 #5
    Zmud, MUSHClient and Tinyfuge all have scripting functionality, and nearly every MUD client has "triggers" that automatically respond to sends from the MUD.
     
  7. Jul 29, 2010 #6

    Borg

    User Avatar
    Science Advisor
    Gold Member
    2017 Award

    It is going to be dependant on what APIs those programs make public. I took a quick look at TinyFugue. For TinyFugue, you will probably need to use something like their paste command to send messages. In order to get the text display, you will need to set up a hook macro.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook