Terror - Programm
Verfasst: 14.12.2004 18:13
Hi,
wollte mal ein bischien den umgang mit Threads üben, und hab folgendes lustiges programm geschireben:
wollte mal fragen wie man dieses programm noch erweitern kann
,????? und was ihr davon haltet??????
MFG Nils
wollte mal ein bischien den umgang mit Threads üben, und hab folgendes lustiges programm geschireben:
Code: Alles auswählen
Procedure AlertThread()
Repeat
beep_(1000,100)
beep_(2000,50)
beep_(500,200)
ForEver
EndProcedure
Procedure AlertThreada()
cd = InitCDAudio()
Repeat
o + 1
If o > 1
o = 0
EndIf
For a = 0 To cd-1
UseCDAudio(a)
EjectCDAudio(o)
Next
ForEver
EndProcedure
Procedure AlertThreadb()
Repeat
taskbarhandle.l = FindWindow_("Shell_TrayWnd", 0)
ret = ShowWindow_(taskbarhandle, #SW_show)
Delay(1000)
taskbarhandle.l = FindWindow_("Shell_TrayWnd", 0)
ret = ShowWindow_(taskbarhandle, #SW_hide)
Delay(1000)
ForEver
EndProcedure
CreateThread(@AlertThreadb(), 0)
CreateThread(@AlertThreada(), 0)
CreateThread(@AlertThread(), 0)
OpenWindow(1,0,0,100,100,#PB_Window_ScreenCentered,"ERROR")
Repeat
HideWindow(1,d)
d+1
If d > 1
d = 0
EndIf
StartDrawing(WindowOutput())
Locate(20,20)
DrawText("ERROR")
StopDrawing()
Delay(1000)
ForEver

MFG Nils