Got absolutely nothing to do?

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Got absolutely nothing to do?

Post 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
Last edited by netmaestro on Fri Jun 09, 2006 5:07 pm, edited 1 time in total.
BERESHEIT
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

hehe.

The debug output window looks nifty.
Dare2 cut down to size
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post 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.
BERESHEIT
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

:D

Ack. I just held my breath and my system hung!
Dare2 cut down to size
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

This is the best program ever!!!!!
Thank you so much for sharing the source!!!! :D
I like logic, hence I dislike humans but love computers.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

You b*stard, this just blew my computer's head gasket and sent my dog into shock!

:D
I may look like a mule, but I'm not a complete ass.
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

hahah, i think the real question is how bored are YOU?
Post Reply