1. Can somebody else check this behaviour?
2. Is StrPtr maybe the wrong approach?
Code: Select all
Run "Notepad"
WinWait "Untitled - Notepad"
SendMessage 0x000C, 0, StrPtr("New Notepad Title") ; 0X000C is WM_SETTEXT
Code: Select all
Run Notepad
WinWait Untitled - Notepad
SendMessage, 0x000C, 0, "New Notepad Title" ; 0x000C is WM_SETTEXT