
Originally Posted by
guino
yeah, just add gammacontrol=TITLE and when pressing gamma, the message will be sent to the window of that title.
Gamma Control doesn't work
Added gammacontrol=Form1 to mpc.ini and RR.ini in all the possible places. So then I have Form1 running and hit Day/Night and nothing happens 
This is in the 1/30 version... testing out 1/31 now.
Code:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
const
MY_MESSAGE = WM_USER + 442;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
procedure MessageReceiver(var msg: TMessage); message MY_MESSAGE;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.MessageReceiver(var msg: TMessage);
var
txt: PChar;
begin
txt := PChar(msg.lParam);
msg.Result := 1;
ShowMessage(txt);
end;
procedure TForm1.Button1Click(Sender: TObject);
var
txt: string;
begin
txt := 'Hello World';
SendMessage(Form1.Handle, MY_MESSAGE, 0, DWORD(PChar(txt)));
end;
end.
Bookmarks