Clicking each item that you want to add to a Collection can be annoying. Especially when you have thousands of items!! Так, 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’s done.
Download AutoHotKey
If you don’t know what AutoHotKey является, it lets you write scripts to automate clicking, печатание, движение мыши, и многое другое. The script file is just a Text file, and you can open it and edit it in notepad.
Скрипт AutoHotKey
Create a text file on your desktop and give it a name (CS Auto Add to Collection.txt). Name it how you want, the name doesn’t matter.
- Open the text file in notepad and copy the code below and paste it into the file.
- Сохраните файл.
- Rename the file from .txt to .ahk
Примечание: This code will loop 1000 раз. Feel free to change that and anything else that you want. I’ve made it to click 3 раз, вниз (15 пиксели) дважды, и резервное копирование 30 пиксели. 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 в 1000, but that’s still good. You can click those.
#Несколько ; Рекомендуется для производительности и совместимости с будущими выпусками Autohotkey. ; #Warn ; Enable warnings to assist with detecting common errors. Вход SendMode ; Рекомендуется для новых сценариев из -за превосходной скорости и надежности. SetWorkingDir %a_scriptdir % ; Обеспечивает последовательный стартовый каталог. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; CITIES SKYLINES WORKSSHOP SCRIPT / AUTOMATICALLY ADD ITEMS TO A COLLECTION. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SetKeyDelay, 10, 200 f1:: ; PRESS: Ф1 { ; 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. Петля 1000 { ; 3 Mouse Clicks to try and catch everything. ; Click down 15 пиксели, then down 15 more pixels, then back up to 30 where we started. mouseclick, левый, 0, -15, 1, 0, , Relative Sleep, 100 ; 1000 = 1 second mouseclick, левый, 0, -15, 1, 0, , Relative Sleep, 100 ; 1000 = 1 second mouseclick, левый, 0, 30, 1, 0, , Relative Sleep, 100 ; 1000 = 1 second Send {Вниз} ; Send Down Arrow Key. Спать, 100 ; 1000 = 1 второй } } возвращаться ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; 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)
- Нажимать Ф1
- Don’t touch your mouse!
It starts clicking and scrolling through your list. Come back when it’s done.
Это все, чем мы делимся сегодня для этого. Города: Горизонты гид. Это руководство было первоначально создано и написано Snacko. На случай, если нам не удастся обновить это руководство, вы можете найти последнее обновление, следуя этому связь.