changing GUI classname Topic is solved
changing GUI classname
if we wanted to change the GUI classname to something other than "AutoHotkeyGUI", what places in the ahkdll code would we need to change?
Re: changing GUI classname Topic is solved
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"...
Re: changing GUI classname
thank you sir. i'm rebuilding the AHK_H code to change the pw anyway so i'll just use option #1Alguimist wrote: ↑05 Mar 2020, 15:251) 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"...