--
Regards,
Ashley Stahl
USCertifiedLetters, Inc.
ast...@uscertifiedletters.com
taskOperation CSTRING(8)
taskFile CSTRING(2000)
taskParameters CSTRING(5)
taskDirectory CSTRING(5)
taskShowCmnd SIGNED
taskOperation = 'open'
!taskFile = 'http://www.SomeWhere.ca'
taskFile = 'mailto:Som...@SomeWhere.ca?subject=Tech
Support&body=Is that cool%0dOr what?'
taskParameters = ''
taskDirectory = ''
taskShowCmnd = 1
IF ShellExecute(Window{PROP:Handle}, taskOperation,
taskFile, taskParameters, taskDirectory, taskShowCmnd) < 33
MESSAGE('Error executing connection to :' &
taskFile,'Client: Shell Execute Error',ICON:Exclamation)
END
"Ashley Stahl" <ast...@uscertifiedletters.com> wrote in message
news:3ec25874$1...@news.softvelocity.com...
--
Regards,
Ashley Stahl
USCertifiedLetters, Inc.
ast...@uscertifiedletters.com
"Jason S" <--> wrote in message news:3ec259b0$1...@news.softvelocity.com...
Ashley,
If your looking to RUN with a WAIT(), you might want to get the FREE
PowerRun at www.berthume.com . It has always been a better solution IMHO.
Charles Edmonds
cje-ByteM...@lansrad.com
LANSRAD - "Intelligent Solutions for Universal Problems"
www.lansrad.com
MODULE('win32.lib')
ShellExecuteEx(*SHELLEXECUTEINFOgroup), SIGNED, PASCAL, |
RAW, DLL, NAME('ShellExecuteExA')
WaitForSingleObject(UNSIGNED, LONG), UNSIGNED, PASCAL, |
NAME('WaitForSingleObject')
CloseHandle(UNSIGNED), SIGNED, PASCAL, NAME('CloseHandle')
END
sei LIKE(SHELLEXECUTEINFOgroup)
FileAction CSTRING(16)
FileName CSTRING(256)
Parameters CSTRING(256)
DefaultDirectory CSTRING(256)
FileAction = 'open'
FileName = 'myProgram.exe'
Parameters = ''
DefaultDirectory = ''
CLEAR(sei)
sei.cbSize = SIZE(sei)
sei.fMask = SEE_MASK_NOCLOSEPROCESS
sei.hwnd = Window{PROP:Handle}
sei.lpVerb = ADDRESS(FileAction)
sei.lpFile = ADDRESS(FileName)
sei.lpParameters = ADDRESS(Parameters)
sei.lpDirectory = ADDRESS(DefaultDirectory)
sei.nShow = SW_HIDE
IF ShellExecuteEx(sei)
I# = WaitForSingleObject(sei.hProcess, -1);
I# = CloseHandle(sei.hProcess);
END
Thanks, John
--
Regards,
Ashley Stahl
USCertifiedLetters, Inc.
ast...@uscertifiedletters.com
"John E. Christ III" <joh...@REMOVETHIStampabay.rr.com> wrote in message
news:3ec29b90$1...@news.softvelocity.com...
SW_HIDE EQUATE(0)
SEE_MASK_NOCLOSEPROCESS EQUATE(00000040h)
I thought I would put I# = WaitForSingleObject(sei.hProcess, -1) and I# =
CloseHandle(sei.hProcess) in a loop and wait for the return values like this
loop until I#
if WaitForSingleObject(sei.hProcess, -1) then ! closed
I# = CloseHandle(sei.hProcess)
else
I# = 0
end
end
I probably am mis-undertstanding the purpose.
--
Regards,
Ashley Stahl
USCertifiedLetters, Inc.
ast...@uscertifiedletters.com
"John E. Christ III" <joh...@REMOVETHIStampabay.rr.com> wrote in message
news:3ec2...@news.softvelocity.com...
This waits for the process (whose handle is sei.hProcess) to terminate.
> !this returns -1 everytime even when program was shut down
That indicates the wait failed. Maybe IE won't allow a wait?
John
--
Regards,
Ashley Stahl
USCertifiedLetters, Inc.
ast...@uscertifiedletters.com
"John E. Christ III" <joh...@REMOVETHIStampabay.rr.com> wrote in message
news:3ec3...@news.softvelocity.com...
Try this:
SW_SHOW EQUATE(5)
FileAction = 'open'
FileName = 'iexplore.exe'
Parameters = 'www.cnn.com'
DefaultDirectory = ''
CLEAR(sei)
sei.cbSize = SIZE(sei)
sei.fMask = SEE_MASK_NOCLOSEPROCESS
sei.hwnd = Window{PROP:Handle}
sei.lpVerb = ADDRESS(FileAction)
sei.lpFile = ADDRESS(FileName)
sei.lpParameters = ADDRESS(Parameters)
sei.lpDirectory = ADDRESS(DefaultDirectory)
sei.nShow = SW_SHOW
IF ShellExecuteEx(sei)
I# = WaitForSingleObject(sei.hProcess, -1);
I# = CloseHandle(sei.hProcess);
END
MESSAGE('IE Terminated.')
John