(11-22-2022, 12:20 AM)james2464 Wrote: Can someone verify if I understand this line correctly? The overall routine makes sense but this particular line was interesting.
I'm not used to this exact phrasing...but I believe it means literally that if mb is true and not equal to oldmb? In other words if mb <> oldmb ? Sorry for the sidetracking questionCode: (Select All)If mb And Not oldmb then
This is basically the same as:
IF mb <> 0 AND NOT oldmb <> 0 THEN...
If YourButtonIsDownNow AND YourButtonWasNOTdownPreviously THEN....
It's not quite the same as mb <> oldmb. For example:
mb = 0, oldmb = -1 -- Your mouse button is now up, but it was down last loop.... Is it a click this loop??
See the difference in the two?
You're basically checking: IF mb = -1 AND oldmb = 0 THEN...