The sample code below works fine in a 32 bit OS, but does not work in a 64 bit OS. Does anyone have a suggestion?
I use the WinWait command to capture the handle for an open window and then use WinActivate with the handle to bring that specific window to the foreground. The example uses a notepad file as a very simple test. In my production system, I want to open a specific html window for our ERP system.
Source code:
Dim $This_Window = "Contact Center Info.txt - Notepad"
;
MsgBox(0, "First Step", "WinWait will get handle for This_Window")
Local $hWnd = WinWait($This_Window, "", 10)
;
MsgBox(0,"Handle for this window", $hWnd)
MsgBox(0, "Next step", "now execute winactivate for this Window by handle name")
; Activate the Notepad window using the handle returned by WinWait.
WinActivate($hWnd)