*bump*
tradeigel:
Place your code here and someone will help you.
how to active / put focus a chart window if another is activated?
Solutions with WindowHandle() and ShowWindow() or SetFocus() didn't work for me, may be you can help.
Hi Rosh,
thanks for answering. It's not about a special piece of code.
For example this script:
int start() { Sleep(3000); ActivateCurrentChart(); } void ActivateCurrentChart() { ... }
When this script is run you manually open a new chart and after 3 seconds it should reactivate / reopen / focus the chart (window) the script was attached to.
Which function from user32.dll is appropriate for this kind of purpose?
Can one send a WindowMessage to the chart window to activate it? That's what I tried but since I am very unexperienced when it comes to windowsAPI programming, I am stuck.
Thanks for your feedback.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
how to active / put focus a chart window if another is activated?
Solutions with WindowHandle() and ShowWindow() or SetFocus() didn't work for me, may be you can help.
Thanks for your help.
best regards,
Daniel.