Sponsored Content
Operating Systems OS X (Apple) Script to Reprogramme Keyboard? Post 302336765 by georgeodowd on Wednesday 22nd of July 2009 07:14:24 PM
Old 07-22-2009
Script to Reprogramme Keyboard?

This might be sort of an oddball question, but enthusiastic Google searching hasn't led me in any promising directions, whether due to lack of knowledge on my part or the fact that no one is as mean-spirited.

So, let's say I knew this ridiculously awful person, who just happened to regularly leave out semi-colons in shared PHP code, thereby breaking a website that a number of people are working on during the day. Let's say that when various entities point out the issue, this person spends at least 15 minutes trying to 'debug' the problem, despite being given the line number of the error by numerous shouting voices around the office (we just take a lot of coffee breaks now).

Say one of these frustrated workers came up with an idea one day to reprogramme this guy's keyboard so every 20th key he hit was a semi-colon, or else, to just make every key always be a semi-colon. Is there a way, either through the terminal or via a script that could be dumped somewhere, to do this?

The offender has a mac running OSX, and regularly leaves it logged in and unattended. However, he's never gone for very long, so whatever needed to be done would have to be done quickly.

Believe me, if I listed the amount of annoying things this guy did, you'd understand that he really has this coming. An entire office of PHP developers would thank you for your help, not only for the bellyache they would get laughing, but also for the distraction from the code base this would provide! Smilie
 

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How can I map Unix keyboard for PC keyboard

A Solaris AXI 440 machine with Solaris 8 version. I have PC users who use an emulation to login to the Solaris server. How can I change the keyboard mapping of the Sun keyboard to fit to the PC keyboard ? Any comment will be appreciated. Thanks (1 Reply)
Discussion started by: simhab
1 Replies

2. UNIX for Dummies Questions & Answers

Help how replace stardard keyboard inputs by arguments at run time of a script

Hello Everybody, Please help. I was trying to automate the use of a third-party given shell script. The script is written to be used at run-time to collect a few variables to be provided by the user through key board, in the fashion as below: ./runcommand please provide a file name to... (6 Replies)
Discussion started by: Dingrong
6 Replies

3. Shell Programming and Scripting

Reading from Keyboard - Shell Script

How do i read from kb using shell script but i need to read it from same line. Script :- echo "Please Enter Your Choice " read CHOICE But it goes to next line i need it to read it next to Choice and not new line. (4 Replies)
Discussion started by: dinjo_jo
4 Replies

4. Shell Programming and Scripting

Problem with script invoked from a keyboard shortcut

-EDIT- I have solved my problem below by using a different program. Instead of xsel I am using xclip which basically does the same thing and works fine from a script invoked by a global hotkey. -END EDIT- Hi, I've written a simple script to copy my email address into both the... (0 Replies)
Discussion started by: gencon
0 Replies

5. UNIX for Dummies Questions & Answers

Problem getting vertical bar with British keyboard layout on US (physical) keyboard

Hi, I've got a bit of a ridiculous problem and wasn't sure where to post it. I need to use the vertical bar for piping in Bash but, as per the title, am using a UK layout on a US (physical) keyboard which doesn't have a key for it in the place I'd expect. I've tried using xbindkeys and Unicode... (7 Replies)
Discussion started by: crunchgargoyle
7 Replies

6. UNIX for Dummies Questions & Answers

How to send keyboard inputs toa UNIX command executed from a shell script?

I have a unix command that prompts for 'y'. How do I run this from my shell script? (4 Replies)
Discussion started by: Sree10
4 Replies

7. Windows & DOS: Issues & Discussions

Method to run a shell script using shortcut key in keyboard with out logging to putty

Dear All, I want to run a shell script with out logging to putty but configuring it to a keyboard short cut it windows PC. Can this be done? I want this to rename a log in a specified folder in a system Thanks (8 Replies)
Discussion started by: Chi_SL
8 Replies
Net::Google::Code::Issue::Search(3pm)			User Contributed Perl Documentation		     Net::Google::Code::Issue::Search(3pm)

NAME
Net::Google::Code::Issue::Search - Issues Search API DESCRIPTION
INTERFACE
search ( can => 'all', q = 'foo', sort => '-modified', limit => 1000, load_after_search => 1 ) do the search, the results is set to $self->results, which is an arrayref with Net::Google::Code::Issue as element. If a "sort" argument is specified, that will be passed to google code's issue list. Generally, these are composed of "+" or "-" followed by a column name. limit => Num is to limit the results number. load_after_search => Bool is to state if we should call $issue->load after search return true if search is successful, false on the other hand. updated_after( date_string || DateTime object ) find all the issues that have been updated or created after the date. the issues are all loaded. return true if success, false on the other hand project results this should be called after a successful search. returns issues as a arrayref. AUTHOR
sunnavy "<sunnavy@bestpractical.com>" LICENCE AND COPYRIGHT
Copyright 2008-2010 Best Practical Solutions. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2010-01-29 Net::Google::Code::Issue::Search(3pm)
All times are GMT -4. The time now is 05:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy