i think in first, i get a handle of menu bar

Code: Select all
RunProgram("Notepad.exe")
Delay(150)
hwnd = FindWindow_(#Null, "Untitled - Notepad") ;
If hwnd
ShowWindow_(GetMenu_(hwnd), #SW_HIDE)
Else
Debug "Notepad not found!"
EndIf
Code: Select all
RunProgram("Notepad.exe")
Delay(150)
hwnd = FindWindow_(#Null, "Untitled - Notepad") ;
If hwnd
ShowWindow_(GetMenu_(hwnd), #SW_HIDE)
Else
Debug "Notepad not found!"
EndIf
Code: Select all
RunProgram("Notepad.exe")
Delay(150)
hwnd = FindWindow_(#Null, "Untitled - Notepad")
SetMenu_(hwnd,0)