Page 1 of 1

Posted: Mon Feb 17, 2003 3:09 pm
by BackupUser
Restored from previous forum. Originally posted by WolfgangS.

Hi !
the EventID of AddKeyboardShortcut is a 16 bit Value. If this is correct then there should be a information about this in the help file.

I wastet an hour to figure this out as i tried to catch the right Event with EventID "1234567"

MFG
:)WolfgangS




;Beep´s if the Window is active and you press
hndMWindow=OpenWindow(0,200,200,640,400,#PB_Window_SystemMenu,"Micro Client")
AddKeyboardShortcut(0,#PB_Shortcut_Return,1234567)

Repeat
Event=WaitWindowEvent()
If Event=#PB_Event_Menu
sepp=EventMenuID()
If sepp=54919 ; should work only with 12324567?
beep_(1000,1000)
EndIf
EndIf

Until Event=#PB_EventCloseWindow