is there a way to detect windows event if a windows is invisible?
if yes how?
ex.
if i open a window...
Code: Select all
Procedure.b OpenWindow_MainForm()
If OpenWindow(#MainForm, 326, 264, 566, 295, "PenDrive Immunizer", #PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_TitleBar|#PB_Window_ScreenCentered);
QueryCancelAutoPlay = RegisterWindowMessage_("QueryCancelAutoPlay")
SetWindowCallback(@WindowCallback())
AddSysTrayIcon(1, WindowID(#MainForm), LoadImage(0, "Gfx\pendrive.ico"))
ProcedureReturn #True
Else
ProcedureReturn #False
EndIf
EndProcedure
Code: Select all
If OpenWindow_MainForm()
Repeat
; >>> ATTENDI EVENTO DA UTENTE <<<
Event = WaitWindowEvent(100)
; >>>>>>>>>>>>>>>>>>>>>>>
; L'Evento generato dal SysTray ?
If Event = #PB_Event_SysTray
Select EventType()
Case #PB_EventType_RightClick ; Click destro sull'icona nella taskbar ?
DisplayPopupMenu(0, WindowID(#MainForm)) ;Visualizza il menu...
EndSelect
EndIf
; Controllo del menu sull'icona....
If Event = #PB_Event_Menu
Select EventMenu()
Case 1; Quit
Quit = 1
EndSelect
EndIf
Until Event = #PB_Event_CloseWindow Or Quit = 1
EndIf
but if the windows is invisible it not detect the usb pen drive...
how can i solve this problem?
thanks.
please help!.
thanks again.