Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-19-2004, 08:57 AM   #1
Member (10 bit)
 
Designer's Avatar
 
Join Date: Mar 2004
Location: Essex, UK
Posts: 982
Send a message via AIM to Designer Send a message via MSN to Designer
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.
Designer is offline   Reply With Quote
Old 07-20-2004, 08:30 AM   #2
Member (10 bit)
 
Designer's Avatar
 
Join Date: Mar 2004
Location: Essex, UK
Posts: 982
Send a message via AIM to Designer Send a message via MSN to Designer
I think what i've posted makes sense, please let me know if I hav'nt provided enough info about the problem.

Thanks
Designer is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:49 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2