+ Post New Thread
Results 1 to 5 of 5
General Chat Thread, Guide to bad scripting - By ME !! in General; Feeling VERY VERY lazy today - it was noted that the Open Office startup wizard was annoying some staff so ...
  1. #1

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,248
    Thank Post
    1,059
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740

    Guide to bad scripting - By ME !!

    Feeling VERY VERY lazy today - it was noted that the Open Office startup wizard was annoying some staff so instead of copying over the relevant data into their profiles I knocked up this to launch at logon.........
    I think it's the worst script I've ever written, but like I said, I'm having one of those 'don't give a k days.......'

    Code:
    ; AutoIt Version:  	3.2.0.1
    ; Language:        	English
    ; Platform:        	WinXP
    ; Author:          	Matt 
    ; Script Function: 	soffice.bin process killer
    ; Version:			1.0
    ; Date:				Oct 2008
    
    ; One for WTF me thinks.......
    Opt("TrayIconHide", 1) 
    RunAsSet("administrator", @computername, "#####")
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    sleep(1000)
    ProcessClose('soffice.bin')
    RunAsSet()
    Exit

  2. #2

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65
    Getting paid by the line?

  3. Thanks to OutToLunch from:

    wlaidlaw (2nd October 2008)

  4. #3
    FatBoy's Avatar
    Join Date
    Oct 2007
    Location
    Kent, UK
    Posts
    251
    Thank Post
    55
    Thanked 20 Times in 16 Posts
    Rep Power
    18
    LOL I like it

  5. #4


    Join Date
    Jul 2007
    Location
    Rural heck
    Posts
    2,662
    Thank Post
    120
    Thanked 433 Times in 352 Posts
    Rep Power
    126
    Ctrl + V
    Ctrl + V
    Ctrl + V
    Ctrl + V
    Ctrl + V
    Ctrl + V
    Ctrl + V
    Ctrl + V
    Ctrl + V
    Ctrl + V
    Ctrl + V
    Ctrl + V
    Ctrl + V
    Ctrl + V

  6. #5

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,417
    Thank Post
    644
    Thanked 965 Times in 665 Posts
    Blog Entries
    2
    Rep Power
    328
    This week's WTF award goes to...



SHARE:
+ Post New Thread

Similar Threads

  1. os x scripting
    By mac_shinobi in forum Mac
    Replies: 5
    Last Post: 22nd August 2008, 10:30 AM
  2. Printer Scripting
    By dave.81 in forum How do you do....it?
    Replies: 2
    Last Post: 23rd April 2008, 01:50 PM
  3. New to scripting
    By FN-GM in forum Scripts
    Replies: 26
    Last Post: 10th August 2007, 11:31 PM
  4. Scripting IP configuration.
    By Dos_Box in forum Scripts
    Replies: 3
    Last Post: 2nd September 2005, 10:07 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •