Napalm-uk-RTW

Hello and thank you for taking an interest in my thread. Now i need some help with a small application
i am trying to write, i hope somone out there can be of help.

This is what im trying to do, firstly i have an application that i need to manipulate. This application
is a dedicated server UI for a computer game that i run. The UI has some text box's buttons and some drop
down list box's and such. What im tring to accumplish is when the dedicated server UI for some reason
crashes or stops responding i need to restart the server automaticly which i can do with no problems,
but here comes my problem after my small application starts the server UI, information needs to be
entered into this application and then the load button needs to be clicked to load the server. I need
my application to enter certain details and then fire the load button. Now i have no idea how to go
about this or even where to start.

I have done many searches for manipulating other programs or controling other apllications but to no avail.

Is there anyone here who possibly shed some light on the matter or point me in the direction for some documentation on this subject.

Thanks for any help.




Re: Visual C# General Manipulating another program.

IsshouFuuraibou

Now, do you have access to the server UI code or not

if you do, status files that you can read in on restarting

if you don't, you need to do same major reflections on the program and need to become knowledgeable about the internal workings of the server UI.





Re: Visual C# General Manipulating another program.

Friendly Dog

First of all, "Server UI" is a confusing term. Do you mean you have a website Server, as name suggests, provide services to clients. So servers usually don't have UI other than for administrative or configuration purpose.






Re: Visual C# General Manipulating another program.

Napalm-uk-RTW

@Isshoufuuraibou

Unfortunatly the source code is not available which makes my task alot more complicated.

Is reflection what i need to get this task to work if so can you point me in the direction of any good documentation on the subject.

@Friendly Dog

This is a windows based application that hosts my game server from my pc.

Thanks for your response.







Re: Visual C# General Manipulating another program.

Friendly Dog

As for communications beteween two windows applications there are seval commonly used techniques. I think what you can use for your project is socket communication. This is an easy approach and it's used in lots of projects. It also enable you to distribute the applications on different machines. Speed is also good, so for gaming it's a good choice.

And the communication part should be done in the backend logic, not the front-end UI. It's not wise to try to simulate key stokes or other UI operations in order to transmit data. Instead, transmit the data in backend logic and refresh UI based on the refresehed data.






Re: Visual C# General Manipulating another program.

IsshouFuuraibou

Napalm,

Is the server UI in a dotnet language
In terms of looking at reflection look up the msdn articles about it:
Reflection Overview
Reflection Namespace
Reflection (c#)

This may not help fully, you may need to find some other way for the programs to communicate. If all else fails, you can try to make a smart macro program to interface with the UI with some work, mouse capturing, message queue inserting, and a few other tricks.