This file contains the script for launching my strategies on a 6 monitor setup.
The strategies are visible in the strategies tab in the top left (in the Control Center window - Strategies Tab) of the bottom right screen.
Save this in a folder called AHK under DOCUMENTS
Call the file Start Hot Keys Pgm.ahk
#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.
SetKeyDelay 10 ;Set the keyboard time delay to 10 milliseconds
CoordMode, Mouse, Screen ;Set all mouse clicks to be absolute positioning to the screen & not relative.
;Buy Dots
^!A::
WinActivate, Control Center - Strategies ;Activate Control Center
WinWaitActive, Control Center - Strategies ;Wait until the NT Control Center window is displayed
Sleep, 100 ;Wait 100 milliseconds
Click 2169, 360 ;Left click on the Strategies Tab
Sleep, 100 ;Wait 100 milliseconds ;SELECT ALL STRATEGIES & THEN ENABLE
Click 1990, 75 ;Left click on the Top Strategy
Sleep, 100 ;Wait 200 milliseconds
Click right 1990, 75 ;Right Click on the Top Strategy
Sleep, 100 ;Wait 200 milliseconds
Click 2040, 175 ;Left Click on Enable Option
Return
;Kill Dots
^!B::
WinActivate, Control Center - Strategies ;Activate Control Center
WinWaitActive, Control Center - Strategies ;Wait until the NT Control Center window is displayed
Sleep, 100 ;Wait 100 milliseconds
Click 2169, 360 ;Left click on the Strategies Tab
Sleep, 100 ;Wait 100 milliseconds ;SELECT ALL STRATEGIES & THEN ENABLE
Click 1990, 75 ;Left click on the Top Strategy
Sleep, 100 ;Wait 100 milliseconds
Click right 1990, 75 ;Right Click on the Top Strategy
Sleep, 100 ;Wait 100 milliseconds
Click 2040, 195 ;Left Click on Enable Option
Return
;Sell Dots
^!C::
WinActivate, Control Center - Strategies ;Activate Control Center
WinWaitActive, Control Center - Strategies ;Wait until the NT Control Center window is displayed
Sleep, 100 ;Wait 100 milliseconds
Click 2169, 360 ;Left click on the Strategies Tab
Sleep, 100 ;Wait 100 milliseconds ;SELECT ALL STRATEGIES & THEN ENABLE
Click 1990, 95 ;Left click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click right 1990, 95 ;Right Click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click 2040, 195 ;Left Click on Enable Option
Return
;Kill Dots
^!D::
WinActivate, Control Center - Strategies ;Activate Control Center
WinWaitActive, Control Center - Strategies ;Wait until the NT Control Center window is displayed
Sleep, 100 ;Wait 100 milliseconds
Click 2169, 360 ;Left click on the Strategies Tab
Sleep, 100 ;Wait 100 milliseconds ;SELECT ALL STRATEGIES & THEN ENABLE
Click 1990, 95 ;Left click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click right 1990, 95 ;Right Click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click 2040, 215 ;Left Click on Enable Option
Return
;Buy 21
^!E::
WinActivate, Control Center - Strategies ;Activate Control Center
WinWaitActive, Control Center - Strategies ;Wait until the NT Control Center window is displayed
Sleep, 100 ;Wait 100 milliseconds
Click 2169, 360 ;Left click on the Strategies Tab
Sleep, 100 ;Wait 100 milliseconds ;SELECT ALL STRATEGIES & THEN ENABLE
Click 1990, 115 ;Left click on the Strategy
Sleep, 100 ;Wait 200 milliseconds
Click right 1990, 115 ;Right Click on the Strategy
Sleep, 100 ;Wait 200 milliseconds
Click 2040, 215 ;Left Click on Enable Option
Return
;Kill 21
^!F::
WinActivate, Control Center - Strategies ;Activate Control Center
WinWaitActive, Control Center - Strategies ;Wait until the NT Control Center window is displayed
Sleep, 100 ;Wait 100 milliseconds
Click 2169, 360 ;Left click on the Strategies Tab
Sleep, 100 ;Wait 100 milliseconds ;SELECT ALL STRATEGIES & THEN ENABLE
Click 1990, 115 ;Left click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click right 1990, 115 ;Right Click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click 2040, 230 ;Left Click on Enable Option
Return
;Sell 21
^!G::
WinActivate, Control Center - Strategies ;Activate Control Center
WinWaitActive, Control Center - Strategies ;Wait until the NT Control Center window is displayed
Sleep, 100 ;Wait 100 milliseconds
Click 2169, 360 ;Left click on the Strategies Tab
Sleep, 100 ;Wait 100 milliseconds ;SELECT ALL STRATEGIES & THEN ENABLE
Click 1990, 135 ;Left click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click right 1990, 135 ;Right Click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click 2040, 230 ;Left Click on Enable Option
Return
;Kill 21
^!H::
WinActivate, Control Center - Strategies ;Activate Control Center
WinWaitActive, Control Center - Strategies ;Wait until the NT Control Center window is displayed
Sleep, 100 ;Wait 100 milliseconds
Click 2169, 360 ;Left click on the Strategies Tab
Sleep, 100 ;Wait 100 milliseconds ;SELECT ALL STRATEGIES & THEN ENABLE
Click 1990, 135 ;Left click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click right 1990, 135 ;Right Click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click 2040, 255 ;Left Click on Enable Option
Return
;Buy ST
^!J::
WinActivate, Control Center - Strategies ;Activate Control Center
WinWaitActive, Control Center - Strategies ;Wait until the NT Control Center window is displayed
Sleep, 100 ;Wait 100 milliseconds
Click 2169, 360 ;Left click on the Strategies Tab
Sleep, 100 ;Wait 100 milliseconds ;SELECT ALL STRATEGIES & THEN ENABLE
Click 1990, 155 ;Left click on the Strategy
Sleep, 100 ;Wait 200 milliseconds
Click right 1990, 155 ;Right Click on the Strategy
Sleep, 100 ;Wait 200 milliseconds
Click 2040, 255 ;Left Click on Enable Option
Return
;Kill ST
^!K::
WinActivate, Control Center - Strategies ;Activate Control Center
WinWaitActive, Control Center - Strategies ;Wait until the NT Control Center window is displayed
Sleep, 100 ;Wait 100 milliseconds
Click 2169, 360 ;Left click on the Strategies Tab
Sleep, 100 ;Wait 100 milliseconds ;SELECT ALL STRATEGIES & THEN ENABLE
Click 1990, 155 ;Left click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click right 1990, 155 ;Right Click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click 2040, 275 ;Left Click on Enable Option
Return
;Sell ST
^!L::
WinActivate, Control Center - Strategies ;Activate Control Center
WinWaitActive, Control Center - Strategies ;Wait until the NT Control Center window is displayed
Sleep, 100 ;Wait 100 milliseconds
Click 2169, 360 ;Left click on the Strategies Tab
Sleep, 100 ;Wait 100 milliseconds ;SELECT ALL STRATEGIES & THEN ENABLE
Click 1990, 175 ;Left click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click right 1990, 175 ;Right Click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click 2040, 275 ;Left Click on Enable Option
Return
;Kill ST
^!M::
WinActivate, Control Center - Strategies ;Activate Control Center
WinWaitActive, Control Center - Strategies ;Wait until the NT Control Center window is displayed
Sleep, 100 ;Wait 100 milliseconds
Click 2169, 360 ;Left click on the Strategies Tab
Sleep, 100 ;Wait 100 milliseconds ;SELECT ALL STRATEGIES & THEN ENABLE
Click 1990, 175 ;Left click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click right 1990, 175 ;Right Click on the Strategy
Sleep, 100 ;Wait 100 milliseconds
Click 2040, 295 ;Left Click on Enable Option
Return
;Move chart up
^!N::
WinActivate, Chart - 200
vol ;Activate Control Center
WinWaitActive, Chart - 200 vol ;Wait until the NT Chart window is displayed
Sleep, 100 ;Wait 100 milliseconds
Send {lctrl down}
Send {lbutton down}
MouseMove, 0, -100, 1, R
Sleep 100
Send {lbutton up}
Send {lctrl up}
MouseMove, 0, 100, 1, R
Return
;Move chart down
^!Q::
WinActivate, Chart - 200 vol ;Activate Control Center
WinWaitActive, Chart - 200 vol ;Wait until the NT Chart window is displayed
Sleep, 100 ;Wait 100 milliseconds
Send {lctrl down}
Send {lbutton down}
MouseMove, 0, 100, 1, R
Sleep 100
Send {lbutton up}
Send {lctrl up}
MouseMove, 0, -100, 1, R
Return
;Capture and save a pic
^!S::
WinActivate, Chart - 200 vol ;Activate Control Center
WinWaitActive, Chart - 200 vol ;Wait until the NT Chart window is displayed
Sleep, 1000 ;Wait 100 milliseconds
Send, {Enter 1}
Return
;GOTO Chart Window and open indicator window
^T::
WinActivate, Chart - 200 vol ;Activate Control Center
WinWaitActive, Chart - 200 vol ;Wait until the NT Chart window is displayed
Sleep, 1000 ;Wait 100 milliseconds
Click 120, 120 ;Left click
Send, ^i ; Open indicator window
Return