Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to stop random moves #113

Closed
AndriusCTR opened this issue Jan 6, 2024 · 13 comments
Closed

How to stop random moves #113

AndriusCTR opened this issue Jan 6, 2024 · 13 comments

Comments

@AndriusCTR
Copy link

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

@TheGP
Copy link
Contributor

TheGP commented Feb 3, 2024

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);

@AndriusCTR
Copy link
Author

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

@TheGP
Copy link
Contributor

TheGP commented Feb 4, 2024

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

@AndriusCTR
Copy link
Author

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

@FreemanDan
Copy link

FreemanDan commented Apr 2, 2024

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

same

@TheGP
Copy link
Contributor

TheGP commented Apr 25, 2024

Do it after every move or click.

@bvandercar-vt
Copy link
Contributor

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: #132

@AndriusCTR
Copy link
Author

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?

@bvandercar-vt
Copy link
Contributor

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 #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

@AndriusCTR
Copy link
Author

Who came up with this nonsense logic?

Rude and unnecessary

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

@Niek
Copy link
Collaborator

Niek commented May 9, 2024

Fixed in #132

@Niek Niek closed this as completed May 9, 2024
@TheGP
Copy link
Contributor

TheGP commented May 9, 2024

@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
Copy link
Contributor

TheGP commented May 9, 2024

@bvandercar-vt much obliged, sir!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants