changing GUI classname Topic is solved

Ask for help, how to use AHK_H, etc.
guest3456
Posts: 3123
Joined: 09 Oct 2013, 10:31

changing GUI classname

05 Mar 2020, 13:11

if we wanted to change the GUI classname to something other than "AutoHotkeyGUI", what places in the ahkdll code would we need to change?

User avatar
Alguimist
Posts: 369
Joined: 05 Oct 2015, 16:41
Contact:

Re: changing GUI classname  Topic is solved

05 Mar 2020, 15:25

guest3456 wrote:
05 Mar 2020, 13:11
if we wanted to change the GUI classname to something other than "AutoHotkeyGUI", what places in the ahkdll code would we need to change?
1) source\defines.h: #define WINDOW_CLASS_GUI _T("AutoHotkeyGUI")

2) Edit the binary with a hex editor. Not recommended.

3) Create the window with DllCall:
- Set the class name in a WNDCLASSEX structure: NumPut(&ClassName, WNDCLASSEX, A_PtrSize == 8 ? 64 : 36, "Ptr").
- Assign a window procedure to the class: NumPut(RegisterCallback("WndProc", "F"), WNDCLASSEX...
- DllCall RegisterClassEx: If (!DllCall("RegisterClassEx", "Ptr", &WNDCLASSEX)) {.
- DllCall CreateWindowEx: DllCall("CreateWindowEx"...
guest3456
Posts: 3123
Joined: 09 Oct 2013, 10:31

Re: changing GUI classname

05 Mar 2020, 23:08

Alguimist wrote:
05 Mar 2020, 15:25
1) source\defines.h: #define WINDOW_CLASS_GUI _T("AutoHotkeyGUI")

2) Edit the binary with a hex editor. Not recommended.

3) Create the window with DllCall:
- Set the class name in a WNDCLASSEX structure: NumPut(&ClassName, WNDCLASSEX, A_PtrSize == 8 ? 64 : 36, "Ptr").
- Assign a window procedure to the class: NumPut(RegisterCallback("WndProc", "F"), WNDCLASSEX...
- DllCall RegisterClassEx: If (!DllCall("RegisterClassEx", "Ptr", &WNDCLASSEX)) {.
- DllCall CreateWindowEx: DllCall("CreateWindowEx"...
thank you sir. i'm rebuilding the AHK_H code to change the pw anyway so i'll just use option #1


Return to “Ask For Help”

Who is online

Users browsing this forum: No registered users and 1 guest