Simple Anti Olly & ...
Posted: Thu May 28, 2009 6:51 am
Simple Anti Olly & ...
i New for "PureBasic" so maybe not correct "code" but ...
sorry for my BAD English
i New for "PureBasic" so maybe not correct "code" but ...

Code: Select all
Enumeration
#FormMain
EndEnumeration
Procedure Anti_Olly()
GetCursorPos_(@hCur)
hWin = WindowFromPoint_(PeekQ(@hCur))
class.s = Space(128)
GetClassName_(hWin, @class, 128)
If class = "ACPUASM" ;Or Other wClass
AnimateWindow_(hWin, 250, #AW_BLEND | #AW_HIDE)
EndIf
EndProcedure
Procedure FormMain()
OpenWindow(#FormMain, 343, 656, 311, 30, "Simple Anti Olly .... :)", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar)
TextGadget(0, 65, 5, 160, 20, "Fun Anti Olly .... :)")
Repeat
EventID = WaitWindowEvent()
timer = SetTimer_(WindowID(#FormMain), 1, 300, Anti_Olly())
EventGadget = EventGadget()
Until EventID = #PB_Event_CloseWindow
If timer
KillTimer_(WindowID(#FormMain), 1)
EndIf
EndProcedure
FormMain()
sorry for my BAD English
