Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Life
#15
(08-14-2022, 07:27 PM)james2464 Wrote: Using the suggestions from the replies, here is the latest version:

3 patterns from the Life wiki have been added

And...I added a line drawing option, but due to my low skill level it's kind of a problem.   I tried using 'right click' to exit but I don't fully understand how to apply or capture a right mouse click to get out of a loop.   So i changed it to use the ENTER key.   Anyway I'd like to know how to just use the mouse and right click, if anyone can suggest a solution.   Cheers.


Here is a quick demo for right mouse click:
Code: (Select All)
Do
    Cls
    While _MouseInput: Wend ' poll mouse get all updated except wheel from tiny loop
    If _MouseButton(2) Then ' right clicked may want _delay or wait for mouse button release
        Exit Do
    Else
        Cls
        Print "Screen 0 mouse at:"; _MouseX; ","; _MouseY
    End If
    _Limit 60 ' keeps CPU cool
    _Display ' stops flicher from cls
Loop
Print "Good bye!"

_MouseButton(2) just tells us that the Right mouse button is down when the poll took place.

PS Mouse coordinates in Screen 0 are in Char Cells same as use for Locate and Print. In graphics screen mouse coordinates are in pixels.
b = b + ...
Reply


Messages In This Thread
Life - by james2464 - 08-13-2022, 01:19 AM
RE: Life - by johnno56 - 08-13-2022, 10:36 AM
RE: Life - by James D Jarvis - 08-13-2022, 01:18 PM
RE: Life - by bplus - 08-13-2022, 04:46 PM
RE: Life - by james2464 - 08-13-2022, 05:31 PM
RE: Life - by ChiaPet - 08-14-2022, 12:11 AM
RE: Life - by bplus - 08-13-2022, 10:28 PM
RE: Life - by james2464 - 08-14-2022, 12:36 AM
RE: Life - by ChiaPet - 08-14-2022, 12:41 AM
RE: Life - by james2464 - 08-14-2022, 01:17 AM
RE: Life - by dcromley - 08-14-2022, 02:33 AM
RE: Life - by james2464 - 08-14-2022, 07:21 PM
RE: Life - by james2464 - 08-14-2022, 07:27 PM
RE: Life - by ChiaPet - 08-14-2022, 08:21 PM
RE: Life - by bplus - 08-14-2022, 10:03 PM
RE: Life - by james2464 - 08-15-2022, 12:39 AM
RE: Life - by bplus - 08-15-2022, 01:42 AM
RE: Life - by james2464 - 08-15-2022, 01:27 PM
RE: Life - by Pete - 08-15-2022, 05:25 AM
RE: Life - by james2464 - 08-15-2022, 01:35 PM
RE: Life - by bplus - 08-15-2022, 02:13 PM
RE: Life - by james2464 - 08-16-2022, 01:32 AM
RE: Life - by dcromley - 08-15-2022, 06:49 PM
RE: Life - by james2464 - 08-16-2022, 02:19 AM



Users browsing this thread: 5 Guest(s)