Clicking each item that you want to add to a Collection can be annoying. Especially when you have thousands of items!! Donc, I made an AutoHotKey script that does it for you.
This guide shows you how to use AutoHotKey to automatically add all of your subscriptions to a Collection by using an AHK script. Automated mouse clicks and down scrolling arrow keystrokes. Just run it, Press F1, and walk away till it’c'est fait.
Download AutoHotKey
Si vous ne’Je sais quoi AutoHotKey est, it lets you write scripts to automate clicking, dactylographie, mouvement de la souris, et plus. The script file is just a Text file, and you can open it and edit it in notepad.
AutoHotKey Script
Create a text file on your desktop and give it a name (CS Auto Add to Collection.txt). Name it how you want, Le nom ne fait pas’ça n'a pas d'importance.
- Open the text file in notepad and copy the code below and paste it into the file.
- Enregistrez le fichier.
- Rename the file from .txt to .ahk
Note: This code will loop 1000 fois. Feel free to change that and anything else that you want. je’ve made it to click 3 fois, vers le bas (15 pixels) deux fois, et sauvegarder 30 pixels. This is because the down arrow key that it sends scrolls more than one line at a time. Making one-click miss about every 4th item. So I made to just click more. It might miss 3-4 dans 1000, mais ça’s still good. You can click those.
#Plusieurs ; Recommandé pour la performance et la compatibilité avec les futures versions AutoHotKey. ; #Avertir ; Permettre des avertissements pour aider à détecter les erreurs courantes. Entrée SendMode ; Recommandé pour les nouveaux scripts en raison de sa vitesse et de sa fiabilité supérieures. Setworkingdir% a_scriptdir% ; Assure un répertoire de départ cohérent. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; CITIES SKYLINES WORKSSHOP SCRIPT / AUTOMATICALLY ADD ITEMS TO A COLLECTION. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SetKeyDelay, 10, 200 f1:: ; PRESS: F1 { ; How many times to loop?? 1000 times by default. ; OR Change it to whatever you like. When it gets to the end of the list ; it will just keep clicking until it reachs the limit and won't hurt anything. Just wait for it to end. Boucle 1000 { ; 3 Mouse Clicks to try and catch everything. ; Cliquer 15 pixels, then down 15 more pixels, then back up to 30 where we started. mouseclick, gauche, 0, -15, 1, 0, , Relative Sleep, 100 ; 1000 = 1 second mouseclick, gauche, 0, -15, 1, 0, , Relative Sleep, 100 ; 1000 = 1 second mouseclick, gauche, 0, 30, 1, 0, , Relative Sleep, 100 ; 1000 = 1 second Send {Bas} ; Send Down Arrow Key. Dormir, 100 ; 1000 = 1 deuxième } } retour ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; FEEL FREE TO TWEAK THIS HOWEVER YOU WANT!! ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Run the Script
- Start creating a new Collection in the Steam Workshop. When you get to the listbox of items to add.
- Run AutoHotKey.
- Double-Click on my script file to start it running.
- Move your mouse over the 2nd or 3rd item in your Item list (to give it some room to move up and down)
- Presse F1
- Enfiler’ne touche pas ta souris!
It starts clicking and scrolling through your list. Come back when it’c'est fait.
C'est tout ce que nous partageons aujourd'hui pour cela Villes: Horizons guide. Ce guide a été initialement créé et rédigé par Snacko. Si nous ne parvenons pas à mettre à jour ce guide, vous pouvez trouver la dernière mise à jour en suivant ceci lien.