how about no dude, i'm actually making an aimer for my friend for a FPS game, and you know very well I stopped that shinanigan, heres the source:
Code: Select all
#wMem=0
Global Mem.l
Mem = AllocateMemory(1024)
Procedure.l DesktopOutput()
PokeL(Mem, 1)
ProcedureReturn Mem
EndProcedure
Maus.Point
ExamineDesktops()
tx.l = DesktopWidth(0) / 2
ty.l = DesktopHeight(0) / 2
go.l = 0
ra.l = 5
colr.l = 255
colb.l = 0
colg.l = 0
OpenWindow(0,10,10,225,120,0,"Aimer")
CreateGadgetList(WindowID(0))
Frame3DGadget(1, 10, 10, 100, 100, "Preview",#PB_Frame3D_Double)
TextGadget(2,145,10,100,12,"Aimer Size")
TrackBarGadget(3, 120, 23, 100, 16, 1, 20) : SetGadgetState(3,10)
ButtonGadget(4,120,70,100,20,"Start")
ButtonGadget(5,120,90,100,20,"Exit")
ButtonGadget(6,120,50,100,20,"Color")
Repeat
If go.l = 0
StartDrawing(WindowOutput())
Circle(60,60,ra.l,RGB(colr.l,colg.l,colb.l))
StopDrawing()
EndIf
If go.l = 1
ValidateRect_(WindowID(0), 0)
StartDrawing(DesktopOutput())
Circle(tx.l,ty.l,ra.l,RGB(colr.l,colg.l,colb.l))
StopDrawing()
InvalidateRect_(WindowID(0), 0, 0)
EndIf
Select WaitWindowEvent()
Case #PB_EventCloseWindow : InvalidateRect_(WindowID(0), 0, 0) : End
Case #PB_EventGadget
Select EventGadgetID()
Case 3
If go.l = 0
ra.l = GetGadgetState(3)
InvalidateRect_(WindowID(0), 0, 0)
EndIf
Case 5
End
Case 4
go.l = 1
Case 6
Color = ColorRequester()
colr.l = Red(Color)
colb.l = Blue(Color)
colg.l = Green(Color)
InvalidateRect_(WindowID(0), 0, 1)
EndSelect
EndSelect
ForEver
so ha, stick that up your ass