VITATIO 2

VITATIO 2

40 ratings
By the Power of Macro
By Grimagin
Huge Update: Now introducing a universal script for your resolution! Just follow the steps inside the macro. They are also posted below in this guide.
Soon: A GUI that includes prompts for quick setup.

Follow the Instructions Below to Have the Game Complete Itself by the Click of a Button:

1. Download AHK Here: https://www.autohotkey.com/download/
2. Copy and Paste the Script you see Below into a Document
3. Change the settings to match your resolution
4. Save the file using the extension: .ahk
5. Launch the Script
6. Launch the Game
7. Press Enter
8. Sit Back and Enjoy the Show!

9 (Optional). If for Any Reason the Script does not Run Properly, Press the Number on Your Keyboard that Corresponds to the Level Number After Selection.
   
Award
Favorite
Favorited
Unfavorite
User Notes & Updates
The downloadable link is an update to the previous version of the Vitatio 2 Autoplayer. This will only work, I believe, in a 1920x1080 environment while in windowed mode.

To adjust the setting to be compatible with your display resolution, you'll want to copy and paste the code into notepad yourself. Once you've adjusted the setting under Screen Setup, you can always compile the script to an .exe if desired. Please follow the instructions below:

Macro Instructions
Notes
This script was made with location references using Vitatio 2 in window mode

Macro Use Instructions
1) Download Auto Hot Key if you haven't done so already. https://autohotkey.com/
2) Adjust the values in the Screen Setup section to allow this macro to run for your display
3) Make sure you save the file using .ahk as the file extension
4) Launch Vitatio 2 and wait for it to load
5) Double click on the file for it to run
6) The script should begin to run automatically

Vitatio 2 Instructions
You'll have to watch out for the script not completing the level properly.
You can always run an individual level by itself. First select it, then press the corrisponding number on the keyboard.

Screen Setup
Please adjust the screen resolution and aspect ratio variables to match your current display here.
You need to specify your pixels, ratio, and whether you are full screen.

Control Modifiers
Here you can change the key bindings if you don't like what I have set as default.
Pressing Return will restart to script from the beginning no matter where it's at.
Pressing Escape will close the script at any time. You'll have to reopen the script.
Respectfully pressing the following numbers will complete the corrisponding level after selection:
1, 2, 3, 4, 5, 6, 7, and 8.

Rest of the code
Don't chnage anything else in the script, or it won't work like it's suppose to.
Refined Script
There is no need to download AHK and paste the script into a document. I've refined my script a bit and made it available to launch from an executable. The script will now detect whether or not the game is running. If the game is running, it will autoplay through the game on execution.
I've also included a quick restart (now the return key), a quick escape (ESC), and a progress bar.

Download (Google Drive):
Vitatio 2 Macro[drive.google.com]
AutoHotKey Macro
Download the RAW .ahk text file with instructions

Download (Google Drive)
RAW Vitatio 2 text[drive.google.com]

Or Copy and Paste the Code Below ino a text file and save with .ahk as the extension

; Please Enter your screen resolution in the variables below ; Display is listed in pixels, Resolution is the aspect ratio DisplayX = 1152 DisplayY = 648 ResolutionX = 16 ResolutionY = 9 ; Set DisplayMode to F while playing in Full Screen. Set DisplayMode to W while in Windowed Mode DisplayMode = W ; Control Modifiers QuickRestart = Return QuickEscape = Escape Level1 = 1 Level2 = 2 Level3 = 3 Level4 = 4 Level5 = 5 Level6 = 6 Level7 = 7 Level8 = 8 ; Screen Calculations Horizontal := DisplayX/ResolutionX Vertical := DisplayY/ResolutionY if (DisplayMode == "F") { WindowOffSet = .4028 } else if (DisplayMode == "W") { WindowOffSet = 0 } ; Hotkeys Hotkey, %QuickRestart%, ButtonRestart Hotkey, %QuickEscape%, ButtonEscape Hotkey, %Level1%, FirstLevel Hotkey, %Level2%, SecondLevel Hotkey, %Level3%, ThirdLevel Hotkey, %Level4%, FourthLevel Hotkey, %Level5%, FifthLevel Hotkey, %Level6%, SixthLevel Hotkey, %Level7%, SeventhLevel Hotkey, %Level8%, EighthLevel return ; Script IfWinExist, VITATIO 2 { ScriptStart: WinActivate Sleep 2000 Progress, CB008080 X25 Y25 P0 MouseClick, Left, 4.8667*Horizontal, (2.875-WindowOffSet)*Vertical, 3, 0, Sleep 250 MouseClick, Left, 4.8667*Horizontal, (2.875-WindowOffSet)*Vertical, 3, 0, Sleep 250 Progress, 5 MouseClick, Left, 3.575*Horizontal, (2.7333-WindowOffSet)*Vertical, 3, 0, Sleep 250 MouseClick, Left, 3.575*Horizontal, (2.7333-WindowOffSet)*Vertical, 3, 0, Sleep 250 Progress, 11 Send %Level1% Sleep 3000 Send 0 Progress, 22 Sleep 250 Send %Level2% Sleep 3000 Send 0 Progress, 33 Sleep 250 Send %Level3% Sleep 3000 Send 0 Progress, 44 Sleep 250 Send %Level4% Sleep 3000 Send 0 Progress, 55 Sleep 250 Send %Level5% Sleep 3000 Send 0 Progress, 66 Sleep 250 Send %Level6% Sleep 3000 Send 0 Progress, 77 Sleep 250 Send %Level7% Sleep 3000 Send 0 Progress, 88 Sleep 250 Send %Level8% Sleep 3000 Send 0 Progress, 100 Sleep 250 Progress, off exitapp return } else { MsgBox VITATIO 2 is not yet running. exitapp } ButtonRestart: Reload return ButtonEscape: exitapp return 0:: MouseClick, Left, 10.9722*Horizontal, (8.0833-WindowOffSet)*Vertical, 3, 0, Sleep 250 MouseClick, Left, 10.9722*Horizontal, (8.0833-WindowOffSet)*Vertical, 3, 0, Sleep 250 return FirstLevel: MouseMove, 6.6528*Horizontal, (3.3333-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 3.125*Horizontal, (4.8333-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 9.75*Horizontal, (6.3889-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 9.7639*Horizontal, (3.4167-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 12.8056*Horizontal, (3.3056-WindowOffSet)*Vertical, 0, Sleep 150 return SecondLevel: MouseMove, 6.3194*Horizontal, (3.125-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 3.1667*Horizontal, (4.9861-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 8.0972*Horizontal, (4.9306-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 11.3472*Horizontal, (6.5833-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 12.7222*Horizontal, (6.6944-WindowOffSet)*Vertical, 0, Sleep 150 return ThirdLevel: MouseMove, 4.6111*Horizontal, (2.5417-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 7.8194*Horizontal, (5.375-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 10.9444*Horizontal, (5.9306-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 10.8889*Horizontal, (2.5833-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 7.7778*Horizontal, (4.2222-WindowOffSet)*Vertical, 0, Sleep 150 return FourthLevel: MouseMove, 4.7222*Horizontal, (3.2083-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 3.0694*Horizontal, (6.3194-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 9.3472*Horizontal, (2.0972-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 9.3611*Horizontal, (6.5417-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 12.9306*Horizontal, (7.6944-WindowOffSet)*Vertical, 0, Sleep 150 return FifthLevel: MouseMove, 7.8472*Horizontal, (5.5-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 9.3056*Horizontal, (7.9444-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 11.7083*Horizontal, (4.3056-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 6.3194*Horizontal, (1.875-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 3.0139*Horizontal, (5.5139-WindowOffSet)*Vertical, 0, Sleep 150 return SixthLevel: MouseMove, 1.9583*Horizontal, (2.1111-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 2.4722*Horizontal, (6.0139-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 13.6389*Horizontal, (6.0694-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 14.0694*Horizontal, (2.125-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 8.0278*Horizontal, (7.6389-WindowOffSet)*Vertical, 0, Sleep 150 return SeventhLevel: MouseMove, 8*Horizontal, (7.2361-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 4.1944*Horizontal, (4.9306-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 11.9306*Horizontal, (4.875-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 8*Horizontal, (2.4722-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 8*Horizontal, (4.8611-WindowOffSet)*Vertical, 0, Sleep 150 return EighthLevel: MouseMove, 2.6528*Horizontal, (4.2361-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 4.4306*Horizontal, (7.1389-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 13.4583*Horizontal, (5.625-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 9.7917*Horizontal, (1.6111-WindowOffSet)*Vertical, 0, Sleep 150 MouseMove, 8.0556*Horizontal, (4.8472-WindowOffSet)*Vertical, 0, Sleep 150 return
Thank You!
If you enjoyed the use of this automated script, show your support on Steam.
Leave a like, 5 star review, and/or add a constructive comment below.

10 Comments
oneshotweasel^ 11 May @ 5:12am 
worked perfectly - many thanks! 100% achievements in 5 minutes. :CunningGolfball:
felix 28 Jul, 2018 @ 12:35am 
Worked perfectly, thanks!
PapaGaben 8 Jun, 2018 @ 6:10pm 
not working for me
SuperCactus 20 May, 2018 @ 3:47pm 
When I press Enter; nothing happen... AHK well setup, game loaded, screen resolution and F mode setup, script started.
Grimagin  [author] 8 Jan, 2018 @ 6:05am 
I know it's been awhile, but I just recently learned a new trick. @ Lolo Réel The macro should work for you now.
SuperFluffyKitty 31 May, 2017 @ 10:47am 
+1 that was amazing
Grimagin  [author] 28 May, 2017 @ 8:02pm 
Thanks for the feedback. Glad to know it works.
Grimagin  [author] 17 May, 2017 @ 6:56am 
I was hoping for a one button plays all where the game would play itself from start to finish.
Grimagin  [author] 17 May, 2017 @ 6:53am 
I got this to work for me, as rough as this is. I'm not great with macros, but I am learning.
Screen positioning and mouse jumping was how I thought to do it. I will make an attempt to make the macro more universal for all screen sizes.
Lolo Réel 17 May, 2017 @ 3:43am 
Can You Help Me my screen resolution is 1366x768 the mouse click beside.