How can I use kotkeys in my plugin code?

Created at 26 Dec 2024, 16:44
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
CT

ctid5137747

Joined 27.12.2022

How can I use kotkeys in my plugin code?
26 Dec 2024, 16:44


Hi Guys,

How can I use hotkeys in my code in my plugin? Normally in my bots I use Chart.AddHotkey but it's not available in the plugin API..

 

Thanks D.

 


@ctid5137747
Replies

PanagiotisCharalampous
27 Dec 2024, 08:47

Hi there,

Here you go

(ChartManager.ActiveFrame as ChartFrame).Chart.AddHotkey()

Best regards,

Panagiotis


@PanagiotisCharalampous

ctid5137747
27 Dec 2024, 14:55

RE: How can I use kotkeys in my plugin code?

PanagiotisCharalampous said: 

Hi there,

Here you go

(ChartManager.ActiveFrame as ChartFrame).Chart.AddHotkey()

Best regards,

Panagiotis

Thanks a lot, it works ;-)


@ctid5137747

ctid5137747
27 Dec 2024, 14:55

RE: How can I use kotkeys in my plugin code?

PanagiotisCharalampous said: 

Hi there,

Here you go

(ChartManager.ActiveFrame as ChartFrame).Chart.AddHotkey()

Best regards,

Panagiotis

Thanks a lot, it works ;-)


@ctid5137747