I would rather use SendMessage as you suggested, but I couldn't figure out the window handle for the command line window. I thought this would get me the handle, but it didn't...
vb Code:
pID = Shell("cmd /c pause", vbNormalFocus) pHandle = OpenProcess(&H100000, True, pID)
Any ideas on how I can get the handle of the command line window?




Reply With Quote