Page 1 of 2

So, I wrote this thing

Posted: Wed Jan 19, 2005 3:49 pm
by stateful
Client/Server control for EQ2.

Can send multiple commands, mouseclicks, hotkeys, etc. This doesn't tie into EQ2 at all, as far as anyone can tell, you are sitting at your computer actually typing and clicking.

I've started playing WoW for the time being. So, I'm putting some pics here to see if there is interest.

It works across the Internet to control an instance of EQ2 running on a computer that is running REQ2S. But without a remote display it's kinda difficult to do much. Logs can be streamed to the client. I have successfully chatted in game using this tunneled through SSH to my home net and sent to my game PC.

The best use, is running it on your laptop with a view of the monitor. If you are a caster, you can just type all of the commands you usually do, like
/assist xxxx
8 <-hotkey
1 <-attack
#Pause 3 <- wait for spell cast by 8
3
#Pause 2
etc.....
Just have to target the tank and /follow



The help button you see below produces the following output:
-------------------------------------------
You must be connected to an REQ2 server to send commands.
EQ2 must be running on the computer the server is running on.
Send Regular EQ-style slash commands as you would in game
or any other character for that matter see below for special cases (alt, ctrl, esc, tab, enter)

REQ2 commands:
REQ2 commands are prefixed with a #
#Enter -- Press enter key on the server side; e.g. /tell blah blah; #ENTER
#Tab -- Press the Tab key on the server side
#Esc -- Press the ESC key on the server side
#Pause X -- pause, server side, for the specified X of milliseconds

Hotkeys:
The Insta-Send hotkey bar can be used to hit that hotkey in game.
To hit a hotkey as part of a command sequence in the commands window:
#HotKey [Alt][Ctrl] X -- send hotkey specifed, e.g. "#Hotkey Alt ="
Note: this #Hotkey command can also be used for other ctrl and alt needs,
like alt-o. (#Hotkey Alt o)

Mouse:
#LClick X Y -- Left click the mouse that the specified coords
#LDClick X Y -- Double left click
#RClick X Y -- Right click
------------------------------------------------

Some pics of it running:

1. Server after being started. Server runs on box where EQ2 is running.

Image


2. Client after connecting to the server. The client CAN run on the same PC as the server but it's not really advisable, unless you are doing some looping macro type stuff, because the server has to make EQ2 the foreground window to simulate keystrokes. The Insta-Sent Hotkeys are immedately sent to the server to be executed in game.

Image


3. Client being used

Image


4. Server receiving and executing commands

Image


5. The "More Log Windows" button on the client.

Image

6. The "Reply to Last Tell" button on client

Image

So, anybody want it?

Def

Posted: Wed Jan 19, 2005 4:52 pm
by A_Druid_00
I could definately stand to have more red X's, they fill me with merriment.

Posted: Wed Jan 19, 2005 5:08 pm
by Night Hawk
I'll have some frys with those red X's

AHHHH!

Posted: Wed Jan 19, 2005 5:13 pm
by stateful
Never, ever, lease a server from AIT Inc. http://aitcom.net/

moved pics to photobucket

Posted: Wed Jan 19, 2005 5:28 pm
by A_Druid_00
You has killed a granitescale basilisk
It's good to see not much has changed from EQ1 to EQ2

Posted: Wed Jan 19, 2005 6:01 pm
by dont_know_at_all
You offering the source?

Source

Posted: Wed Jan 19, 2005 6:04 pm
by stateful
Sure, don't plan on doing much more with this for a while. Let me clean it up a little. Also, it's .NET.

binaries

Posted: Wed Jan 19, 2005 6:39 pm
by stateful
Here's the exe's. The .config has to reside in the same dir as the server and will have to be edited if you want to receive logs.

The "Disable Mouse Timer" button you see but didn't see in the pics was added as a temporary fix to an exception. There is a timer that fires ever 250ms that updates the X,Y of the mouse in the status bar, for some reason on one of my computers, the vmware/win2k one, when I tried to move the window it would throw up. If you get this error, hit continue, click, disable mouse timer, and move the window. This didn't happen on XP. The Loop checkbox and iteration timer thingy aren't coded yet. I have the code just haven't put it in. The network code is a little buggy as well, sometimes you'll get the client running in the background if you close the server without disconnecting the client first, etc. Please keep in mind this isn't considered release or anything like that, I'm just putting it out to get some opinions.

If you want to see it work without running EQ2, just open the txt doc in the zip file wherever you are running the server app. Keep in mind all can be run on the same comp and just connect from the client to 127.0.0.1. The port used can be configured in the .config as well. You can also simulate logging, by changing the .config to some text doc, and adding pasting some text into it then saving it.

Link:
http://screammy.name/req2/REQ2.011905.zip

Posted: Thu Jan 20, 2005 1:37 am
by Amadeus
Did I miss the posting of the source? I wouldn't mind playing around a bit with this at all.

No

Posted: Thu Jan 20, 2005 2:31 am
by stateful
I haven't put it up there yet. It's my first big thing with C++ :).. want to clean it up a bit.

Def

Source

Posted: Thu Jan 20, 2005 3:51 am
by stateful
Here is the source.

I have cleaned it up a bit.

Changed #Pause X from seconds to milliseconds

Annotated within code all of the TODO sections

Link:
http://screammy.name/req2/REQ2-source.011905.zip

Def

noob question

Posted: Wed Feb 02, 2005 6:29 pm
by Toophertwo
it wont compile under .net c++ 2005, any easyer ways?

Posted: Thu Feb 03, 2005 3:34 pm
by LordBhaal
I am interested in trying this out but I cannot get to the zip file. Do you still have the source available or the compiled exe's?

Thanks

c++ in 2005

Posted: Thu Feb 03, 2005 3:41 pm
by stateful
They revamped c++ in 2005, apparently it was thrown together for inclusion in 2003, read that on MSDN a couple months ago. Info on the new Visual C++ 2005 language can be found here.
http://msdn.microsoft.com/visualc/using ... fault.aspx

I don't have 2005 atm so, you can convert it, or grab the binaries in the post above the source.

Def

freaking hosting

Posted: Thu Feb 03, 2005 3:46 pm
by stateful
Seriously, AIT hosting sucks. I'll get it back up soon.

Def