oonzpoonz
2011-12-18 16:41:34
Is there a way to re-name the Simba and SMART window titles in the taskbar?
2011-12-18 16:41:34
2011-12-18 16:44:14
2011-12-18 16:45:07
From: oonzpoonz
Is there a way to re-name the Simba and SMART window titles in the taskbar?
2011-12-18 16:48:39
StatsGuise('Your Text Here');2011-12-18 17:14:30
From: Aegis
StatsGuise('Your Text Here');
Pretty sure that's it. For Simba, anyways.
2011-12-18 17:33:40
function FindWindow(ClassName, WindowName: PChar): HWND; external 'FindWindowA@User32.dll stdcall';
function SendMessage(WindowHandle: HWND; Msg: WORD; WPARAM: LongInt; LPARAM: LongInt): LongInt; external 'SendMessage@User32.dll stdcall';
function FindSmart: HWND;
var
Smart: HWND;
begin
Smart:= FindWindow('SunAwtFrame', 'Public SMARTv6.6 - SMART Minimizing Autoing Resource Thing - By BenLand100');
result:= Smart;
end;
Procedure ChangeName(Sender: TObject);
var
T: PCHAR;
WM_SETTEXT: Word;
Temp: LongInt;
begin
Temp:= HexToInt('000C'); //WHAT IS THE Equivalent of 0x000C in PASCAL?! :S
WM_SETTEXT:= Temp;
SendMessage(FindSmart, WM_SETTEXT, 0, T);
end;
2011-12-18 18:34:52
2011-12-19 20:05:50
2011-12-19 20:27:38
From: Runaway
Isn't that just a procedure that YoHo put in one of his scripts? I believe he used StatsGuise as a conjuction of Status(''); and Disguise('');
The simba window can be renamed with Disguise('');
2012-01-21 08:28:15
2012-01-21 08:41:24
From: ggzz
If I can figure out how to Change PCHAR To LPARAM(TextHere) AND figure out how to do 0x000C in Pascal.. then this will work 100%
Atm all it does is find smart.. U actually need to sendmessage to smart telling it to change it's title..
function FindWindow(ClassName, WindowName: PChar): HWND; external 'FindWindowA@User32.dll stdcall';
function SendMessage(WindowHandle: HWND; Msg: WORD; WPARAM: LongInt; LPARAM: LongInt): LongInt; external 'SendMessage@User32.dll stdcall';
function FindSmart: HWND;
var
Smart: HWND;
begin
Smart:= FindWindow('SunAwtFrame', 'Public SMARTv6.6 - SMART Minimizing Autoing Resource Thing - By BenLand100');
result:= Smart;
end;
Procedure ChangeName(Sender: TObject);
var
T: PCHAR;
WM_SETTEXT: Word;
Temp: LongInt;
begin
Temp:= HexToInt('000C'); //WHAT IS THE Equivalent of 0x000C in PASCAL?! :S
WM_SETTEXT:= Temp;
SendMessage(FindSmart, WM_SETTEXT, 0, T);
end;
2012-01-22 04:25:36
From: Daniel
Note for the above code, you need to enable API calls for this to work. Tools -> Settings. Then, expand: Settings -> Interpreter -> AllowSysCalls, and change the value to True :)