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 

Very stupid question

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





PostPosted: Mon Jan 21, 2008 4:58 pm    Post subject: Very stupid question Reply with quote

I tried but seems like I just suck at this, but I just wanted a script which does the following:
a register as "Hold V, Press Right Shift and let go of V"
And the same thing with S and C, D and X, F and Z. All of them pressing right shift. How should I do it? Or can someone give me an example so I can do the rest? Thank you.
Back to top
Mustang



Joined: 17 May 2007
Posts: 370
Location: England

PostPosted: Mon Jan 21, 2008 5:04 pm    Post subject: Reply with quote

Does this not work as you require?
Code:
v & RShift::
{
    ToolTip, v & RShift
    Return
}
Back to top
View user's profile Send private message
Guest99
Guest





PostPosted: Mon Jan 21, 2008 5:21 pm    Post subject: Reply with quote

I am sorry, but a tooltip isn't exactly what I wish. I just wish that by pressing a, the computer registers that I pressed RShift while holding V.
Back to top
Mustang



Joined: 17 May 2007
Posts: 370
Location: England

PostPosted: Mon Jan 21, 2008 5:33 pm    Post subject: Reply with quote

Well that was just an example, but tbh you didn't explain your problem very well
Try this:
Code:
a::Send, {v Down}{RShift}{v Up}
Back to top
View user's profile Send private message
Guest99
Guest





PostPosted: Mon Jan 21, 2008 5:52 pm    Post subject: Reply with quote

Yeah, I guess I didn't. Sorry. Hm, that should work, but I think I'll need some sleep time in there, as my application doesn't accept very fast commands. Thanks.

Also, just as an extra, is it possible that when using that script, the "v Up" part of it doesn't happen automatically? As in, it only goes up when I also let off the hotkey? (and sorry, my English isn't my first language and think I'm not being very clear here)
Back to top
[VxE]



Joined: 07 Oct 2006
Posts: 1071

PostPosted: Mon Jan 21, 2008 7:50 pm    Post subject: Reply with quote

Code:
Keys = sdfxcv
Loop, Parse, Keys
   Hotkey, ~*%A_LoopField%, CheckRightShift, on
return

CheckRightShift:
SetTimer, ReleaseShift, -555
Send {blind}{RShift down}
return

ReleaseShift:
Send {blind}{RShift Up}
return
Does that code do anything for ya?
_________________
My Home Thread
More Common Answers: 1. It's in the FAQ 2. Ternary ( ? : ) guide 3. Post code with [code][/code] tags
Back to top
View user's profile Send private message
Mustang



Joined: 17 May 2007
Posts: 370
Location: England

PostPosted: Mon Jan 21, 2008 8:49 pm    Post subject: Reply with quote

Guest99 wrote:
Also, just as an extra, is it possible that when using that script, the "v Up" part of it doesn't happen automatically? As in, it only goes up when I also let off the hotkey? (and sorry, my English isn't my first language and think I'm not being very clear here)

Code:
a::
{
    Send, {v Down}
    Sleep, 500
    Send, {RShift}
    Return
}

a Up::
{
    Send, {v Up}
    Return
}

Or
Code:
a::
{
    Send, {v Down}
    Sleep, 500
    Send, {RShift Down}
    Return
}

a Up::
{
    Send, {RShift Up}
    Sleep, 500
    Send, {v Up}
    Return
}
Back to top
View user's profile Send private message
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