Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
2
Erster Beitrag:
vor 7 Jahren, 7 Monaten
Letzter Beitrag:
vor 7 Jahren, 7 Monaten
Beteiligte Autoren:
Ola

WD15 How to "KILL" a hot key?

Startbeitrag von Ola am 19.01.2011 20:06

Hi All

In my main menu I have a button which is connected to hot key "M" which launches the main program module of my app. Just plain M. Then I have a MEMO_TBL window which is called in each and all every window with a hot key combination Control-M. In main menu it launches the MEMO_TBL as it should, but when it is closed, the M program is launched automatically.

How can I keep the M program's window from opening after the MEMO_TBL is closed? How can I "kill" Control-M after it has been properly used?

I have tried
KeyPressed(VK_CONTROL,False)
KeyPressed(Asc("M"), False)
in MEMO_TBL's closing code, but in vain.

The M is defined in the M button's properties and Control-M is defined in each window in an event controlled local procedure. WD15, Win7-64bit.

best regards
Ola
http://www.pienoismalli.com

Antworten:

Okey,

Problem solved. It's simple. As soon as I had posted this question I realized that by removing the hot key setting from the button and putting both hot key calls to the event-controlled local procedure, then I can control conditionally the opening of the windows.

It sure helps to write the problem down and post it to the forum:-)

best regards
Ola
http://www.pienoismalli.com



von Ola - am 19.01.2011 20:44
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.