[Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank

Jussi Lahtinen jussi.lahtinen at ...626...
Tue Jan 31 13:45:45 CET 2012


But if it is possible to get download status from get_iplayer, then I think
you should do this with read event.
Otherwise the user doesn't know how much he have to wait.

Jussi



On Tue, Jan 31, 2012 at 14:41, Jussi Lahtinen <jussi.lahtinen at ...626...>wrote:

> Then you need to do your own wait loop, something like:
>
> Dim hProcess As Process
>
> hProcess = Shell sYourCommand
>
> Do
>   Wait 0.1
> Loop Until hProcess.State <> Process.Running
>
>
> Jussi
>
>
>
>
> On Tue, Jan 31, 2012 at 12:02, John Rose <john.aaron.rose at ...626...>wrote:
>
>> I was not trying to blame you earlier: I was trying to say that it was
>> my fault for not communicating my requirements accurately to you. I have
>> read the documentation on both the Shell & Exec commands a number of
>> times.
>>
>> Using the first form of the Shell command without 'To sOutput' results
>> in the get_iplayer command executing (i.e. the relevant video file is
>> downloaded from the BBC's iPlayer website) but it happens in the
>> background i.e. the Gambas app carries on with the following (i.e. after
>> Shell) commands: which is not what I want (i.e. I want it to wait till
>> all of the video file is downloaded). So the obvious solution to that is
>> to use the Wait parameter i.e. the command becomes
>> 'Shell sInstruction Wait'. However, this also leads to the blank FMain
>> window.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Keep Your Developer Skills Current with LearnDevNow!
>> The most comprehensive online learning library for Microsoft developers
>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>> Metro Style Apps, more. Free future releases when you subscribe now!
>> http://p.sf.net/sfu/learndevnow-d2d
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>



More information about the User mailing list