![]() |
|
#1
|
|||
|
|||
little help with a simple programhi,
im looking for a little help sending keystrokes to an especific window, so far my code is: CPP / C++ / C Code:
that program closes very well using ctrl+alt+del,so im looking for some code example to be able to send that key combination to the program i want to close. any help will be preciated,thanks in advance. Last edited by dsmith : 08-Sep-2005 at 08:41.
Reason: Please use [c] & [/c] when posting C code
|
|
#2
|
||||
|
||||
|
Quote:
Hey, My friend wrote some code to do exactly that task some years ago, but he wrote his application in x86 assembly. I wrote an application that does the job and works with Girder (an infrared application that allows sending keystrokes to applications just as you mentioned) but I had the problem of "highlighting" the requiered window (I can see you managed to overcome that problem). I'll try to write something as this task interests me too, and will be a part of my operating system project. I'll post my results. Best regards, Kobi Hikri. |
|
#3
|
||||
|
||||
|
Quote:
__________________
Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough. -- Pearl Williams |
|
#4
|
||||
|
||||
|
Quote:
I think the application you are trying to close has a thread (which the application starts when it is called) that monitors it's status. I think so because that is what I would do if I considered a process "critical" and wanted it to run as long as the system runs. Excuse me for asking, but can you share the name of the application you are having problems with ? Kobi Hikri. |
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [TUTORIAL] Calling an external program in C (Linux) | dsmith | C Programming Language | 4 | 22-Apr-2005 14:30 |
| Help with simple math table program (was a SIMPLE program) | Bubba | C Programming Language | 3 | 09-Mar-2005 13:40 |
| Help with a simple program | matthewbarr | C Programming Language | 3 | 10-Feb-2005 11:08 |
| Help with a simple program. | bluedragon27 | C Programming Language | 1 | 16-Nov-2004 16:40 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The