Results 1 to 12 of 12

Thread: Re-naming taskbar titles

  1. #1
    Join Date
    Nov 2011
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Re-naming taskbar titles

    Is there a way to re-name the Simba and SMART window titles in the taskbar?

  2. #2
    Join Date
    Oct 2011
    Posts
    192
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    I'm not sure about SMART, but I know you can in Simba.

    Hold on.

  3. #3
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by oonzpoonz View Post
    Is there a way to re-name the Simba and SMART window titles in the taskbar?
    Recompile Smart with the name you'd like it to have.. OR write a program to just SendMessage->WindowTitle

    and WindowTitle will be the name you'd like smart to have..
    I am Ggzz..
    Hackintosher

  4. #4
    Join Date
    Oct 2011
    Posts
    192
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    Simba Code:
    StatsGuise('Your Text Here');

    Pretty sure that's it. For Simba, anyways.

  5. #5
    Join Date
    Jan 2008
    Location
    C:\
    Posts
    1,483
    Mentioned
    2 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Aegis View Post
    Simba Code:
    StatsGuise('Your Text Here');

    Pretty sure that's it. For Simba, anyways.
    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('');

  6. #6
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    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..

    Code:
    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;
    Last edited by Brandon; 12-18-2011 at 10:35 PM.
    I am Ggzz..
    Hackintosher

  7. #7
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    It's StatGuise, i recently saw it in "YoHoJo"'s video.

  8. #8
    Join Date
    Nov 2011
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for all the replies everyone.

    Disguise works in renaming Simba, just have to figure out how to rename SMART

  9. #9
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Quote Originally Posted by Runaway View Post
    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('');
    Correct.
    StatsGuise is not in SRL/Simba it's just a little thing I made that combines Status and Disguise into one.

    Disguise('bla bla') would change the taskbar of Simba to be called bla bla

  10. #10
    Join Date
    Jan 2012
    Posts
    1,104
    Mentioned
    18 Post(s)
    Quoted
    211 Post(s)

    Default

    Any success of renaming the SMART windows?

  11. #11
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by ggzz View Post
    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..

    Code:
    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;
    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
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  12. #12
    Join Date
    Jan 2012
    Posts
    1,104
    Mentioned
    18 Post(s)
    Quoted
    211 Post(s)

    Default

    Quote Originally Posted by Daniel View Post
    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
    Ok i got the settings, but cant get those functions to work. I dont understand these codes and i get errors:
    [Error] (9:10): Duplicate identifier 'FINDWINDOW' at line 8

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •