Why does this program stop responding after CtrlAltDel ?
Posted: Sun Mar 01, 2020 5:51 pm
Hi
Why does this program stop responding when CtrlAltDel used to start Task Manager?
Is there a way to make the program continue to run after CtrlAltDel?
Using Windows10 Home v1909 and PB5.71x64
Why does this program stop responding when CtrlAltDel used to start Task Manager?
Is there a way to make the program continue to run after CtrlAltDel?
Using Windows10 Home v1909 and PB5.71x64
Code: Select all
If InitSprite() = 0 Or InitKeyboard() = 0
MessageRequester("Error", "Sprite system can't be initialized", 0)
End
EndIf
If OpenWindow(0, 0, 0, 800, 600, "", #PB_Window_BorderLess | #PB_Window_ScreenCentered) = 0
MessageRequester("Error", "Can't open main window")
End
EndIf
If OpenWindowedScreen(WindowID(0), 100, 100, 600, 400, 0, 0, 0) = 0
MessageRequester("Error", "Can't open main windowed screen")
End
EndIf
SetWindowColor(0, RGB(0,0,127))
TextGadget(0, 100, 10, 600, 80, "")
CreateSprite(0, 50, 50, #PB_Sprite_AlphaBlending)
StartDrawing(SpriteOutput(0))
DrawingMode(#PB_2DDrawing_AllChannels)
Box(0,0,50, 50, RGBA(0,0,255,0))
Circle(25, 25, 25, RGBA(255,255,255,255))
StopDrawing()
x = 0
move = 10
Repeat
FlipBuffers()
ClearScreen(RGB(0,0,255))
DisplaySprite(0, x, x)
SetGadgetText(0, Str(x))
x = x + move
If x < 10
move = 5
EndIf
If x > 340
move = -15
EndIf
ExamineKeyboard()
Until KeyboardPushed(#PB_Key_Escape)
End