Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Hardware - Troubleshooting and Discussion > Hardware Hacking > keyboard idea

keyboard idea
Thread Tools
Mac Enthusiast
Join Date: Sep 2000
Location: sLurrey
Status: Offline
Reply With Quote
Sep 8, 2000, 10:21 AM
 
This is kinda a modin' question...
I have painted and made my keyboard look awsome, but now with the new keyboard I am jelous about the eject disk and volume up/down keys. So my question is, is there apple scripts or something else that i can use to mimic those keys on my keyboard?????
w3rd..
surrey represent
     
Senior User
Join Date: Jun 2000
Status: Offline
Reply With Quote
Sep 8, 2000, 11:58 AM
 
You might want to look into Quickkeys 5.0. $100.00 street. I am unsure if a macro for what you are attempting is possible here, ( I have never used it) but many people swear by this program. www.cesoft.com.

------------------
Rocke "Why yes, I have brought our
network down." Woelk

Only the educated are free!-Epictetus
     
smic  (op)
Mac Enthusiast
Join Date: Sep 2000
Location: sLurrey
Status: Offline
Reply With Quote
Sep 8, 2000, 12:36 PM
 
nope
it doesnt seem to work for that
sucks
any other ideas??
i dont want to get a new keyboard
w3rd..
surrey represent
     
Mac Elite
Join Date: Mar 2000
Location: Cambridge
Status: Offline
Reply With Quote
Sep 8, 2000, 10:57 PM
 
Although you may not be able to replicate the media eject key, you should be able to duplicate the volume up/volume down keys. Write AppleScripts for different volume settings (as many as you want) and then make keyboard shortcuts for those scripts. You will have more than one key for volume, but it'll be as close as you can get without a new keyboard.
Per Square Mile | A blog about density
     
Ster
Guest
Status:
Reply With Quote
Sep 8, 2000, 11:27 PM
 
you could create a few small applescripts to do the sound up/down, mute, and put away all removable disks.
the following sound scripts require jon's commands osax, and the disk script requires akua sweets osax. both are highly useful for many different tasks.

sound up
Code:
set currentvolume to sound volume set sound volume to (currentvolume + 1) beep
sound down
Code:
set currentvolume to sound volume set sound volume to (currentvolume - 1) beep
mute/unmute
Code:
if (sound volume) > 0 then set sound volume to 0 else if (sound volume) = 0 then set sound volume to 1 beep end if
eject disks
Code:
set disklist to (list disks) repeat with thedisk in disklist if (vol removable) of (the volume info for thedisk) is true then expel thedisk end if end repeat
yeesh, formatting that code took a while :-)

anyways, after you make the scripts and save them as programs, you can bind them to the function-keys using the keyboard control panel

hope that helps,
ster
     
Senior User
Join Date: Jul 2000
Location: Istanbul
Status: Offline
Reply With Quote
Sep 9, 2000, 12:54 AM
 
Ya you can definitely get *all* of the functionality of the new Apple keyboards (sound up/down/mute and media eject) via AppleScript *as well as*...

Audio CD play, stop, rewind, fast-forward functionality by downloading the Scripting Addition "AudioCDgh" and creating some really basic Applescripts.

I have all of these bound to my older keyboard and they work great. And actually since the media eject is via AppleScript, it actually works better than the one provided in the newer models which seems not to work when inside of other programs (DVD player).

Speed
     
smic  (op)
Mac Enthusiast
Join Date: Sep 2000
Location: sLurrey
Status: Offline
Reply With Quote
Sep 10, 2000, 04:28 PM
 
Well thanks a bunch,
but one problem, I can't get the script for ejecting the disc to work, and silly me has never really used applescript.....so can someone help with it...please
Other then that it works awsome, now to work on my trackball
w3rd..
surrey represent
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 06:37 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2