|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (10 bit)
|
Help a VB6 / Delphi newbie, having trouble
I'm attempting to write an apllication to run alongside another application called sweetlight (can be downloaded from www.sweetlight-controller.com), it's lighting control software.
Anyway, the application i'm trying to write will have to feed keystrokes to sweetlight from my program, for example pressing a button on my application will make sweetlight see a keystroke "a" to trigger a lighting scene as if you hit the letter "a" on the keyboard, the program it's gotta send the strokes to is called user.exe. The software deveoplers said it's possible and sent me this C++ example: #define MACRO1_ON 101 #define MACRO2_ON MACRO1_ON + 1 ... #define MACRO35_ON MACRO34_ON + 1 CWnd* Window; COPYDATASTRUCT cds; Window = FindWindow(NULL, "user screen"); if(Window) { cds.dwData = MACRO1_ON; cds.lpData = "ext prog"; cds.cbData = strlen("ext prog"); Window->sendMessage(WM_COPYDATA, (WPARAM)NULL, (LPARAM)&cds); } As I hav'nt ever used or had a clue about C++ I can't even understand it. If anyone can decypher this for me to something that works with either VB6 or Borland Delphi then I would be most appreciative Thanks for your patience
__________________
Intel Core i7 920 2.66GHz | Asus P6T SE| 6GB Corsair ram | XFX Radeon HD 4780 | 2 x 250 Gb Maxtor SATA II (in RAID 0), 1 x 250GB SATA II | Creative XFI soundcard | Coolermaster 650W PSU | ThermalTake Tsunami case My new website -Carp Fishing Forums Last edited by Designer; 07-19-2004 at 09:36 AM. |
|
|
|
|
|
#2 |
|
Member (10 bit)
|
I think what i've posted makes sense, please let me know if I hav'nt provided enough info about the problem.
Thanks |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|