RunProgram command

Just starting out? Need help? Post your questions and find answers here.
Large
User
User
Posts: 56
Joined: Tue Apr 29, 2003 8:24 pm

RunProgram command

Post by Large »

If I use the code below in a case it launches IE twice, doe's anyone know why ?

Code: Select all

RunProgram("C:\Program Files\Internet Explorer\iexplore.exe")
I only want Internet Explorer to open once ! Not twice ! have I missed off any parameters.

Please help ! :roll:

Kind regards

Large
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: RunProgram command

Post by PB »

It only opens 1 x IE for me. I'd say there's a bug in your code elsewhere that
is calling that command twice for some unknown reason. Happy bug-hunting!
Large
User
User
Posts: 56
Joined: Tue Apr 29, 2003 8:24 pm

Post by Large »

Well I cured the problem, there was no bugs as such !

I added this after the runprogram command :

Code: Select all

delay (1000)
and that seemed to cure it, odd one that ! :?

Kind regards

Large
TheBeck
User
User
Posts: 39
Joined: Mon May 12, 2003 6:04 am
Location: the far west
Contact:

Post by TheBeck »

Sounds to me like a bug in your event handling routine. Try holding down the mouse button for more than a second. Does it still launch IE twice? Then again I could be way off...
Post Reply