"Thank you.
It seems tricky to be able to 'capture' a right-click. Is there any way to register a 1 or 0 into a variable if a right-click took place?"
Ans: if a right click occurs before the mouse poll, it will register immediately.
You say:
RightMouseDown = _Mousebutton(2)
and use the variable later (before end of loop).
"Also, what sort of delay/wait method would be appropriate?"
Ans: I use _Delay .2 should give user plenty of time to release the mouse. The danger is to execute some code more than once if user still has mouse down on next loop around. You can also try OldMoses method of waiting for release of button in a Sub and Steve has a thing that employs an OldmouseButton varaible.
"If you have a giant loop (lots of things happen) and the only opportunity to escape this loop is at the very end...if the right-click happened prior to polling...is there any way to know this? The specific idea here is to allow the user to draw as many lines as they want, and when finished...just 'right-click'.
Ans: I would check RightMouseDown before continue drawing or you can say
While LeftMouseDown
' and keep polling mouse and checking LeftMouse status, exit when released and drag/draw done or _Mousebutton(2) detected.
Wend
"I get the impression that using right-click for this purpose is probably just not ideal. I had it working yesterday...it picked up the right-click but only if both mouse buttons were pressed. I just ended up admitting defeat."
Ans: I think you are right track! Ken uses it in open Intro screen, good practice.
Coming to forum when stuck is not exactly caving in to defeat.
(Interesting about screen 0 using the character placements for mouse pointer as well. Good to know)
It is!
BTW I didn't try you samples right away, not until ChiaPet's first version. I liked very much first and fith and thought you were close to replicating glider gun creations. The start of using Life for computing ie a Turing Machine. I started with lines but squares or grids might be very interesting, there is probably a perfect spacing for a grid.
It seems tricky to be able to 'capture' a right-click. Is there any way to register a 1 or 0 into a variable if a right-click took place?"
Ans: if a right click occurs before the mouse poll, it will register immediately.
You say:
RightMouseDown = _Mousebutton(2)
and use the variable later (before end of loop).
"Also, what sort of delay/wait method would be appropriate?"
Ans: I use _Delay .2 should give user plenty of time to release the mouse. The danger is to execute some code more than once if user still has mouse down on next loop around. You can also try OldMoses method of waiting for release of button in a Sub and Steve has a thing that employs an OldmouseButton varaible.
"If you have a giant loop (lots of things happen) and the only opportunity to escape this loop is at the very end...if the right-click happened prior to polling...is there any way to know this? The specific idea here is to allow the user to draw as many lines as they want, and when finished...just 'right-click'.
Ans: I would check RightMouseDown before continue drawing or you can say
While LeftMouseDown
' and keep polling mouse and checking LeftMouse status, exit when released and drag/draw done or _Mousebutton(2) detected.
Wend
"I get the impression that using right-click for this purpose is probably just not ideal. I had it working yesterday...it picked up the right-click but only if both mouse buttons were pressed. I just ended up admitting defeat."
Ans: I think you are right track! Ken uses it in open Intro screen, good practice.
Coming to forum when stuck is not exactly caving in to defeat.
(Interesting about screen 0 using the character placements for mouse pointer as well. Good to know)
It is!
BTW I didn't try you samples right away, not until ChiaPet's first version. I liked very much first and fith and thought you were close to replicating glider gun creations. The start of using Life for computing ie a Turing Machine. I started with lines but squares or grids might be very interesting, there is probably a perfect spacing for a grid.
b = b + ...