out of despair I seek help here- I tried and searched a lot.
I declare a Variable with Ctrl+Mouseclick (which works just fine) and store that value.
Problem is, if I left-click (NOT a ctrl-click, normal left-click) on the chart after I have Ctrl-clicked, this value resets. Why is that and how can I store that value in my variable (or anywhere else)?
Code: Select all
[ProcessMouseEvents = True];
variables:
testvar (0);
if (MouseClickCtrlPressed = True) then begin
testvar = MouseClickBarNumber;
end;
print(MouseClickCtrlPressed," ",testvar);