[Gambas-user] Finally Gambas got "SendKeys"

Benoit Minisini gambas at ...1...
Wed Dec 5 09:50:02 CET 2007


On mercredi 5 décembre 2007, Arief Bayu Purwanto wrote:
> Hi there,
> I try to send F12 to lauch yakuake, but it couldn't launch it.
>
> I try it with console:
>
> ?Desktop.SendKeys(Key.F12)
> No return value
> 4155
> ?Desktop.SendKeys("F12")
> No return value
> F12
> ?Desktop.SendKeys(F12)
> Unknown symbol
>
> Did I do something wrong?

Yes, a lot. Desktop.SendKeys is not a function to be used in the console.

> Or, SendKeys only able to send normal character, not function keys?
>

You must read the documentation of the function on the wiki first.

Anyway, try Desktop.SendKeys("[F12]").

-- 
Benoit Minisini




More information about the User mailing list