[Gambas-user] Desktop.Find

Benoît Minisini gambas at ...1...
Thu Aug 18 18:23:22 CEST 2011


> On 08/18/2011 11:44 AM, Benoît Minisini wrote:
> >> Hi folks! I need some help.
> >> 
> >> Gambas 2.23
> >> 
> >> Problem: Desktop.Find is not finding a window that is indeed appearing
> >> on the desktop. I personally can see it and it has the correct title,
> >> therefore it is indeed there, and hence the need for some assistance
> >> trying to figure out WHY Desktop.Find can't see what I see....er.... or
> >> something to that effect. Anyway....
> >> 
> >> Instantiating a VLC instance using SHELL with the following procedure
> >> (ignore the SUB's parameter list, I have the parameters to SHELL
> >> hard-coded for the moment and am passing in dummy values from the
> >> calling SUB)
> >> '*
> >> '* NOTE! mpProcessHandle is declared at the class level AS Process.
> >> '*
> >> PUBLIC SUB PlayVideo(pFileName AS String, pPlayerTitle AS String)
> >> 
> >>     DIM aHandle AS NEW Pointer[]
> >>     DIM iHandle AS Integer
> >>     
> >>     mpProcessHandle = SHELL "vlc --intf rc --video-title Camera0
> >> 
> >> ~/TestVideo.avi" FOR READ WRITE
> > 
> > You have to wait a little there (with SLEEP) because the vlc window will
> > not be visible immediately just after you run the process.
> > 
> > Regards,
> 
> Hi Benoit!
> 
> While I did not use SLEEP I did put a break point on the line that does
> the Desktop.Find, and allowed execution to proceed when  the window
> appeared. I'll try SLEEP in conjunction with the breakpoint just to
> test.  Will let you know.
> 

Then just send me a project that lets me reproduce the problem.

Regards,

-- 
Benoît Minisini




More information about the User mailing list