Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: Help me with a script/Prank please

  1. #1
    Join Date
    Oct 2007
    Location
    Cincinnati, Ohio
    Beans
    Hidden!
    Distro
    Kubuntu 12.04 Precise Pangolin

    Help me with a script/Prank please

    I have an Idea, a little prank I want to play on the hubby, but I don't know jack about scripting. I want to set it up so when he clicks his guild wars Icon it will pop up with some kind of April Fools message instead of running the game, can anybody help me?

    Thanks,
    Angel

    [Edit]
    Guess I should have said it's on His Ubuntu I want to do this
    [/Edit]
    Last edited by Ms_Angel_D; April 1st, 2009 at 04:29 PM.

    OS: Kubuntu 12.04 LTS|| CPU: AMD Athlon 64x2 || RAM: 3GB DDR2(PC-6400) || Display: NVIDIA GeForce 9400 GT 1024mb

  2. #2
    Join Date
    Mar 2007
    Location
    $HOME (Washington State)
    Beans
    4,590

    Re: Help me with a script/Prank please

    Is it on Windows or Linux?
    See my themes here! | Dont preach Linux, mention it | Make GNOME Themes
    I'm no longer on here. If you want to talk to me, go to noost.org.
    My DeviantArt | Linux user #461096 | Ubuntu user #15753

  3. #3
    Join Date
    Oct 2007
    Location
    Cincinnati, Ohio
    Beans
    Hidden!
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Help me with a script/Prank please

    Ohh Sorry It's on Ubuntu

    OS: Kubuntu 12.04 LTS|| CPU: AMD Athlon 64x2 || RAM: 3GB DDR2(PC-6400) || Display: NVIDIA GeForce 9400 GT 1024mb

  4. #4
    Join Date
    Mar 2007
    Location
    $HOME (Washington State)
    Beans
    4,590

    Re: Help me with a script/Prank please

    Install Zenity using Synaptic. Then edit the command (make sure to save it!!!) in the menu by right clicking on the menu and clicking edit. For the command, use this:

    zenity --warning --text='Insert text here.'
    See my themes here! | Dont preach Linux, mention it | Make GNOME Themes
    I'm no longer on here. If you want to talk to me, go to noost.org.
    My DeviantArt | Linux user #461096 | Ubuntu user #15753

  5. #5
    Join Date
    Oct 2007
    Location
    Cincinnati, Ohio
    Beans
    Hidden!
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Help me with a script/Prank please

    Sweet thanks

    OS: Kubuntu 12.04 LTS|| CPU: AMD Athlon 64x2 || RAM: 3GB DDR2(PC-6400) || Display: NVIDIA GeForce 9400 GT 1024mb

  6. #6
    Join Date
    May 2007
    Location
    Bolton, UK
    Beans
    668
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: Help me with a script/Prank please

    Zenity should be installed by default.

    Code:
    #!/usr/bin/env bash
    
    zenity --error --text="Tough luck, game is deleted";
    sleep 3
    zenity --error --text="April fool's!"
    This one will wait three seconds before displaying the April Fool's message.

  7. #7
    Join Date
    Oct 2007
    Location
    Cincinnati, Ohio
    Beans
    Hidden!
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Help me with a script/Prank please

    Quote Originally Posted by steeleyuk View Post
    Zenity should be installed by default.

    Code:
    #!/usr/bin/env bash
    
    zenity --error --text="Tough luck, game is deleted";
    sleep 3
    zenity --error --text="April fool's!"
    This one will wait three seconds before displaying the April Fool's message.
    lol that's even better

    OS: Kubuntu 12.04 LTS|| CPU: AMD Athlon 64x2 || RAM: 3GB DDR2(PC-6400) || Display: NVIDIA GeForce 9400 GT 1024mb

  8. #8
    Join Date
    Apr 2007
    Location
    United Kingdom
    Beans
    20
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Help me with a script/Prank please

    Naughty you!

  9. #9
    Join Date
    Aug 2006
    Location
    US
    Beans
    1,681

    Re: Help me with a script/Prank please

    Here's a suggestion. Make a file called slooflirpa.sh and put this in it:

    Code:
    
    #!/bin/bash
    zenity --error \
              --text="Critical Error: 0 Guild Wars PK3 files found!"
    Right click on the file, go to properties, permissions, and choose "allow execution as a program" or whatever it says in your file manager.

    Put what ever you want in the quotes. Now, if the Guild Wars Icon is on the desktop, make a copy of it, and move one of the copies somewhere else. Now open it with a text editor and edit this line

    Code:
    Exec=/path/to/slooflirpa.sh
    except obviously adding the actual path to the file.

    If the icon is in the Gnome menu, go to System > Preferences > Main menu, find the icon, right click on it, choose properties, and change the command to the path to the slooflirpa.sh file.

    If the icon is on the gnome panel, just right click on it, choose properties, and do as above.

    If he's using KDE, I can't help you

  10. #10
    Join Date
    Oct 2007
    Location
    Cincinnati, Ohio
    Beans
    Hidden!
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Help me with a script/Prank please

    Quote Originally Posted by woppy71 View Post
    Naughty you!
    lol


    Quick question how do I make the shell script run without asking me if I want to run in terminal, display or run?

    OS: Kubuntu 12.04 LTS|| CPU: AMD Athlon 64x2 || RAM: 3GB DDR2(PC-6400) || Display: NVIDIA GeForce 9400 GT 1024mb

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

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