button click through another program
-
Hello everyone, I've got a little problem. In an office, there is a server running with a program and in that program is a button to switch off all the lights. But I would like to have a phisical button. Let's say that we use a keyboard button. The problem is that there is no source code for the serverprogram. So I would like to know if it is possible to make another program, which can get an keyboard-event and let this event click on the button in another program? And a happy new year to all of you!
-
Hello everyone, I've got a little problem. In an office, there is a server running with a program and in that program is a button to switch off all the lights. But I would like to have a phisical button. Let's say that we use a keyboard button. The problem is that there is no source code for the serverprogram. So I would like to know if it is possible to make another program, which can get an keyboard-event and let this event click on the button in another program? And a happy new year to all of you!
You can find the window handle of the button and send it a message. It's fiddly, hacky and ugly, but it will work. The second half, you can write a system wide keyboard hook, or another program which, when it's got the focus, gets the keyboard event, then finds that window and sends it the message.
Christian Graus Driven to the arms of OSX by Vista.
-
Hello everyone, I've got a little problem. In an office, there is a server running with a program and in that program is a button to switch off all the lights. But I would like to have a phisical button. Let's say that we use a keyboard button. The problem is that there is no source code for the serverprogram. So I would like to know if it is possible to make another program, which can get an keyboard-event and let this event click on the button in another program? And a happy new year to all of you!
-
hmmmm, I wanted to do this for a long time, is it possible if I just use the Mouse? a program that will set the position of the mouse on the screen using coordinates and then the mouse CLICKS (without user interaction) using a code.
-
Hello everyone, I've got a little problem. In an office, there is a server running with a program and in that program is a button to switch off all the lights. But I would like to have a phisical button. Let's say that we use a keyboard button. The problem is that there is no source code for the serverprogram. So I would like to know if it is possible to make another program, which can get an keyboard-event and let this event click on the button in another program? And a happy new year to all of you!
-
I am the programmer, still learning, but I just needed some solution-idea's to the problem. As I have the idea's, I can try to build the app.
-
It was a rude statement, my apologies. The server-application is running under Windows? In that scenario, FindWindow and SendKeys will do the trick, as other people already mentioned.
I are troll :)