how to add more keys to function "GetLastKeyModifiers"

Questions, tips and tricks and techniques for scripting in Servoy

how to add more keys to function "GetLastKeyModifiers"

Postby Detox » Sun Jul 17, 2011 8:15 pm

hello all!

In servoy v 3.5.12, there are 4 predefined special keys in this function. How can I add more? to facilitate 'special access' for functions when I do not want to elevate a persons security level? This way, I can allow for limited rights on specific tasks.

I would just just use the 4 predifined keys, but would like to change "on demand" if I believe that key sequence has been misused. This would give me quite a few choices to prevent misaligned fingers from stumbling on the special function.

I am working on creating a password defined script that will replace this, but for now, to be able to impliment this would be great.

Thanks in advance for any suggestions
Detox
 
Posts: 73
Joined: Wed Dec 13, 2006 11:02 pm

Re: how to add more keys to function "GetLastKeyModifiers"

Postby Joas » Mon Jul 18, 2011 9:51 am

I don't think it is possible to use other keys than those four in servoy 3.5.

Please consider upgrading, in Servoy 5 and 6 you can trigger methods on almost any keypress using plugins.window.createShortcut().
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL


Return to Methods

Who is online

Users browsing this forum: No registered users and 6 guests

cron