Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / [BlueGui] How to notice if alt key is pressed

Author
Message
Juso
21
Years of Service
User Offline
Joined: 23rd Sep 2002
Location: Finland
Posted: 28th Aug 2007 13:40
How to notice alt key is pressed in BlueGui?

With EventType()=keydown EventData() returns '16' when shift is pressed and '17' when ctrl is pressed but nothing when alt is pressed !

Nor does EventDataEx() return anything with alt key
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 8th Sep 2007 20:54
If you don't find a way, try DBPro's own commands.

keystate(56) returns the alt keystate.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Juso
21
Years of Service
User Offline
Joined: 23rd Sep 2002
Location: Finland
Posted: 9th Sep 2007 18:49
No way... if BG gadgets are not in main (DBPro) window (they are in separate window created by BG), you cant recognize any keystates or scancodes. Control of keyboard pressings is totally in BG window.
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 10th Sep 2007 21:02
That's true. (I didn't know because you didn't say so in your first post )

I am afraid that I don't know any way to make the ALT key work in separate windows.
However, if you plan on using ALT + <any character you want>, you might try hotkeys.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.

Login to post a reply

Server time is: 2024-05-18 06:50:46
Your offset time is: 2024-05-18 06:50:46