On jeudi 21 août 2008, Doriano Blengino wrote: > M0E Lnx ha scritto: > > Attn Beniot... Please help > > > > Can you explain how to use the WM_CLASS string to embed an application > > using the embedder object? > > I did not try this in gambas, but I read the docs. The Desktop.find() > method takes "regular expression" parameters, so if you search for a > window class, and you do not know the other strings, you should specify > them using a pattern: > > hPointer = Desktop.Find(".*", "Gpartedbin", ".*") > > I am not sure if empty strings ("") work, so you should try with ".*" > which matches any string. >
Empty strings mean everything. And the regular expressions are Gambas regular expressions, as the LIKE operator uses. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user