Raseena K
October 11th, 2001, 06:06 AM
Shortcut popup menus of the child forms are not showing when I am executing a VB Script program using WScript.Exe. The code is executing the Form.PopupMenu procedure but not shown to the user. WScript program is executing as a separate thread. I am using API procedures to track the completion of the VB Script Program.
Please tell me why it is not showing the popup menu & how can I solve this.
Code used to run the VB Script program is given below
Dim lStart as Long
Dim lTimeToQuit as Long
Dim sExeName as string
Dim lProcessId as Long
Dim bPastMidnight as Boolean
Dim lExitCode as Long
on error GoTo ERRORHANDLER
sExeName = "C:\winnt\system32\wscript.exe " & strVBSFileName
lEditorInstID = Shell(sExeName, vbMaximizedFocus)
lProcessId = OpenProcess(PROCESS_QUERY_INFORMATION, false, lEditorInstID)
Do
Call GetExitCodeProcess(lProcessId, lExitCode)
DoEvents
Loop While lExitCode = STATUS_PENDING
Another problem I have is that If I show a form from a DLL, the form name is not showing on the task bar. Even if you minimise the window, it does not show it on the task bar.
Please tell me why it is not showing the popup menu & how can I solve this.
Code used to run the VB Script program is given below
Dim lStart as Long
Dim lTimeToQuit as Long
Dim sExeName as string
Dim lProcessId as Long
Dim bPastMidnight as Boolean
Dim lExitCode as Long
on error GoTo ERRORHANDLER
sExeName = "C:\winnt\system32\wscript.exe " & strVBSFileName
lEditorInstID = Shell(sExeName, vbMaximizedFocus)
lProcessId = OpenProcess(PROCESS_QUERY_INFORMATION, false, lEditorInstID)
Do
Call GetExitCodeProcess(lProcessId, lExitCode)
DoEvents
Loop While lExitCode = STATUS_PENDING
Another problem I have is that If I show a form from a DLL, the form name is not showing on the task bar. Even if you minimise the window, it does not show it on the task bar.