Autohotkey with having 2 keybinds to stop/reset the script
up vote
0
down vote
favorite
#NoEnv
SendMode Input
~x::
if (GetKeyState("x", "T")) {
Send {RButton down}
sleep 100
Send {lshift down}
Sleep 100
Send {Ctrl down}
sleep 100
Send, {lshift up}
sleep 100
} else {
Sleep, 100
Send, {RButton up}
Send, {Ctrl up}
}
return
How do I make it after the script is enabled with "x",
if I press RButton on my own then the script gets disabled and I don't have to press "x" keybind again to disable it
Basically I want to add another hotkey to stop the script so if I press "x" again it starts from the beginning and I don't have to do the "else" part also
autohotkey
New contributor
add a comment |
up vote
0
down vote
favorite
#NoEnv
SendMode Input
~x::
if (GetKeyState("x", "T")) {
Send {RButton down}
sleep 100
Send {lshift down}
Sleep 100
Send {Ctrl down}
sleep 100
Send, {lshift up}
sleep 100
} else {
Sleep, 100
Send, {RButton up}
Send, {Ctrl up}
}
return
How do I make it after the script is enabled with "x",
if I press RButton on my own then the script gets disabled and I don't have to press "x" keybind again to disable it
Basically I want to add another hotkey to stop the script so if I press "x" again it starts from the beginning and I don't have to do the "else" part also
autohotkey
New contributor
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
#NoEnv
SendMode Input
~x::
if (GetKeyState("x", "T")) {
Send {RButton down}
sleep 100
Send {lshift down}
Sleep 100
Send {Ctrl down}
sleep 100
Send, {lshift up}
sleep 100
} else {
Sleep, 100
Send, {RButton up}
Send, {Ctrl up}
}
return
How do I make it after the script is enabled with "x",
if I press RButton on my own then the script gets disabled and I don't have to press "x" keybind again to disable it
Basically I want to add another hotkey to stop the script so if I press "x" again it starts from the beginning and I don't have to do the "else" part also
autohotkey
New contributor
#NoEnv
SendMode Input
~x::
if (GetKeyState("x", "T")) {
Send {RButton down}
sleep 100
Send {lshift down}
Sleep 100
Send {Ctrl down}
sleep 100
Send, {lshift up}
sleep 100
} else {
Sleep, 100
Send, {RButton up}
Send, {Ctrl up}
}
return
How do I make it after the script is enabled with "x",
if I press RButton on my own then the script gets disabled and I don't have to press "x" keybind again to disable it
Basically I want to add another hotkey to stop the script so if I press "x" again it starts from the beginning and I don't have to do the "else" part also
autohotkey
autohotkey
New contributor
New contributor
New contributor
asked Nov 17 at 8:55
Yes man
1
1
New contributor
New contributor
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Yes man is a new contributor. Be nice, and check out our Code of Conduct.
Yes man is a new contributor. Be nice, and check out our Code of Conduct.
Yes man is a new contributor. Be nice, and check out our Code of Conduct.
Yes man is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53349691%2fautohotkey-with-having-2-keybinds-to-stop-reset-the-script%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown