RE:Useless Box Kit

Anything Really. Just keep it clean!

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
JRL
Automation Wizard
Posts: 3500
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

RE:Useless Box Kit

Post by JRL » Tue Nov 12, 2013 11:09 pm

The useless box kit video cracked me up.

Here's my contribution for a useless script in the same vein.

When you get tired of being defeated, press the "Esc" key

Code: Select all

OnEvent>Key_Down,VK27,0,Quit
Dialog>Dialog1
object Dialog1: TForm
  BorderIcons = []
  BorderStyle = bsSingle
  Caption = 'Click the button'
  ClientHeight = 200
  ClientWidth = 230
  object Panel1: TPanel
    Left = 64
    Top = 40
    Width = 101
    Height = 89
    BevelOuter = bvNone
    object MSButton1: tMSButton
      Left = 13
      Top = 27
      Width = 75
      Height = 25
      Caption = 'Click here'
    end
  end
end
EndDialog>Dialog1

AddDialogHandler>Dialog1,Panel1,OnMouseEnter,GetAway
AddDialogHandler>Dialog1,MSButton1,OnClick,GetAway

Show>Dialog1,

SRT>GetAway
GetCursorPos>CurX,CurY
  Random>5,res
  If>res=1
    Add>CurX,100
  Else
    If>res=2
      Sub>CurX,100
    Else
      If>res=3
        Add>CurY,100
      Else
        Sub>CurY,100
      EndIf
    EndIf
  EndIf
  MouseMove>CurX,CurY
END>GetAway

SRT>Quit
  Exit>0
END>Quit

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Nov 13, 2013 2:10 pm

:-)
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

User avatar
Meryl
Staff
Posts: 124
Joined: Wed Sep 19, 2012 1:53 pm
Location: Texas
Contact:

Post by Meryl » Mon Nov 18, 2013 2:50 pm

Hilarious! Marcus -- you brought back memories with the BASIC programming you included on that page. Of course, it was one of the first things I learned.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts