le probleme est que ca ne detecte que les appuis qui sont fait lorsque la fenetre cree a le focus, mais si une autre fenetre l'a, ca ne capte pas
un petit conseil?
merci


Code : Tout sélectionner
Enumeration
#Window_0
#Text_Enter
#Text_Space
#Text_Mail
#String_Enter
#String_Space
EndEnumeration
Procedure Open_Window_0()
If OpenWindow(#Window_0, 0, 60, 126, 59, "ENTER",#PB_Window_Tool |#PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar )
If CreateGadgetList(WindowID(#Window_0))
TextGadget(#Text_Enter, 80, 0, 30, 15, "ENTER")
TextGadget(#Text_Space, 80, 25, 30, 15, "SPACE")
TextGadget(#Text_Mail, 10, 40, 110, 20, "*******@gmail.com")
StringGadget(#String_Enter, 10, 0, 35, 15, "", #PB_String_ReadOnly | #PB_String_BorderLess)
StringGadget(#String_Space, 10, 25, 35, 15, "", #PB_String_ReadOnly | #PB_String_BorderLess)
EndIf
EndIf
EndProcedure
InitKeyboard()
InitSprite()
Open_Window_0()
OpenWindowedScreen(WindowID(#Window_0), 0, 0, 1, 1, 1, 0, 0)
StickyWindow(#Window_0,1)
Repeat
Event=WaitWindowEvent()
ExamineKeyboard()
If KeyboardPushed(#PB_Key_Return)
k+1
Debug "Return = "+Str(k)
EndIf
If KeyboardPushed(#PB_Key_Space)
l+1
Debug "Space = "+Str(l)
EndIf
Until Event = #PB_Event_CloseWindow
End