#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. #SingleInstance force OnExit("ExitFunc") ExitFunc(ExitReason, ExitCode) { if ExitReason not in Logoff,Shutdown { MsgBox, 0x24, SierraChart HotKeys, Exit SierraChart Hotkeys? IfMsgBox, No return 1 } return 0 } ;//-----------------------------------------------------------------------------------------------------// ;// ctrl + win + x to exit <^<#x::ExitApp ;//-----------------------------------------------------------------------------------------------------// #ifWinActive ahk_exe SierraChart_64.exe Mbutton:: ;Chart Values Crosshair Send, {AltDown}3{AltUp} return ;// shift + middle mouse button ^MButton:: ;Global Crosshair Send, {CtrlDown}3{CtrlUp} return ;// win + middle mouse button #MButton:: ;Studies Window Send, {F6} return ;// alt + left mouse button !LButton:: ;Pointer Send, {AltDown}h{AltUp} return ;// ctrl + alt ^!LButton:: ;Save Chart Image to File Send, {CtrlDown}{AltDown}{ShiftDown}1{ShiftUp}{AltUp}{CtrlUp} return ;// alt + mouse wheel up !WheelUp:: ;Bar Spacing Increase Large Send, {PgUp} return ;// alt + mouse wheel down !WheelDown:: ;Bar Spacing Decrease Large Send, {PgDn} return #ifWinActive ;//-----------------------------------------------------------------------------------------------------//