Support Board
Date/Time: Sun, 24 Nov 2024 03:07:31 +0000
Post From: Changing Chartbooks with hotkey ?
[2024-07-01 05:38:47] |
joshtrader - Posts: 488 |
Anyone else looking for this, here's an example of switching between 3 chartbooks which start with the letters 'E' (pressing the Pause key), 'P' (pressing the Scroll lock key), and 'I' (pressing the Print screen key). Modify as needed for your use case. Set the title of your SC instance using Global=>General=>GUI=>Custom Title Bar name. In this case I set it to "Sierra Chart Denali": Thanks to JohnR who basically wrote this above, but this is a full working script using autohotkey v2. #Requires AutoHotkey v2.0 #SingleInstance Force SetTitleMatchMode 1 Pause:: { if WinExist("Sierra Chart Denali") { WinActivate ; Sleep 10 SendInput "!b" Sleep 10 SendInput "e" } } ScrollLock:: { if WinExist("Sierra Chart Denali") { WinActivate ; Sleep 10 SendInput "!b" Sleep 10 SendInput "p" } } PrintScreen:: { if WinExist("Sierra Chart Denali") { WinActivate ; Sleep 10 SendInput "!b" Sleep 10 SendInput "i" } } |