Author Topic: April One  (Read 2887 times)

0 Members and 1 Guest are viewing this topic.

ronjonp

  • Needs a day job
  • Posts: 7531
April One
« on: April 01, 2010, 11:11:26 AM »
How'd you torment your users?  :-D

Code: [Select]
(defun aprilfools (/ d)
  (setq d (rtos (fix (getvar 'cdate)) 2 0))
  (if (eq "0401" (strcat (substr d 5 2) (substr d 7 2)))
    (progn
      (defun teehee (reactor params / disp)
(setq disp (vla-get-display (vla-get-preferences (vlax-get-acad-object))))
(cond ((eq (car params) "EXPLODE") (vlax-put disp 'modelcrosshaircolor 0))
      ((eq (car params) "COPY") (vlax-put disp 'modelcrosshaircolor 255))
      ((eq (car params) "CIRCLE") (vlax-put disp 'modelcrosshaircolor 85))
      ((eq (car params) "ERASE")
       (vlax-put disp
'displaylayouttabs
(boole 8 0 (vlax-get disp 'displaylayouttabs))
       )
      )
      ((eq (car params) "MOVE") (vlax-put disp 'cursorsize 25))
      ((eq (car params) "PLOT")
       (vlax-put disp
'displayscrollbars
(boole 8 0 (vlax-get disp 'displayscrollbars))
       )
      )
      ((eq (car params) "MLEADER")
       (vlax-put disp
'displayscreenmenu
(boole 8 0 (vlax-get disp 'displayscreenmenu))
       )
      )
)
(princ)
      )
      (if (not *aprilfoolsreactor*)
(setq *aprilfoolsreactor*
       (vlr-editor-reactor
"TeeHeeHee"
'((:vlr-commandended . teehee))
       )
)
      )
    )
;;; Cleanup
;;; (vlr-remove-all :vlr-editor-reactor)
  )
)
(aprilfools)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: April One
« Reply #1 on: April 01, 2010, 12:49:27 PM »
LoL
As soon as I started reading this Coasters - Yakety Yak Lyrics popped in my head.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

KewlToyZ

  • Guest

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: April One
« Reply #3 on: April 01, 2010, 01:06:03 PM »
Stupid song is still stuck in my head!!!
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

ronjonp

  • Needs a day job
  • Posts: 7531
Re: April One
« Reply #4 on: April 01, 2010, 01:16:43 PM »
So not other pranksters out there? I'm setting up the bluescreen screensaver as we speak  8-)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: April One
« Reply #5 on: April 01, 2010, 01:25:52 PM »
So not other pranksters out there? I'm setting up the bluescreen screensaver as we speak  8-)

You're much more imaginative that I am. I just put this in the acaddoc.lsp file.

Code: [Select]
(or (eq "athompson" (getvar 'loginname)))
    (alert "Press OK to format C: drive"))
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

KewlToyZ

  • Guest
Re: April One
« Reply #6 on: April 01, 2010, 02:09:20 PM »
 :lmao:
Brutal and brilliant!

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: April One
« Reply #7 on: April 01, 2010, 02:10:35 PM »
Provided your users actually *read* the command line.   :-(

I *was* considering adding a speech module to the global error handler, with the computer saying "Please don't touch me like that." on every error.  But seeing that I can't even get 5 minutes without being interupted this morning...  :x
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

M-dub

  • Guest
Re: April One
« Reply #8 on: April 01, 2010, 02:13:15 PM »
For April Fools this year, I cut the wife's brake line.

(points and laughs) "Ha Ha, April Fools!  How's that neck brace treatin' ya?!"



I'm kidding, of course.

KewlToyZ

  • Guest
Re: April One
« Reply #9 on: April 01, 2010, 02:17:50 PM »

Lee Mac

  • Seagull
  • Posts: 12924
  • London, England
Re: April One
« Reply #10 on: April 01, 2010, 02:50:42 PM »
Nice one Ron   8-)

FYI
Code: [Select]
(boole 8 0 x)  =  (~ x)  :wink:

Greg B

  • Seagull
  • Posts: 12417
  • Tell me a Joke!
Re: April One
« Reply #11 on: April 01, 2010, 03:19:03 PM »
For April Fools this year, I cut the wife's brake line.

(points and laughs) "Ha Ha, April Fools!  How's that neck brace treatin' ya?!"



I'm kidding, of course.

Of course.

ronjonp

  • Needs a day job
  • Posts: 7531
Re: April One
« Reply #12 on: April 01, 2010, 03:21:52 PM »
Nice one Ron   8-)

FYI
Code: [Select]
(boole 8 0 x)  =  (~ x)  :wink:

 :-)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

GDF

  • Water Moccasin
  • Posts: 2081
Re: April One
« Reply #13 on: April 01, 2010, 04:08:39 PM »
;;;R.K. McSwain 98
(defun c:aprilfool  ()
  (setvar "cmdecho" 0)
  (command ".delay" 4000)
  (setvar "expert" 5)
  (command ".layer" "_off" "*" "")
  (setvar "expert" 0)
  (alert (strcat
           "              FATAL ERROR" "             \n"
           "             \n Heap error in module FF00:1235"
           "             \n CIS debug FF12:4510  FF12:1895"
           "             \n FF18:1346 in acad.exe."))
  (alert (strcat " Audit will now execute...."))
  (prompt "\rcommand: audit")
  (prompt "\nFix any errors detected? <N> y")
  (command ".delay" 100)
  (prompt "\n 112 Blocks audited")
  (command ".delay" 1500)
  (prompt "\nPass 1 1320     objects audited")
  (command ".delay" 1500)
  (prompt "\nPass 2 1320     objects audited")
  (command ".delay" 1500)
  (prompt "\nPass 3 9617     objects audited")
  (command ".delay" 150)
  (prompt "\nTotal errors found 1842 fixed 0")
  (princ))
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64

GDF

  • Water Moccasin
  • Posts: 2081
Re: April One
« Reply #14 on: April 01, 2010, 04:11:22 PM »
(defun ANNOY  ()
  (command ".limits" "-0.1,-0.1" "0,0" "" "on")
  (command ".undefine" "limits" "undefine" "redefine")
  (progn (setq num 10000)
         (while (> num 50) (dos_speaker num 1) (setq num (- num 250))))
  (progn (setq X 1000)
         (setq Y 500)
         (repeat 10 (dos_speaker Y 250) (dos_speaker X 200)))
  (progn (setq X 50)
         (setq Y 200)
         (repeat 10 (dos_speaker Y 250) (dos_speaker X 200)))
  (progn (setq num 50)
         (while (< num 10000) (dos_speaker num 1) (setq num (+ num 250))))
  (princ))
Why is there never enough time to do it right, but always enough time to do it over?
BricsCAD 2020x64 Windows 10x64