AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[remap key] "CTRL+SHIFT+P" to "P" ONLY

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
VVS
Guest





PostPosted: Sat Mar 15, 2008 4:42 am    Post subject: [remap key] "CTRL+SHIFT+P" to "P" ONLY Reply with quote

hi,
I have a remote controller, and the play button outputs ctrl+shift+P.

I want this play button action to be remapped to output only “P”. (not ctrl+shift)

I use the following script line:
^+VK50::Send, {VK50}

However, I cannot seem to remove the output of CTRL and SHIFT keys.

Is this possible?

thanks.
Back to top
ManaUser



Joined: 24 May 2007
Posts: 901

PostPosted: Sat Mar 15, 2008 6:48 am    Post subject: Reply with quote

This will probably do what you need:
Code:
^+p::Send p
Back to top
View user's profile Send private message
VVS
Guest





PostPosted: Sat Mar 15, 2008 4:25 pm    Post subject: still not working ... Reply with quote

hi ManaUser,

i tried your code:
^+p::Send p

but this does the same as what i had...it outputs ctrl+shift+p

for some reason, the ctrl+shift keys are not being recognized by autohotkey.

the remote controller is using the LEFT shift and LEFT ctrl...
if ^ and + is generic, how do i specify LEFT?

please any help is appreciated.
thanks.
Back to top
ManaUser



Joined: 24 May 2007
Posts: 901

PostPosted: Sat Mar 15, 2008 5:32 pm    Post subject: Re: still not working ... Reply with quote

You can specify left or right be prefixing < or > to ^ or +, but I don't think that will fix the problem. Try this, for diagnostic purposes:
Code:
^+p::MsgBox Hi!

If you see the message box, then you'll know it's at least being detected and can take it from there.
Back to top
View user's profile Send private message
Kellianjaxon



Joined: 05 Jan 2008
Posts: 39

PostPosted: Sat Mar 15, 2008 11:59 pm    Post subject: Reply with quote

Try this:
Code:
^+p:: Send, {Control up}{Shift up}p
Back to top
View user's profile Send private message
Lurker1457



Joined: 10 Mar 2008
Posts: 11

PostPosted: Sun Mar 16, 2008 12:03 am    Post subject: Reply with quote

maybe:
Code:
<^<+p::
Keywait, Ctrl
KeyWait, Shift
Send, p
SoundBeep, 522, 50 ; remove this if you ever hear it...
return
Back to top
View user's profile Send private message
VVS
Guest





PostPosted: Sun Mar 16, 2008 3:39 am    Post subject: suggestions not working... Reply with quote

hello gentlemen,

i have tried all of your suggestions, and the CTRL + SHIFT keys are always outputting.

i am able to change the letter p to another letter and output it, but CTRL+SHIFT are always there.

is there any other way of disabling CTRL + SHIFT keys?
can i remap just these keys to do nothing! ?

thanks again.
Back to top
VVS
Guest





PostPosted: Sun Mar 16, 2008 4:48 am    Post subject: found something that works Reply with quote

hi,

the following will output only P for me....thanks!

LShift::Return
LCtrl::Return
^+p::Send, p
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group