ghost-cursor icon indicating copy to clipboard operation
ghost-cursor copied to clipboard

How to stop random moves

Open AndriusCTR opened this issue 1 year ago • 5 comments

If I launch it with random moves enabled, and I need to stop those moves, perform manual movement, and continue random moves, how would I go about that?

let cursor = createCursor(page, await getRandomPagePoint(page), true);

// stop random moves, do other stuff

// continue random moves

AndriusCTR avatar Jan 06 '24 12:01 AndriusCTR

It automatically toggles it, while moving the cursor to something. But when u want to pause you can call it manually like: cursor.toggleRandomMove(false);

TheGP avatar Feb 03 '24 06:02 TheGP

I mean what I wrote. I want to manually stop 'random moves process' and then manually restart it 20 lines later, etc.

AndriusCTR avatar Feb 03 '24 18:02 AndriusCTR

I mean what I wrote too, did u read it?

TheGP avatar Feb 04 '24 04:02 TheGP

I mean what I wrote too, did u read it?

Doesn't work for me. It does not stop anything. Random moves continue to move

AndriusCTR avatar Mar 30 '24 18:03 AndriusCTR

Doesn't work for me. It does not stop anything. Random moves continue to move

same

FreemanDan avatar Apr 02 '24 19:04 FreemanDan

Do it after every move or click.

TheGP avatar Apr 25 '24 17:04 TheGP

Do it after every move or click.

This is the answer.

If this PR gets merged, should only have to set it where it needs to change: https://github.com/Xetera/ghost-cursor/pull/132

bvandercar-vt avatar May 09 '24 16:05 bvandercar-vt

Do it after every move or click.

What does that mean? I should repeatedly write cursor.toggleRandomMove(false) all over the code?

If I toggle it OFF then it should stay OFF until I toggle it on or script ends. Who came up with this nonsense logic?

AndriusCTR avatar May 09 '24 17:05 AndriusCTR

I should repeatedly write cursor.toggleRandomMove(false) all over the code?

With the way it's currently written, yes you have to. After every move or click. This PR https://github.com/Xetera/ghost-cursor/pull/132 should fix this so you only have to set cursor.toggleRandomMove once, or as-needed.

The repo owner has been great about merging PRs so keep an eye on this one.

Who came up with this nonsense logic?

Rude and unnecessary

bvandercar-vt avatar May 09 '24 17:05 bvandercar-vt

Who came up with this nonsense logic?

Rude and unnecessary

Necessary until they start thinking what they do and what they write.

AndriusCTR avatar May 09 '24 17:05 AndriusCTR

Fixed in #132

Niek avatar May 09 '24 18:05 Niek

@AndriusCTR It is necessary for you to shut up and remove your GitHub account. P.S. This guy is complaining not only in this repo, instead of helping. I already banned him from mine.

TheGP avatar May 09 '24 19:05 TheGP

@bvandercar-vt much obliged, sir!

TheGP avatar May 09 '24 19:05 TheGP