Page 1 of 1

Got absolutely nothing to do?

Posted: Fri Jun 09, 2006 4:47 pm
by netmaestro

Code: Select all

; netmaestro's mesmerizer (patent pending) 

Procedure addxes() 
  SetActiveGadget(0) 
  For i = 1 To 40 
    keybd_event_(#VK_X,0,0,0) 
    keybd_event_(#VK_X,0,#KEYEVENTF_KEYUP,0) 
    Debug GetGadgetItemText(0, 0, 0) 
    While WindowEvent():Wend 
    Delay(20) 
  Next 
EndProcedure 

Procedure takexes() 
  SetActiveGadget(0) 
  For i = 1 To 40 
    keybd_event_(#VK_BACK,0,0,0) 
    keybd_event_(#VK_BACK,0,#KEYEVENTF_KEYUP,0) 
    Debug GetGadgetItemText(0, 0, 0) 
    While WindowEvent():Wend 
    Delay(20) 
  Next 
EndProcedure 

OpenWindow(0, 0, 0, 220, 20, "You have to kill this with the debugger!", #PB_Window_ScreenCentered) 
CreateGadgetList(WindowID(0)) 
EditorGadget(0, 0, 0, 220, 20) 

Repeat 
  addxes() 
  takexes() 
ForEver

Posted: Fri Jun 09, 2006 4:50 pm
by Dare
hehe.

The debug output window looks nifty.

Posted: Fri Jun 09, 2006 4:55 pm
by netmaestro
There's actually a lot more to this than meets the eye. It has whole subsystems of subsystems that are monitoring your heartbeat and displaying the results! Every fifth iteration it is doing your breathing.

Posted: Fri Jun 09, 2006 4:59 pm
by Dare
:D

Ack. I just held my breath and my system hung!

Posted: Fri Jun 09, 2006 5:24 pm
by Joakim Christiansen
This is the best program ever!!!!!
Thank you so much for sharing the source!!!! :D

Posted: Fri Jun 09, 2006 6:29 pm
by srod
You b*stard, this just blew my computer's head gasket and sent my dog into shock!

:D

Posted: Fri Jun 09, 2006 7:18 pm
by dracflamloc
hahah, i think the real question is how bored are YOU?