IBM used a hard coded Program Files directory

Discuss various technical topics not related to Mozilla.
Post Reply
User avatar
netdragon
Posts: 5475
Joined: February 1st, 2003, 5:30 pm
Location: Atlanta, GA

IBM used a hard coded Program Files directory

Post by netdragon »

Now that I moved my "Program Files" directory, I can see what idiots use hard-coded "Program Files" directories. IBM's modem driver did. I swear... Driver developers for hardware have to be the most incompetant programmers in the whole world. They could be replaced with 12 year old script kiddies who'd do a better job.
Free yourself from the illusion. The heart of a dragon is pure love, honor and truth. The dragon's power is meant to protect the weak and uphold love and honor.
old momokatte
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by old momokatte »

Not as bad as HP's multimedia keyboard drivers, which insist on a folder in the root directory. I decided to just forget all those nifty buttons and delete the software. :evil:

Hmm....I wonder if they still send events, though...and if I could use them for custom Firebird bindings... :-k

UPDATE: sweet, they do! Maybe I'll bind one to "Open New Tab".
scragz
Posts: 2914
Joined: February 8th, 2003, 2:38 am
Location: San Diego, US
Contact:

Post by scragz »

How did you find what events they were sending? I have an MS Office keyboard with a bunch of buttons that don’t do anything w/out the drivers.
old momokatte
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by old momokatte »

scragz wrote:How did you find what events they were sending? I have an MS Office keyboard with a bunch of buttons that don’t do anything w/out the drivers.

I haven't checked for the event details yet, I just bound one to "Page Down" in my SuperScroll extension to see if it would work -- and it did.

Unfortunately, though, it turns out all of the extra buttons on my keyboard send the same keycode. I'll have to figure out what's unique about each one, since the keyboard software obviously needs something to tell them apart.

UPDATE: All of the multimedia buttons on my keyboard send an event.keyCode of 255, with no discernible difference in Firebird. It appears that the unique identifier is some nonstandard event attribute that isn't captured by the browser. :(
User avatar
nilson
Posts: 4100
Joined: February 15th, 2003, 11:55 pm
Location: Tuscaloosa, Alabama
Contact:

Post by nilson »

How do you change where Program Files is at?
User avatar
GNU/Ben
Posts: 1557
Joined: November 5th, 2002, 1:45 pm
Location: 127.0.0.1
Contact:

Post by GNU/Ben »

Cut 'n Paste?
"When you say 'I wrote a program that crashed Windows', people just stare at you blankly and say 'Hey, I got those with the system, *for free*'."
-- Linus Torvalds
Gentoo: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.5) Gecko/20041210 Firefox/1.0
User avatar
nilson
Posts: 4100
Joined: February 15th, 2003, 11:55 pm
Location: Tuscaloosa, Alabama
Contact:

Post by nilson »

You can't do it like My Documents?
Lost User 8002
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Lost User 8002 »

scragz wrote:How did you find what events they were sending? I have an MS Office keyboard with a bunch of buttons that don’t do anything w/out the drivers.


I have the MS Natural Pro Keyboard. All the little buttons work and I'm glad...
User avatar
daihard
Folder@Home
Posts: 16633
Joined: November 17th, 2002, 6:27 pm
Location: Lynnwood, WA
Contact:

Post by daihard »

nilson wrote:You can't do it like My Documents?

I doubt you can. "My Documents" is a special folder shortcut that by default points to <code>C:\Documents and Settings\<username>\</code>. One of the first things I do when I install 2000/XP is change it so "My Documents" points to <code>D:\usr\dtoyama</code>. I can't stand those "long" file and directory names.
Kubuntu 8.04 (kernel 2.6.24-25-generic) / KDE 3.5.10
CentOS 4.8 (kernel 2.6.9-78.0.22.ELsmp) / KDE 3.5.10
Mac OS X 10.6.1 (Snow Leopard) / iPhone 3GS (32GB black)
User avatar
nilson
Posts: 4100
Joined: February 15th, 2003, 11:55 pm
Location: Tuscaloosa, Alabama
Contact:

Post by nilson »

Yea, my Documents is D:\My Documents.
Post Reply