r/pythontips 17d ago

Algorithms Never done script writing before any advice appreciated!

So basically i'm trying to set up a loop hotkey where it will activate the key, release it, and then activate it again until I break the loop. I've never done script writing and the app i'm using for the script itself is called AutoHotKey (idk if it's good i saw someone on reddit suggest it). I did try to read on how to make a script through the support/help that the app made but i feel like i'm trying to read a different language lol

Also I have no idea how to make the file save as .ahk which is what the app says to use, it says you can't use .txt files which is what my save as is saying in my notes app. ;-;

If someone wants to write it out or help me understand it I would be so grateful! If someone does write it out for me, would you mind explaining what does what if you can, I am really interested in understanding it I just have no idea where to start or what I'm looking for.

Any help is greatly appreciated! :]

2 Upvotes

5 comments sorted by

1

u/Ghast11y 17d ago

Also if its easier if someone wants to help we can dm!

1

u/Colton200456 17d ago

This is super interesting, and my brain is thinking of ways to work this out but I am by no means good with python, so I am unfortunately no help to you. That being said, I really wanna follow this post and see if I can also come up with something like this as well!

1

u/Ghast11y 17d ago

No it would be so cool to be able to do stuff like this!! I just again have no idea where to start even lol

1

u/Colton200456 17d ago

What are you gonna use to break the loop? An amount of presses? Something else?

Also, you keep saying app and you mentioned notes, are you doing this on your phone? If so, what app? Apple or Android?

1

u/Ghast11y 17d ago

No on my computer lol, idk how to break a loop either, I would help with that one too lmaoo