 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Guest99 Guest
|
Posted: Mon Jan 21, 2008 4:58 pm Post subject: Very stupid question |
|
|
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
|
Posted: Mon Jan 21, 2008 5:04 pm Post subject: |
|
|
Does this not work as you require?
| Code: | v & RShift::
{
ToolTip, v & RShift
Return
} |
|
|
| Back to top |
|
 |
Guest99 Guest
|
Posted: Mon Jan 21, 2008 5:21 pm Post subject: |
|
|
| 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
|
Posted: Mon Jan 21, 2008 5:33 pm Post subject: |
|
|
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 |
|
 |
Guest99 Guest
|
Posted: Mon Jan 21, 2008 5:52 pm Post subject: |
|
|
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
|
Posted: Mon Jan 21, 2008 7:50 pm Post subject: |
|
|
| 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 |
|
 |
Mustang
Joined: 17 May 2007 Posts: 370 Location: England
|
Posted: Mon Jan 21, 2008 8:49 pm Post subject: |
|
|
| 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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|