Posting this solution encase someone might run into similar issue.
In create popup dialog sub:
Code:
REM IF opersy = "95" OR opersy = "98" OR opersy = "98SE" THEN REM ' To keep pop up dialog on top. REM SetWindowPos hDlg50, %HWND_TOPMOST,0,0,0,0,%SWP_NOMOVE OR %SWP_NOSIZE REM END IF
Code:
CASE %WM_INITDIALOG ' <- sent right before the dialog is displayed. SetForegroundWindow(CBHNDL) ' Need for Windows XP and 98, 10-17-2007 ' REMMING BELOW, ALLOWS DIALOG TO CLOSE IF USER LFT CLKS OUTSIDE DIALOG, 10-16-2007 REM CONTROL SET FOCUS CBHNDL, %IDL_ADDEXP ' FOR WINDOWS 98 OR HAVE TO PRESS <tab> key REM CONTROL SEND CBHNDL, %IDL_ADDEXP, %EM_SETSEL, 0, -1' Needed for Windows 98
Leave a comment: