How do I determine whether the scroll button is pressed or depressed and if so, depress it ! - page 3

 
LEOK:
Then I'm totally confused. Can someone give me the code or post a picture explaining it .... please. !

Open WinSpy / Spy++, select the tool window, then gently press
on the button that stops the scroll. And somewhere in the log there's a message popping up.
The intrusive messages are disabled.

 
jartmailru:
Something's not quite right in your mind...
The graph command reaches you without opening this dialogue.
Andrei, of course the command is received, but you need to get the position of the button. To do that, the dialog box still has to be opened.
 
Zhunko:
Andrei, of course the command goes through, but you need to get the position of the button. You will still have to open the dialog to do this.
Hmmm... Well, tool selection is possible without opening a dialog. Just a message is sent.
 
jartmailru:
Hmmm... Well, tool selection is possible without opening a dialogue. Just a message is sent.

Would you at least give some code text to read and study ?!
 
LEOK:
Would you at least give some text of the code for review and study ?!
SendMessage() and some parameters inside :-)
 
LEOK:

Would you at least give me some code text to read and study?!
Andrei wrote about the choice of tool. You don't need it. On the previous page I've written a list of what to do. You have already found the dialog box.
 

Happy Holidays to all men !

 

Here in the header file there is a command for autoscroll.
Calculated from messages in Spy on the main MT window.
https://www.mql5.com/en/forum/124688

Well, the current state is probably more complicated...

 
You can take the state directly from the toolbar
 
jartmailru:

Here in the header file there is a command for autoscroll.
It's calculated from messages in Spy on the main MT window.
https://www.mql5.com/en/forum/124688

Well, the current state is probably more complicated...

If Leo was attentive, the link to the library is my WinUser32.mqh. It has all the commands and functions needed. Nothing needs to be exported.

jartmailru:
You can get the status directly from the toolbar.
The difficulties of this method have been described above.