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

  • Thread starter Thread starter nmonster
  • Start date Start date
  • Tags Tags
    Game
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 3K views
nmonster
Messages
3
Reaction score
0
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:
Physics news on Phys.org
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:
Borg said:
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.
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:
nmonster said:
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.
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.
nmonster said:
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.
All MUDs send information to your computer. This doesn't say anything about condoning automated scripts.
 
Zmud, MUSHClient and Tinyfuge all have scripting functionality, and nearly every MUD client has "triggers" that automatically respond to sends from the MUD.
 
nmonster said:
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.)
It is going to be dependent 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.