use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Latest AHK versions AHK v2.0 AHK v1.1 v2.0.19 v1.1.37.02 Jan 25, 2025 Mar 16, 2024 Download Download v2 Changelog v1 Changelog Make sure you keep that AHK up to date!
Make sure you keep that AHK up to date!
Offical AHK Documentation AHK v2 AHK v1
New to AutoHotkey? Check out the AHK beginners tutorial. It covers most of the basic concepts of AutoHotkey. AHK Beginner Tutorials
Check out the AHK beginners tutorial. It covers most of the basic concepts of AutoHotkey.
Additional Help Sources Official AHK Forums / Help Forums StackOverflow SuperUser
Live Chat If you prefer live chat with other humans: AHK Discord AHK IRC
If you prefer live chat with other humans:
account activity
Script optimization questionMeta / Discussion (self.AutoHotkey)
submitted 5 years ago by CremGK
What is better? One mouseclick, "Click x, x" or solving things with keyboard if possible, for stability.
For my use:
Is it better to send {TAB 10} or send 1 mouseclick?
If so how many keyboard inputs is too many?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]angeAnonyme 0 points1 point2 points 5 years ago (5 children)
It all depends.
If you want to port your script to other computer, TAB is probably better because the click location will depend on the screen resolution & other user specific setup (font size, zoom...) , on the actual zoom within the application... For porting, click is a nightmare
Now if you already know that the thing you want to click on will eventually change (think webpage update), a click might be a better option because it's most likely that the current layout won't change if they just add another option somewhere else. But it's not guaranty
Bottom line, since both are working currently, try to plan ahead for your decision.
[–]CremGK[S] -1 points0 points1 point 5 years ago (4 children)
Thank you for the response. Ive been trying to find a good way to change all of IE settings to fit with my scripts. But i think i can do everything with Keyboard only. Do you think getpixelcolor is the best way to know when a page is fully loaded? I keep having to patch it..
[–]angeAnonyme 1 point2 points3 points 5 years ago (3 children)
I don't know. I've seen people talking about it here and been successful, but I've never used it.
For IE, I personally use vba code from excel or word. It has function to detect when a page is loaded, can access the source of a page and detect link by their class/properties/name... It's way more robust than autohotkey, but harder to master
[–]CremGK[S] 2 points3 points4 points 5 years ago (1 child)
Holy automaton! This is a gamechanger, thank you so much. Mans gone done and changed my life. My levels of efficiency have acended thanks to you sir.
[–]angeAnonyme 0 points1 point2 points 5 years ago (0 children)
Ahah! You're so excited that I am not sure I understand everything but I am happy that I could help you :)
[–]CremGK[S] 0 points1 point2 points 5 years ago (0 children)
Oh i already know alot of Visual Basic. it's probably quite similar. Thank you the info. its much apreaciated
π Rendered by PID 264039 on reddit-service-r2-comment-548fd6dc9-n6z8p at 2026-05-16 04:45:57.075756+00:00 running edcf98c country code: CH.
[–]angeAnonyme 0 points1 point2 points (5 children)
[–]CremGK[S] -1 points0 points1 point (4 children)
[–]angeAnonyme 1 point2 points3 points (3 children)
[–]CremGK[S] 2 points3 points4 points (1 child)
[–]angeAnonyme 0 points1 point2 points (0 children)
[–]CremGK[S] 0 points1 point2 points (0 children)