If
Code: Select all
MenuID.l = AddKeyboardShortcut(WindowID(), #PB_Shortcut_Return, #PB_Any)
Code: Select all
MenuID.l = AddKeyboardShortcut(WindowID(), #PB_Shortcut_Return, #PB_Any)
Code: Select all
AddKeyboardShortcut(#Window, Shortcut, EventID)
Code: Select all
MenuID.l = AddKeyboardShortcut(WindowID(), #PB_Shortcut_Return, #PB_Any)
Code: Select all
EnterHit=AddKeyboardShortcut(WindowID(),#PB_Shortcut_Enter,#PB_Any)
ev=WaitWindowEvent()
If ev=#PB_Event_Menu
If EventMenuID()=EnterHit
; We know the user hit Enter!
EndIf
EndIf
Maybe this might work without the need of an unused id for the return key; just check which window/gadget has the focus when the return key is pressed and you'll know in which priv chat you need to take action..Dummy wrote:I DID THAT! Or why do you think I post this in the FEATURE REQUEST forum?in other words, there is NO return code for calling it. Please read the manual.
Then please tell me another method how to obtain a FREE(=UNUSED) MenuID(NOT EventID) for the Shourtcut
-.- the shourtcut is sticked to a windowid => it will only occour if the return key is pressed in THAT windowPupil wrote:Maybe this might work without the need of an unused id for the return key; just check which window/gadget has the focus when the return key is pressed and you'll know in which priv chat you need to take action..Dummy wrote:I DID THAT! Or why do you think I post this in the FEATURE REQUEST forum?in other words, there is NO return code for calling it. Please read the manual.
Then please tell me another method how to obtain a FREE(=UNUSED) MenuID(NOT EventID) for the Shourtcut