|
hi,
i want to control the keyboard a system through another system.ie i need to get the controls of the keyboard of a system to the keyboard of another system which are connected through network.plz help me.
Exploring C#...
|
|
|
|
|
Apart from that I don't understand all, it sound a little "illegal"!
|
|
|
|
|
illegal??? havent u seen the VNC viewer????
we are creating a software which enables server to control its clients.....
This code was posted by me...
|
|
|
|
|
Maybe I didn't understood you wright, for me it sounds like you whanted to create a keygrapper.
Sorry I couldn't help.
All the best,
Martin
|
|
|
|
|
okies.....is there any way we can stimulate a keypress???
i mean if we give the corresponding ASCII value of a key,the program should do the key press.....
This code was posted by me...
|
|
|
|
|
|
Have a look at the SendKeys class
|
|
|
|
|
thank you martin and Luc.it worked....
This code was posted by me...
|
|
|
|
|
|
that code helped me in the client side by stimualating the key press...but im having a problem with getting the parameter for the function from the keyboard of the server.how can i identify which key is pressed??it works with the GetChar() only for the alpha numeric keys.how can i make it working for all the keys????
This code was posted by me...
|
|
|
|
|
If you are handling the KeyPress event you can use the KeyPressEventArgs member KeyChar.
For example "Enter" is pressed:
if(e.KeyChar == 13)
If you are handling the KeyDown event you can use the KeyEventArgs members KeyData, KeyCode and KeyValue.
Hope it helps!
All the best,
Martin
|
|
|
|
|
Vivek is probably gonna make a password grabber and put it onto a machine in the pentagon. He will then proceed to take over the world and it will be all your fault. Thanks Martin#
There are 10 types of people in the world, those who understand binary and those who dont.
|
|
|
|
|
Yes, that's all included in my plan!
Because if all works well, he will remember me, and make me a the Co leader of the world! ;P
|
|
|
|
|
he he.....thats a good idea smyers .
thanks for the tips martin#.thanking you on behalf of all my team members..
This code was posted by me...
|
|
|
|
|
You are very much wellcome!
It's allways nice to hear that somebody had benefit from my tips!
|
|
|
|
|
hey....SendKeys() is not working for the windows logo key(start menu key)...there is no code for these keys in that function....any solution??
This code was posted by me...
|
|
|
|
|
Hello everyone,
I have an ASP.NET C# website that loads data (modules). This is my code below:
private void prevMod()
{
string[] stModArray = (string[])Session["modArray"];
for (int i=stModArray.Length-1; i>0; i--)
{
if (Session["selectedModule"].ToString() == stModArray[i].ToString())
{
Session["selectedModule"] = stModArray[i-1].ToString();
break;
}
}
BindData();
}
Ultimately, this button loads all the data into a string array and when you press it it moves to the previous item in the array but before I'm able to do that I get this error:
Object reference not set to an instance of an object. - for (int i=stModArray.Length-1; i>0; i--)
Does anyone have any ideas? Thanks in advance I appreciate the help
|
|
|
|
|
Have you tried stepping through the code to see what causes the error ? Is modArray always a string array ? Are the strings ever null ?
Michael101 wrote: stModArray[i].ToString(
This is kind of ridiculous, you call ToString on a string, and it could be null, which would cause your error.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
What causes the error is when I try to return the length for the for loop. I know the ToString looks stupid I origionally didn't do that but I will check if a null value is getting passed in but I can't see why...... The problem is when it firstly initiates the for loop.
|
|
|
|
|
Then stModArray must be null. Have you tried setting a break point to see why it fails ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yep I've found the problem.... It is null after all..... I did a Response.Write command and it's empty. I heard there is a way of promoting people within the site, since you've helped me I'll be more than happy to do it for you. How do you do it though?
Thanks for the help
|
|
|
|
|
CG doesn't need promoting - he is generally recognised as the definitive answer is this forum. Just rate his post using the 1 2 3 4 5 at the bottom.
Regards
*********************************************
|
|
|
|
|
Thanks for the 5 Glad to help.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: you call ToString on a string
That brings back some memories.... this dude would write code like someString.ToLower().ToString() and someString = someOtherString.ToString().
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
Can I use a service to control a client's service from a server
Best Regards,
M. J. Jaya Chitra
|
|
|
|