How can I AFK “click” in Minecraft post 1.13











up vote
5
down vote

favorite












Since Minecraft's release (and I believe since its creation), there was a bug that allowed you a to repeatedly input a command. I've seen it called the "afk bug", "F11 bug", or "alt tab bug".



Basically, you held down some key(s) and pressed f11 to toggle between windowed and full screen. Then the command would continue to be input. This command would persist to be input even after you alt tab to something else. Honestly, I almost thought it was a feature.



But 1.13 fixed my "feature" that I used mainly for fishing and cobblestone.



How can I AFK click in Minecraft post 1.13 (Java Edition)?










share|improve this question









New contributor




goodguy5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Don't know if it is applicable anymore because I haven't played Minecraft in years but we used to AFK in a whirlpool. I.e. create a 9x9 block, post in the middle, sign on it, bucket of water. It would then move you round and round and let you AFK.
    – TheLethalCroft
    12 hours ago










  • Are you open to solutions external to the game (autohotkey, etc.)? And if so, which platform are you using?
    – Bilkokuya
    12 hours ago










  • @Bilkokuya platform updated to PC (Java Edition). I would be open to any simple and effective solution.
    – goodguy5
    11 hours ago















up vote
5
down vote

favorite












Since Minecraft's release (and I believe since its creation), there was a bug that allowed you a to repeatedly input a command. I've seen it called the "afk bug", "F11 bug", or "alt tab bug".



Basically, you held down some key(s) and pressed f11 to toggle between windowed and full screen. Then the command would continue to be input. This command would persist to be input even after you alt tab to something else. Honestly, I almost thought it was a feature.



But 1.13 fixed my "feature" that I used mainly for fishing and cobblestone.



How can I AFK click in Minecraft post 1.13 (Java Edition)?










share|improve this question









New contributor




goodguy5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Don't know if it is applicable anymore because I haven't played Minecraft in years but we used to AFK in a whirlpool. I.e. create a 9x9 block, post in the middle, sign on it, bucket of water. It would then move you round and round and let you AFK.
    – TheLethalCroft
    12 hours ago










  • Are you open to solutions external to the game (autohotkey, etc.)? And if so, which platform are you using?
    – Bilkokuya
    12 hours ago










  • @Bilkokuya platform updated to PC (Java Edition). I would be open to any simple and effective solution.
    – goodguy5
    11 hours ago













up vote
5
down vote

favorite









up vote
5
down vote

favorite











Since Minecraft's release (and I believe since its creation), there was a bug that allowed you a to repeatedly input a command. I've seen it called the "afk bug", "F11 bug", or "alt tab bug".



Basically, you held down some key(s) and pressed f11 to toggle between windowed and full screen. Then the command would continue to be input. This command would persist to be input even after you alt tab to something else. Honestly, I almost thought it was a feature.



But 1.13 fixed my "feature" that I used mainly for fishing and cobblestone.



How can I AFK click in Minecraft post 1.13 (Java Edition)?










share|improve this question









New contributor




goodguy5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Since Minecraft's release (and I believe since its creation), there was a bug that allowed you a to repeatedly input a command. I've seen it called the "afk bug", "F11 bug", or "alt tab bug".



Basically, you held down some key(s) and pressed f11 to toggle between windowed and full screen. Then the command would continue to be input. This command would persist to be input even after you alt tab to something else. Honestly, I almost thought it was a feature.



But 1.13 fixed my "feature" that I used mainly for fishing and cobblestone.



How can I AFK click in Minecraft post 1.13 (Java Edition)?







minecraft pc






share|improve this question









New contributor




goodguy5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




goodguy5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 11 hours ago





















New contributor




goodguy5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 12 hours ago









goodguy5

1265




1265




New contributor




goodguy5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





goodguy5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






goodguy5 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Don't know if it is applicable anymore because I haven't played Minecraft in years but we used to AFK in a whirlpool. I.e. create a 9x9 block, post in the middle, sign on it, bucket of water. It would then move you round and round and let you AFK.
    – TheLethalCroft
    12 hours ago










  • Are you open to solutions external to the game (autohotkey, etc.)? And if so, which platform are you using?
    – Bilkokuya
    12 hours ago










  • @Bilkokuya platform updated to PC (Java Edition). I would be open to any simple and effective solution.
    – goodguy5
    11 hours ago


















  • Don't know if it is applicable anymore because I haven't played Minecraft in years but we used to AFK in a whirlpool. I.e. create a 9x9 block, post in the middle, sign on it, bucket of water. It would then move you round and round and let you AFK.
    – TheLethalCroft
    12 hours ago










  • Are you open to solutions external to the game (autohotkey, etc.)? And if so, which platform are you using?
    – Bilkokuya
    12 hours ago










  • @Bilkokuya platform updated to PC (Java Edition). I would be open to any simple and effective solution.
    – goodguy5
    11 hours ago
















Don't know if it is applicable anymore because I haven't played Minecraft in years but we used to AFK in a whirlpool. I.e. create a 9x9 block, post in the middle, sign on it, bucket of water. It would then move you round and round and let you AFK.
– TheLethalCroft
12 hours ago




Don't know if it is applicable anymore because I haven't played Minecraft in years but we used to AFK in a whirlpool. I.e. create a 9x9 block, post in the middle, sign on it, bucket of water. It would then move you round and round and let you AFK.
– TheLethalCroft
12 hours ago












Are you open to solutions external to the game (autohotkey, etc.)? And if so, which platform are you using?
– Bilkokuya
12 hours ago




Are you open to solutions external to the game (autohotkey, etc.)? And if so, which platform are you using?
– Bilkokuya
12 hours ago












@Bilkokuya platform updated to PC (Java Edition). I would be open to any simple and effective solution.
– goodguy5
11 hours ago




@Bilkokuya platform updated to PC (Java Edition). I would be open to any simple and effective solution.
– goodguy5
11 hours ago










3 Answers
3






active

oldest

votes

















up vote
11
down vote













This solution is not Minecraft specific; it uses the external tool "Auto Hotkey" to emulate clicks



For any auto-clicking, or any keyboard emulation behaviour - I'd recommend looking at AutoHotkey (AHK).



This is a 3rd party program for Windows, which allows you to emulate any number of keyboards and mice, and programmatically control them. Due to it's prevelance, most tasks you wish to accomplish have already been solved and shared online.



There is a usage guide on their official site, for how to install AHK and how to create the auto-clicking scripts you need: https://autohotkey.com/docs/Tutorial.htm



Please note, as with any 3rd party software - usage is at your own risk.





For the autoclicking script itself, here is a simple example:



toggle = 0
#MaxThreadsPerHotkey 2

F8::
Toggle := !Toggle
While Toggle{
Click
sleep 100
}
return


The effect is, once the key "F8" is pressed; AHK will begin looping the Click action. Once the F8 key is pressed again, the value of "Toggle" is reset, and the loop ends. It allows you to turn on and off the clicking. There are of course, much more complex auto-clicking techniques you can employ using AHK.



Using online tutorials and searching, I'm sure you will be able to tailor this to your needs. Otherwise, specific AHK scripting questions can be answered on StackOverflow.SE






share|improve this answer










New contributor




Bilkokuya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • 1




    Way too complicated. You don't need scripting, you can just set an autoclicker to a very slow speed.
    – Fabian Röling
    11 hours ago






  • 8




    @FabianRöling I agree there are definitely simpler auto-clicking tools. However, AHK is a widely adopted tool with a good reputation for being safe and compatible (that is, it has a reputation for not containing malware, and is open source - if any future users wish to inspect it). Moreover, while it may seem overkill in the first instance, it is flexible and allows OP to do a lot more in future if they wish. I would be reluctant to recommend any other specific auto-clicker due to the prevelance of malware in 3rd party software from sources without a reputation.
    – Bilkokuya
    10 hours ago










  • Does this tool allow one to alt tab or does the screen have to be on the thing being clicked?
    – goodguy5
    8 hours ago






  • 3




    @goodguy5 The script above will require the window to be open (it will just click whatever is under the cursor). However, AHK does have support for clicking specific windows while they are unfocused. See Control Click: autohotkey.com/docs/commands/ControlClick.htm (it's also likely you'll find a script you can just "use" from online searching)
    – Bilkokuya
    8 hours ago


















up vote
5
down vote













This solution is not Minecraft specific; it uses the external tool "xdotool" to emulate clicks



If you're on Linux, there's a very nice automation tool called xdotool, usually available in the default package sources, so it should be in Synaptic, Ubuntu software center, etc.



With it, you can not only write scripts to automate mouse and keyboard, but you can also just enter simple commands into the command line, including single key/mouse down/up events. So to permanently hold left click, just enter this into a command line after installing xdotool:



xdotool mousedown 1


For right click:



xdotool mousedown 3


To stop it, just click that mouse button.



To wait a bit before holding the button, write "sleep 10 &&" before the command (or any other number of seconds).






share|improve this answer























  • Nice answer, but note that xdotool is an X11 specific thing that won't work on Wayland. So if you're using Fedora for example, you'll have to change your system configuration to make it work.
    – undercat
    3 hours ago


















up vote
3
down vote













This solution is not Minecraft specific; it uses the in build options of Windows to do this



If you are using Windows, it has something build in for this.



Go to the accessibility settings and turn on mouse keys.



This gives you access to using the numpad section of the keyboard to control the mouse. One of the important features we need for is the "press mouse" action.




  1. Enable mouse keys in the accessibility settings of Windows (or press left Alt + left Shift + Num Lock)

  2. Go into Minecraft

  3. Select either the left (/) or the right (-) mouse button using those buttons on the numpad section

  4. Look in the direction you want to execute the mouse action in (yes you could also use the numpad to move the mouse, but this is harder for most people)

  5. Press 0 on the numpad to do a "press mouse" action

  6. Once you are done, press . on the numpad to release the mouse again






share|improve this answer





















  • will that continually "press mouse"?
    – goodguy5
    9 hours ago










  • Yes, the 0 function is designed to basically do the pressing part of a drag & drop interaction, and for this, you need to hold the mouse, and that is what you need to do in Minecraft for fishing and mining
    – Ferrybig
    9 hours ago










  • That will hold the mouse button down, not click multiple times.
    – Ismael Miguel
    4 hours ago










  • @IsmaelMiguel If you read the question, the OP mentions that he used the trick of holding a mouse button while changing f11 state. This also holds a mouse button, instead of pressing it multiple times, and holding it is used for mining and AFK fishing machines
    – Ferrybig
    4 hours ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "41"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






goodguy5 is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f342303%2fhow-can-i-afk-click-in-minecraft-post-1-13%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
11
down vote













This solution is not Minecraft specific; it uses the external tool "Auto Hotkey" to emulate clicks



For any auto-clicking, or any keyboard emulation behaviour - I'd recommend looking at AutoHotkey (AHK).



This is a 3rd party program for Windows, which allows you to emulate any number of keyboards and mice, and programmatically control them. Due to it's prevelance, most tasks you wish to accomplish have already been solved and shared online.



There is a usage guide on their official site, for how to install AHK and how to create the auto-clicking scripts you need: https://autohotkey.com/docs/Tutorial.htm



Please note, as with any 3rd party software - usage is at your own risk.





For the autoclicking script itself, here is a simple example:



toggle = 0
#MaxThreadsPerHotkey 2

F8::
Toggle := !Toggle
While Toggle{
Click
sleep 100
}
return


The effect is, once the key "F8" is pressed; AHK will begin looping the Click action. Once the F8 key is pressed again, the value of "Toggle" is reset, and the loop ends. It allows you to turn on and off the clicking. There are of course, much more complex auto-clicking techniques you can employ using AHK.



Using online tutorials and searching, I'm sure you will be able to tailor this to your needs. Otherwise, specific AHK scripting questions can be answered on StackOverflow.SE






share|improve this answer










New contributor




Bilkokuya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • 1




    Way too complicated. You don't need scripting, you can just set an autoclicker to a very slow speed.
    – Fabian Röling
    11 hours ago






  • 8




    @FabianRöling I agree there are definitely simpler auto-clicking tools. However, AHK is a widely adopted tool with a good reputation for being safe and compatible (that is, it has a reputation for not containing malware, and is open source - if any future users wish to inspect it). Moreover, while it may seem overkill in the first instance, it is flexible and allows OP to do a lot more in future if they wish. I would be reluctant to recommend any other specific auto-clicker due to the prevelance of malware in 3rd party software from sources without a reputation.
    – Bilkokuya
    10 hours ago










  • Does this tool allow one to alt tab or does the screen have to be on the thing being clicked?
    – goodguy5
    8 hours ago






  • 3




    @goodguy5 The script above will require the window to be open (it will just click whatever is under the cursor). However, AHK does have support for clicking specific windows while they are unfocused. See Control Click: autohotkey.com/docs/commands/ControlClick.htm (it's also likely you'll find a script you can just "use" from online searching)
    – Bilkokuya
    8 hours ago















up vote
11
down vote













This solution is not Minecraft specific; it uses the external tool "Auto Hotkey" to emulate clicks



For any auto-clicking, or any keyboard emulation behaviour - I'd recommend looking at AutoHotkey (AHK).



This is a 3rd party program for Windows, which allows you to emulate any number of keyboards and mice, and programmatically control them. Due to it's prevelance, most tasks you wish to accomplish have already been solved and shared online.



There is a usage guide on their official site, for how to install AHK and how to create the auto-clicking scripts you need: https://autohotkey.com/docs/Tutorial.htm



Please note, as with any 3rd party software - usage is at your own risk.





For the autoclicking script itself, here is a simple example:



toggle = 0
#MaxThreadsPerHotkey 2

F8::
Toggle := !Toggle
While Toggle{
Click
sleep 100
}
return


The effect is, once the key "F8" is pressed; AHK will begin looping the Click action. Once the F8 key is pressed again, the value of "Toggle" is reset, and the loop ends. It allows you to turn on and off the clicking. There are of course, much more complex auto-clicking techniques you can employ using AHK.



Using online tutorials and searching, I'm sure you will be able to tailor this to your needs. Otherwise, specific AHK scripting questions can be answered on StackOverflow.SE






share|improve this answer










New contributor




Bilkokuya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • 1




    Way too complicated. You don't need scripting, you can just set an autoclicker to a very slow speed.
    – Fabian Röling
    11 hours ago






  • 8




    @FabianRöling I agree there are definitely simpler auto-clicking tools. However, AHK is a widely adopted tool with a good reputation for being safe and compatible (that is, it has a reputation for not containing malware, and is open source - if any future users wish to inspect it). Moreover, while it may seem overkill in the first instance, it is flexible and allows OP to do a lot more in future if they wish. I would be reluctant to recommend any other specific auto-clicker due to the prevelance of malware in 3rd party software from sources without a reputation.
    – Bilkokuya
    10 hours ago










  • Does this tool allow one to alt tab or does the screen have to be on the thing being clicked?
    – goodguy5
    8 hours ago






  • 3




    @goodguy5 The script above will require the window to be open (it will just click whatever is under the cursor). However, AHK does have support for clicking specific windows while they are unfocused. See Control Click: autohotkey.com/docs/commands/ControlClick.htm (it's also likely you'll find a script you can just "use" from online searching)
    – Bilkokuya
    8 hours ago













up vote
11
down vote










up vote
11
down vote









This solution is not Minecraft specific; it uses the external tool "Auto Hotkey" to emulate clicks



For any auto-clicking, or any keyboard emulation behaviour - I'd recommend looking at AutoHotkey (AHK).



This is a 3rd party program for Windows, which allows you to emulate any number of keyboards and mice, and programmatically control them. Due to it's prevelance, most tasks you wish to accomplish have already been solved and shared online.



There is a usage guide on their official site, for how to install AHK and how to create the auto-clicking scripts you need: https://autohotkey.com/docs/Tutorial.htm



Please note, as with any 3rd party software - usage is at your own risk.





For the autoclicking script itself, here is a simple example:



toggle = 0
#MaxThreadsPerHotkey 2

F8::
Toggle := !Toggle
While Toggle{
Click
sleep 100
}
return


The effect is, once the key "F8" is pressed; AHK will begin looping the Click action. Once the F8 key is pressed again, the value of "Toggle" is reset, and the loop ends. It allows you to turn on and off the clicking. There are of course, much more complex auto-clicking techniques you can employ using AHK.



Using online tutorials and searching, I'm sure you will be able to tailor this to your needs. Otherwise, specific AHK scripting questions can be answered on StackOverflow.SE






share|improve this answer










New contributor




Bilkokuya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









This solution is not Minecraft specific; it uses the external tool "Auto Hotkey" to emulate clicks



For any auto-clicking, or any keyboard emulation behaviour - I'd recommend looking at AutoHotkey (AHK).



This is a 3rd party program for Windows, which allows you to emulate any number of keyboards and mice, and programmatically control them. Due to it's prevelance, most tasks you wish to accomplish have already been solved and shared online.



There is a usage guide on their official site, for how to install AHK and how to create the auto-clicking scripts you need: https://autohotkey.com/docs/Tutorial.htm



Please note, as with any 3rd party software - usage is at your own risk.





For the autoclicking script itself, here is a simple example:



toggle = 0
#MaxThreadsPerHotkey 2

F8::
Toggle := !Toggle
While Toggle{
Click
sleep 100
}
return


The effect is, once the key "F8" is pressed; AHK will begin looping the Click action. Once the F8 key is pressed again, the value of "Toggle" is reset, and the loop ends. It allows you to turn on and off the clicking. There are of course, much more complex auto-clicking techniques you can employ using AHK.



Using online tutorials and searching, I'm sure you will be able to tailor this to your needs. Otherwise, specific AHK scripting questions can be answered on StackOverflow.SE







share|improve this answer










New contributor




Bilkokuya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer








edited 3 hours ago









Fabian Röling

5,12931236




5,12931236






New contributor




Bilkokuya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered 11 hours ago









Bilkokuya

34129




34129




New contributor




Bilkokuya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Bilkokuya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Bilkokuya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1




    Way too complicated. You don't need scripting, you can just set an autoclicker to a very slow speed.
    – Fabian Röling
    11 hours ago






  • 8




    @FabianRöling I agree there are definitely simpler auto-clicking tools. However, AHK is a widely adopted tool with a good reputation for being safe and compatible (that is, it has a reputation for not containing malware, and is open source - if any future users wish to inspect it). Moreover, while it may seem overkill in the first instance, it is flexible and allows OP to do a lot more in future if they wish. I would be reluctant to recommend any other specific auto-clicker due to the prevelance of malware in 3rd party software from sources without a reputation.
    – Bilkokuya
    10 hours ago










  • Does this tool allow one to alt tab or does the screen have to be on the thing being clicked?
    – goodguy5
    8 hours ago






  • 3




    @goodguy5 The script above will require the window to be open (it will just click whatever is under the cursor). However, AHK does have support for clicking specific windows while they are unfocused. See Control Click: autohotkey.com/docs/commands/ControlClick.htm (it's also likely you'll find a script you can just "use" from online searching)
    – Bilkokuya
    8 hours ago














  • 1




    Way too complicated. You don't need scripting, you can just set an autoclicker to a very slow speed.
    – Fabian Röling
    11 hours ago






  • 8




    @FabianRöling I agree there are definitely simpler auto-clicking tools. However, AHK is a widely adopted tool with a good reputation for being safe and compatible (that is, it has a reputation for not containing malware, and is open source - if any future users wish to inspect it). Moreover, while it may seem overkill in the first instance, it is flexible and allows OP to do a lot more in future if they wish. I would be reluctant to recommend any other specific auto-clicker due to the prevelance of malware in 3rd party software from sources without a reputation.
    – Bilkokuya
    10 hours ago










  • Does this tool allow one to alt tab or does the screen have to be on the thing being clicked?
    – goodguy5
    8 hours ago






  • 3




    @goodguy5 The script above will require the window to be open (it will just click whatever is under the cursor). However, AHK does have support for clicking specific windows while they are unfocused. See Control Click: autohotkey.com/docs/commands/ControlClick.htm (it's also likely you'll find a script you can just "use" from online searching)
    – Bilkokuya
    8 hours ago








1




1




Way too complicated. You don't need scripting, you can just set an autoclicker to a very slow speed.
– Fabian Röling
11 hours ago




Way too complicated. You don't need scripting, you can just set an autoclicker to a very slow speed.
– Fabian Röling
11 hours ago




8




8




@FabianRöling I agree there are definitely simpler auto-clicking tools. However, AHK is a widely adopted tool with a good reputation for being safe and compatible (that is, it has a reputation for not containing malware, and is open source - if any future users wish to inspect it). Moreover, while it may seem overkill in the first instance, it is flexible and allows OP to do a lot more in future if they wish. I would be reluctant to recommend any other specific auto-clicker due to the prevelance of malware in 3rd party software from sources without a reputation.
– Bilkokuya
10 hours ago




@FabianRöling I agree there are definitely simpler auto-clicking tools. However, AHK is a widely adopted tool with a good reputation for being safe and compatible (that is, it has a reputation for not containing malware, and is open source - if any future users wish to inspect it). Moreover, while it may seem overkill in the first instance, it is flexible and allows OP to do a lot more in future if they wish. I would be reluctant to recommend any other specific auto-clicker due to the prevelance of malware in 3rd party software from sources without a reputation.
– Bilkokuya
10 hours ago












Does this tool allow one to alt tab or does the screen have to be on the thing being clicked?
– goodguy5
8 hours ago




Does this tool allow one to alt tab or does the screen have to be on the thing being clicked?
– goodguy5
8 hours ago




3




3




@goodguy5 The script above will require the window to be open (it will just click whatever is under the cursor). However, AHK does have support for clicking specific windows while they are unfocused. See Control Click: autohotkey.com/docs/commands/ControlClick.htm (it's also likely you'll find a script you can just "use" from online searching)
– Bilkokuya
8 hours ago




@goodguy5 The script above will require the window to be open (it will just click whatever is under the cursor). However, AHK does have support for clicking specific windows while they are unfocused. See Control Click: autohotkey.com/docs/commands/ControlClick.htm (it's also likely you'll find a script you can just "use" from online searching)
– Bilkokuya
8 hours ago












up vote
5
down vote













This solution is not Minecraft specific; it uses the external tool "xdotool" to emulate clicks



If you're on Linux, there's a very nice automation tool called xdotool, usually available in the default package sources, so it should be in Synaptic, Ubuntu software center, etc.



With it, you can not only write scripts to automate mouse and keyboard, but you can also just enter simple commands into the command line, including single key/mouse down/up events. So to permanently hold left click, just enter this into a command line after installing xdotool:



xdotool mousedown 1


For right click:



xdotool mousedown 3


To stop it, just click that mouse button.



To wait a bit before holding the button, write "sleep 10 &&" before the command (or any other number of seconds).






share|improve this answer























  • Nice answer, but note that xdotool is an X11 specific thing that won't work on Wayland. So if you're using Fedora for example, you'll have to change your system configuration to make it work.
    – undercat
    3 hours ago















up vote
5
down vote













This solution is not Minecraft specific; it uses the external tool "xdotool" to emulate clicks



If you're on Linux, there's a very nice automation tool called xdotool, usually available in the default package sources, so it should be in Synaptic, Ubuntu software center, etc.



With it, you can not only write scripts to automate mouse and keyboard, but you can also just enter simple commands into the command line, including single key/mouse down/up events. So to permanently hold left click, just enter this into a command line after installing xdotool:



xdotool mousedown 1


For right click:



xdotool mousedown 3


To stop it, just click that mouse button.



To wait a bit before holding the button, write "sleep 10 &&" before the command (or any other number of seconds).






share|improve this answer























  • Nice answer, but note that xdotool is an X11 specific thing that won't work on Wayland. So if you're using Fedora for example, you'll have to change your system configuration to make it work.
    – undercat
    3 hours ago













up vote
5
down vote










up vote
5
down vote









This solution is not Minecraft specific; it uses the external tool "xdotool" to emulate clicks



If you're on Linux, there's a very nice automation tool called xdotool, usually available in the default package sources, so it should be in Synaptic, Ubuntu software center, etc.



With it, you can not only write scripts to automate mouse and keyboard, but you can also just enter simple commands into the command line, including single key/mouse down/up events. So to permanently hold left click, just enter this into a command line after installing xdotool:



xdotool mousedown 1


For right click:



xdotool mousedown 3


To stop it, just click that mouse button.



To wait a bit before holding the button, write "sleep 10 &&" before the command (or any other number of seconds).






share|improve this answer














This solution is not Minecraft specific; it uses the external tool "xdotool" to emulate clicks



If you're on Linux, there's a very nice automation tool called xdotool, usually available in the default package sources, so it should be in Synaptic, Ubuntu software center, etc.



With it, you can not only write scripts to automate mouse and keyboard, but you can also just enter simple commands into the command line, including single key/mouse down/up events. So to permanently hold left click, just enter this into a command line after installing xdotool:



xdotool mousedown 1


For right click:



xdotool mousedown 3


To stop it, just click that mouse button.



To wait a bit before holding the button, write "sleep 10 &&" before the command (or any other number of seconds).







share|improve this answer














share|improve this answer



share|improve this answer








edited 3 hours ago

























answered 10 hours ago









Fabian Röling

5,12931236




5,12931236












  • Nice answer, but note that xdotool is an X11 specific thing that won't work on Wayland. So if you're using Fedora for example, you'll have to change your system configuration to make it work.
    – undercat
    3 hours ago


















  • Nice answer, but note that xdotool is an X11 specific thing that won't work on Wayland. So if you're using Fedora for example, you'll have to change your system configuration to make it work.
    – undercat
    3 hours ago
















Nice answer, but note that xdotool is an X11 specific thing that won't work on Wayland. So if you're using Fedora for example, you'll have to change your system configuration to make it work.
– undercat
3 hours ago




Nice answer, but note that xdotool is an X11 specific thing that won't work on Wayland. So if you're using Fedora for example, you'll have to change your system configuration to make it work.
– undercat
3 hours ago










up vote
3
down vote













This solution is not Minecraft specific; it uses the in build options of Windows to do this



If you are using Windows, it has something build in for this.



Go to the accessibility settings and turn on mouse keys.



This gives you access to using the numpad section of the keyboard to control the mouse. One of the important features we need for is the "press mouse" action.




  1. Enable mouse keys in the accessibility settings of Windows (or press left Alt + left Shift + Num Lock)

  2. Go into Minecraft

  3. Select either the left (/) or the right (-) mouse button using those buttons on the numpad section

  4. Look in the direction you want to execute the mouse action in (yes you could also use the numpad to move the mouse, but this is harder for most people)

  5. Press 0 on the numpad to do a "press mouse" action

  6. Once you are done, press . on the numpad to release the mouse again






share|improve this answer





















  • will that continually "press mouse"?
    – goodguy5
    9 hours ago










  • Yes, the 0 function is designed to basically do the pressing part of a drag & drop interaction, and for this, you need to hold the mouse, and that is what you need to do in Minecraft for fishing and mining
    – Ferrybig
    9 hours ago










  • That will hold the mouse button down, not click multiple times.
    – Ismael Miguel
    4 hours ago










  • @IsmaelMiguel If you read the question, the OP mentions that he used the trick of holding a mouse button while changing f11 state. This also holds a mouse button, instead of pressing it multiple times, and holding it is used for mining and AFK fishing machines
    – Ferrybig
    4 hours ago















up vote
3
down vote













This solution is not Minecraft specific; it uses the in build options of Windows to do this



If you are using Windows, it has something build in for this.



Go to the accessibility settings and turn on mouse keys.



This gives you access to using the numpad section of the keyboard to control the mouse. One of the important features we need for is the "press mouse" action.




  1. Enable mouse keys in the accessibility settings of Windows (or press left Alt + left Shift + Num Lock)

  2. Go into Minecraft

  3. Select either the left (/) or the right (-) mouse button using those buttons on the numpad section

  4. Look in the direction you want to execute the mouse action in (yes you could also use the numpad to move the mouse, but this is harder for most people)

  5. Press 0 on the numpad to do a "press mouse" action

  6. Once you are done, press . on the numpad to release the mouse again






share|improve this answer





















  • will that continually "press mouse"?
    – goodguy5
    9 hours ago










  • Yes, the 0 function is designed to basically do the pressing part of a drag & drop interaction, and for this, you need to hold the mouse, and that is what you need to do in Minecraft for fishing and mining
    – Ferrybig
    9 hours ago










  • That will hold the mouse button down, not click multiple times.
    – Ismael Miguel
    4 hours ago










  • @IsmaelMiguel If you read the question, the OP mentions that he used the trick of holding a mouse button while changing f11 state. This also holds a mouse button, instead of pressing it multiple times, and holding it is used for mining and AFK fishing machines
    – Ferrybig
    4 hours ago













up vote
3
down vote










up vote
3
down vote









This solution is not Minecraft specific; it uses the in build options of Windows to do this



If you are using Windows, it has something build in for this.



Go to the accessibility settings and turn on mouse keys.



This gives you access to using the numpad section of the keyboard to control the mouse. One of the important features we need for is the "press mouse" action.




  1. Enable mouse keys in the accessibility settings of Windows (or press left Alt + left Shift + Num Lock)

  2. Go into Minecraft

  3. Select either the left (/) or the right (-) mouse button using those buttons on the numpad section

  4. Look in the direction you want to execute the mouse action in (yes you could also use the numpad to move the mouse, but this is harder for most people)

  5. Press 0 on the numpad to do a "press mouse" action

  6. Once you are done, press . on the numpad to release the mouse again






share|improve this answer












This solution is not Minecraft specific; it uses the in build options of Windows to do this



If you are using Windows, it has something build in for this.



Go to the accessibility settings and turn on mouse keys.



This gives you access to using the numpad section of the keyboard to control the mouse. One of the important features we need for is the "press mouse" action.




  1. Enable mouse keys in the accessibility settings of Windows (or press left Alt + left Shift + Num Lock)

  2. Go into Minecraft

  3. Select either the left (/) or the right (-) mouse button using those buttons on the numpad section

  4. Look in the direction you want to execute the mouse action in (yes you could also use the numpad to move the mouse, but this is harder for most people)

  5. Press 0 on the numpad to do a "press mouse" action

  6. Once you are done, press . on the numpad to release the mouse again







share|improve this answer












share|improve this answer



share|improve this answer










answered 9 hours ago









Ferrybig

423412




423412












  • will that continually "press mouse"?
    – goodguy5
    9 hours ago










  • Yes, the 0 function is designed to basically do the pressing part of a drag & drop interaction, and for this, you need to hold the mouse, and that is what you need to do in Minecraft for fishing and mining
    – Ferrybig
    9 hours ago










  • That will hold the mouse button down, not click multiple times.
    – Ismael Miguel
    4 hours ago










  • @IsmaelMiguel If you read the question, the OP mentions that he used the trick of holding a mouse button while changing f11 state. This also holds a mouse button, instead of pressing it multiple times, and holding it is used for mining and AFK fishing machines
    – Ferrybig
    4 hours ago


















  • will that continually "press mouse"?
    – goodguy5
    9 hours ago










  • Yes, the 0 function is designed to basically do the pressing part of a drag & drop interaction, and for this, you need to hold the mouse, and that is what you need to do in Minecraft for fishing and mining
    – Ferrybig
    9 hours ago










  • That will hold the mouse button down, not click multiple times.
    – Ismael Miguel
    4 hours ago










  • @IsmaelMiguel If you read the question, the OP mentions that he used the trick of holding a mouse button while changing f11 state. This also holds a mouse button, instead of pressing it multiple times, and holding it is used for mining and AFK fishing machines
    – Ferrybig
    4 hours ago
















will that continually "press mouse"?
– goodguy5
9 hours ago




will that continually "press mouse"?
– goodguy5
9 hours ago












Yes, the 0 function is designed to basically do the pressing part of a drag & drop interaction, and for this, you need to hold the mouse, and that is what you need to do in Minecraft for fishing and mining
– Ferrybig
9 hours ago




Yes, the 0 function is designed to basically do the pressing part of a drag & drop interaction, and for this, you need to hold the mouse, and that is what you need to do in Minecraft for fishing and mining
– Ferrybig
9 hours ago












That will hold the mouse button down, not click multiple times.
– Ismael Miguel
4 hours ago




That will hold the mouse button down, not click multiple times.
– Ismael Miguel
4 hours ago












@IsmaelMiguel If you read the question, the OP mentions that he used the trick of holding a mouse button while changing f11 state. This also holds a mouse button, instead of pressing it multiple times, and holding it is used for mining and AFK fishing machines
– Ferrybig
4 hours ago




@IsmaelMiguel If you read the question, the OP mentions that he used the trick of holding a mouse button while changing f11 state. This also holds a mouse button, instead of pressing it multiple times, and holding it is used for mining and AFK fishing machines
– Ferrybig
4 hours ago










goodguy5 is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















goodguy5 is a new contributor. Be nice, and check out our Code of Conduct.













goodguy5 is a new contributor. Be nice, and check out our Code of Conduct.












goodguy5 is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Arqade!


  • 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%2fgaming.stackexchange.com%2fquestions%2f342303%2fhow-can-i-afk-click-in-minecraft-post-1-13%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

List directoties down one level, excluding some named directories and files

list processes belonging to a network namespace

list systemd RuntimeDirectory mounts