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

Hotkeys Start/Stop? Randomization #4

Open
Chowderscape opened this issue Mar 8, 2022 · 2 comments
Open

Hotkeys Start/Stop? Randomization #4

Chowderscape opened this issue Mar 8, 2022 · 2 comments

Comments

@Chowderscape
Copy link

Does this program have ability to start/stop the script with hotkeys?

ALSO

Does the scripting language allow for randomizing coordinates and times? If so, could you update the reference document.

@hukatama024e
Copy link
Owner

Hotkeys is not suppoerted.

@hukatama024e
Copy link
Owner

Scripting language is C# script with Roslyn for Scripting, so you can use System.Random.
Script example is provided below.

using System;
using System.Threading.Tasks;

await SetCoordinateRandom();

async Task SetCoordinateRandom()
{
	var rnd = new Random();
	int x = rnd.Next( 1000 );
	int y = rnd.Next( 1000 );
	await SetMousePos( x, y );
	await Delay( 100 );
}

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

2 participants