Control of external program.

Everything else that doesn't fall into one of the other PB categories.
Henrik
Enthusiast
Enthusiast
Posts: 404
Joined: Sat Apr 26, 2003 5:08 pm
Location: Denmark

Post by Henrik »

@kwag i don't know the program, but maybe it's inititializeing a lot off stuff before it showes up.
The delay might be diffrent on other pc./ Ram -and harddiskspeed and stuff what ever
Insteed of using Delay 3000
Maybe a loop with
Result =ShowWindow_(hwnd,#SW_MINIMIZE)
If it fail's Result = 0 then delay it, and try again until Result <>0

Btw ..
Until hwnd <> 0
and
Until hwnd
is the same, " Until hwnd " means "Until hwnd is something"

Edit
hmm i didn't mean that the "Pb delay" is diffrent, but the time it takes for the program to show up..of course :wink:

Best regrads
Henrik
kwag
User
User
Posts: 35
Joined: Thu Jul 17, 2003 10:03 pm
Contact:

Post by kwag »

Henrik wrote:@kwag i don't know the program, but maybe it's inititializeing a lot off stuff before it showes up.
Yes indeed!, that's what seems to be happening.
The delay might be diffrent on other pc./ Ram -and harddiskspeed and stuff what ever
Insteed of using Delay 3000
Maybe a loop with
Result =ShowWindow_(hwnd,#SW_MINIMIZE)
If it fail's Result = 0 then delay it, and try again until Result <>0
Yes :!:
I will give that a try :)

Btw ..
Until hwnd <> 0
and
Until hwnd
is the same, " Until hwnd " means "Until hwnd is something"

Best regrads
Henrik
:oops: Yes, I guess I'm still draining new year's eve beer from my brain :lol:

Thanks,
-Karl
Post Reply