AutoHotkey Community

It is currently May 27th, 2012, 1:15 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: June 22nd, 2008, 3:27 am 
Offline

Joined: June 22nd, 2008, 3:20 am
Posts: 21
is there a way to use the Fn modifier as a hotkey? im trying to make my numpad (on my laptop) work when i hold down Fn. However, when I went to "key history" in my scripts, it didnt recognize the Fn key. Is there a way to use it? (Like you can use the ctrl and alt keys).

On another note, when I use Winkey-R (normally Run) or Winkey-M (minimize all) as hotkeys, their old functions do not work, as expected. But when using Winkey-L (lock account), my defined action occurs just before the computer locks itself. Why?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 22nd, 2008, 4:35 am 
Offline

Joined: May 17th, 2007, 6:03 pm
Posts: 391
Location: Titan
Don't know for Fn.

Can you post your script regarding win+l?

I tried #l::MsgBox, The active window's class is "%class%".
and LWin & l::MsgBox, The active window's class is "%class%".
Both worked and it didn't lock the account (win XP SP2).
________
MONTANA DISPENSARY


Last edited by lilalurl.T32 on February 11th, 2011, 9:36 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 22nd, 2008, 2:35 pm 
Offline

Joined: June 22nd, 2008, 3:20 am
Posts: 21
its just
Code:
#l::Send hi


the program sends hi, but then locks the account.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 22nd, 2008, 8:50 pm 
Offline

Joined: May 17th, 2007, 6:03 pm
Posts: 391
Location: Titan
Sorry, it works for me (no account stuff) so can't really help.
Are you on XP? Vista?
To make sure, have you tried #l in its own script and without any other script running. If it works without account stuff, that could point to some interference in your main script.
________
Txr312M


Last edited by lilalurl.T32 on February 11th, 2011, 9:36 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 22nd, 2008, 11:46 pm 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3330
Location: Simi Valley, CA
It's possible that the laptop's keyboard is handling those keys/combos at a different level from where AHK can do anything about it. :? sry

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 23rd, 2008, 4:18 am 
Offline

Joined: June 18th, 2008, 8:33 pm
Posts: 20
What make/model of laptop? I have an IBM Thinkpad and I can detect the Fn key but I can't detect any other key while the Fn key is down. For example, I tried making Fn-F launch Firefox, but all it shows is SC163 (no F-down or F-up events in the middle).

That being said, it may be possible... you will probably have to use scancodes, but that's no big deal.

_________________
ttrickyy


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 23rd, 2008, 5:45 am 
It's not the laptop, it's Vista...

I don't know the answer but I'm familiar with the problem.

:evil: :x :cry:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 23rd, 2008, 5:35 pm 
Offline

Joined: June 22nd, 2008, 3:20 am
Posts: 21
well, when I push Fn+scrolllock (which normally would turn on numlock), the key history reports a different code for the result. (not the one for scroll lock). So does the computer recogize Fn-something as a completly different button? thats what it looks like.

I have an HP Pavilion dv6700 Notebook PC, running Vista.

What are scancodes? Im a bit of a newbie in this area...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 23rd, 2008, 8:08 pm 
Offline

Joined: June 18th, 2008, 8:33 pm
Posts: 20
haxor wrote:
well, when I push Fn+scrolllock (which normally would turn on numlock), the key history reports a different code for the result. (not the one for scroll lock). So does the computer recogize Fn-something as a completly different button? thats what it looks like.

I have an HP Pavilion dv6700 Notebook PC, running Vista.

What are scancodes? Im a bit of a newbie in this area...

Scancodes refer to the exact key on the keyboard, a key that might otherwise not have a name (for example, your FN key.) Gurus and mods, correct me if I'm wrong, that's what I always thought of it as.

You may be able to use your scancode as a modifier by using
Code:
SC163 & a::Msgbox, "FN-key and the letter a"

but I'm not sure if that will work.

_________________
ttrickyy


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Amandaville, BrandonHotkey, chaosad, Yahoo [Bot] and 25 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group