View Single Post
  #49   Spotlight this post!  
Unread 07-06-2002, 21:53
VanWEric VanWEric is offline
Registered User
#0250 (Dynamos)
 
Join Date: Feb 2002
Location: NY
Posts: 86
VanWEric is an unknown quantity at this point
keybd_event

I wrote 2 apps that talked to eachother (just for fun). One app used kb_event() to put keyboard events out for the other to pick up with getch(). Basically, do keybd_event(VK_(a letter or function),0,0,0); Have the recieving proggie active, use getch and look at the char it returns. IE to send the letter A to the other progg have app 1 go keybd_event(VK_A,0,0,0). The other is waiting with a myrecievingchar = getch(); I wrote a header file to include the letters and numbers (( windows.h has all the kb_event crap, but only defines the keys that arent useful)) I can get that posted if you want it, but it is really just a bunch of #define VK_A 65, #define VK_B...
Oh, and getch is in conio.h

Hope that helped, but i am guessing it didnt.

Mayhaps the unique data sending approach was vaguely interesting though