Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- ; Start VM
- SetTitleMatchMode, 1
- IfWinNotExist, Workspace
- {
- Run, "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm Workspace
- }
- ; Move VM windows to the right screens
- WinWait, Workspace [Running] - Oracle VM VirtualBox : 1
- WinRestore, Workspace [Running] - Oracle VM VirtualBox : 1
- WinMove, Workspace [Running] - Oracle VM VirtualBox : 1, ,1366, -256
- WinMaximize, Workspace [Running] - Oracle VM VirtualBox : 1
- WinWait, Workspace [Running] - Oracle VM VirtualBox : 2
- WinRestore, Workspace [Running] - Oracle VM VirtualBox : 2
- WinMove, Workspace [Running] - Oracle VM VirtualBox : 2, ,2646, -256
- WinMaximize, Workspace [Running] - Oracle VM VirtualBox : 2
- ; Start browser
- SetTitleMatchMode, 2
- IfWinNotExist, Mozilla Firefox
- {
- run, https://homepage
- WinWait, Mozilla Firefox
- WinRestore, Mozilla Firefox
- WinMove, Mozilla Firefox, , 0, 0
- WinMaximize, Mozilla Firefox
- }
- ; Clear nonsense
- IfWinExist, Skype
- {
- ; WinClose actually closes skype, this allows skype to minimize itself to the tray instead
- PostMessage, 0x112, 0xF060,,, Skype ; 0x112 = WM_SYSCOMMAND, 0xF060 = SC_CLOSE
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement