Autohotkey script with combination of keystroke











up vote
0
down vote

favorite












Hi I tried doing the script but i don't know why its not executing?
Can you guys give some autohotkey tester so i can test and clearly see if its working or not.



    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
;#KeyHistory
;#InstallKeyHook
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

Numpad0::
Send, ^c
Sleep 300
Send, !{Tab}
Sleep 300
Send, ^v
Sleep 300
Send, {F9}
Sleep 300
Send, {Tab 4}
Sleep 300
Send, {ENTER}
Sleep 300
Send, {Tab 4}
Sleep 300
Send, {ENTER}
Sleep 300
Send, ^s
Sleep 300
Send, !{Tab}
Sleep 300
Send, {DOWN}
Sleep 300
return









share|improve this question
























  • have you attempted it yet? Look at the "Send" function in AHK. Try something, then update this question. We wont just write the code for you.
    – Zack Tarr
    Nov 15 at 20:00










  • See Sending Keystrokes in the tutorial.
    – user3419297
    Nov 15 at 20:07










  • Try adding Sleep (e.g to wait 0.3 sec. add Sleep 300) between the Send commands (Send works too fast). Instead of AltTab and (maybe after Send, {F9}) you can use WinWait, WinActivate and WinWaitActive before sending commands to the active window. To repeat a keystroke use e.g. Send, {TAB 4}.
    – user3419297
    Nov 16 at 11:51










  • @user3419297 iedited my code can you check it? i put alttab on that because im shifting from excel to other open application..
    – michael john peralta
    Nov 20 at 16:39










  • Without knowing details about what are you trying to do is difficult to say.
    – user3419297
    Nov 22 at 8:27















up vote
0
down vote

favorite












Hi I tried doing the script but i don't know why its not executing?
Can you guys give some autohotkey tester so i can test and clearly see if its working or not.



    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
;#KeyHistory
;#InstallKeyHook
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

Numpad0::
Send, ^c
Sleep 300
Send, !{Tab}
Sleep 300
Send, ^v
Sleep 300
Send, {F9}
Sleep 300
Send, {Tab 4}
Sleep 300
Send, {ENTER}
Sleep 300
Send, {Tab 4}
Sleep 300
Send, {ENTER}
Sleep 300
Send, ^s
Sleep 300
Send, !{Tab}
Sleep 300
Send, {DOWN}
Sleep 300
return









share|improve this question
























  • have you attempted it yet? Look at the "Send" function in AHK. Try something, then update this question. We wont just write the code for you.
    – Zack Tarr
    Nov 15 at 20:00










  • See Sending Keystrokes in the tutorial.
    – user3419297
    Nov 15 at 20:07










  • Try adding Sleep (e.g to wait 0.3 sec. add Sleep 300) between the Send commands (Send works too fast). Instead of AltTab and (maybe after Send, {F9}) you can use WinWait, WinActivate and WinWaitActive before sending commands to the active window. To repeat a keystroke use e.g. Send, {TAB 4}.
    – user3419297
    Nov 16 at 11:51










  • @user3419297 iedited my code can you check it? i put alttab on that because im shifting from excel to other open application..
    – michael john peralta
    Nov 20 at 16:39










  • Without knowing details about what are you trying to do is difficult to say.
    – user3419297
    Nov 22 at 8:27













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Hi I tried doing the script but i don't know why its not executing?
Can you guys give some autohotkey tester so i can test and clearly see if its working or not.



    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
;#KeyHistory
;#InstallKeyHook
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

Numpad0::
Send, ^c
Sleep 300
Send, !{Tab}
Sleep 300
Send, ^v
Sleep 300
Send, {F9}
Sleep 300
Send, {Tab 4}
Sleep 300
Send, {ENTER}
Sleep 300
Send, {Tab 4}
Sleep 300
Send, {ENTER}
Sleep 300
Send, ^s
Sleep 300
Send, !{Tab}
Sleep 300
Send, {DOWN}
Sleep 300
return









share|improve this question















Hi I tried doing the script but i don't know why its not executing?
Can you guys give some autohotkey tester so i can test and clearly see if its working or not.



    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
;#KeyHistory
;#InstallKeyHook
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

Numpad0::
Send, ^c
Sleep 300
Send, !{Tab}
Sleep 300
Send, ^v
Sleep 300
Send, {F9}
Sleep 300
Send, {Tab 4}
Sleep 300
Send, {ENTER}
Sleep 300
Send, {Tab 4}
Sleep 300
Send, {ENTER}
Sleep 300
Send, ^s
Sleep 300
Send, !{Tab}
Sleep 300
Send, {DOWN}
Sleep 300
return






autohotkey






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 at 16:37

























asked Nov 15 at 19:24









michael john peralta

136




136












  • have you attempted it yet? Look at the "Send" function in AHK. Try something, then update this question. We wont just write the code for you.
    – Zack Tarr
    Nov 15 at 20:00










  • See Sending Keystrokes in the tutorial.
    – user3419297
    Nov 15 at 20:07










  • Try adding Sleep (e.g to wait 0.3 sec. add Sleep 300) between the Send commands (Send works too fast). Instead of AltTab and (maybe after Send, {F9}) you can use WinWait, WinActivate and WinWaitActive before sending commands to the active window. To repeat a keystroke use e.g. Send, {TAB 4}.
    – user3419297
    Nov 16 at 11:51










  • @user3419297 iedited my code can you check it? i put alttab on that because im shifting from excel to other open application..
    – michael john peralta
    Nov 20 at 16:39










  • Without knowing details about what are you trying to do is difficult to say.
    – user3419297
    Nov 22 at 8:27


















  • have you attempted it yet? Look at the "Send" function in AHK. Try something, then update this question. We wont just write the code for you.
    – Zack Tarr
    Nov 15 at 20:00










  • See Sending Keystrokes in the tutorial.
    – user3419297
    Nov 15 at 20:07










  • Try adding Sleep (e.g to wait 0.3 sec. add Sleep 300) between the Send commands (Send works too fast). Instead of AltTab and (maybe after Send, {F9}) you can use WinWait, WinActivate and WinWaitActive before sending commands to the active window. To repeat a keystroke use e.g. Send, {TAB 4}.
    – user3419297
    Nov 16 at 11:51










  • @user3419297 iedited my code can you check it? i put alttab on that because im shifting from excel to other open application..
    – michael john peralta
    Nov 20 at 16:39










  • Without knowing details about what are you trying to do is difficult to say.
    – user3419297
    Nov 22 at 8:27
















have you attempted it yet? Look at the "Send" function in AHK. Try something, then update this question. We wont just write the code for you.
– Zack Tarr
Nov 15 at 20:00




have you attempted it yet? Look at the "Send" function in AHK. Try something, then update this question. We wont just write the code for you.
– Zack Tarr
Nov 15 at 20:00












See Sending Keystrokes in the tutorial.
– user3419297
Nov 15 at 20:07




See Sending Keystrokes in the tutorial.
– user3419297
Nov 15 at 20:07












Try adding Sleep (e.g to wait 0.3 sec. add Sleep 300) between the Send commands (Send works too fast). Instead of AltTab and (maybe after Send, {F9}) you can use WinWait, WinActivate and WinWaitActive before sending commands to the active window. To repeat a keystroke use e.g. Send, {TAB 4}.
– user3419297
Nov 16 at 11:51




Try adding Sleep (e.g to wait 0.3 sec. add Sleep 300) between the Send commands (Send works too fast). Instead of AltTab and (maybe after Send, {F9}) you can use WinWait, WinActivate and WinWaitActive before sending commands to the active window. To repeat a keystroke use e.g. Send, {TAB 4}.
– user3419297
Nov 16 at 11:51












@user3419297 iedited my code can you check it? i put alttab on that because im shifting from excel to other open application..
– michael john peralta
Nov 20 at 16:39




@user3419297 iedited my code can you check it? i put alttab on that because im shifting from excel to other open application..
– michael john peralta
Nov 20 at 16:39












Without knowing details about what are you trying to do is difficult to say.
– user3419297
Nov 22 at 8:27




Without knowing details about what are you trying to do is difficult to say.
– user3419297
Nov 22 at 8:27

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53326607%2fautohotkey-script-with-combination-of-keystroke%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53326607%2fautohotkey-script-with-combination-of-keystroke%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents