MacroRecoderCsScript icon indicating copy to clipboard operation
MacroRecoderCsScript copied to clipboard

Hotkeys Start/Stop? Randomization

Open Chowderscape opened this issue 3 years ago • 2 comments

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.

Chowderscape avatar Mar 08 '22 18:03 Chowderscape

Hotkeys is not suppoerted.

hukatama024e avatar Apr 07 '22 09:04 hukatama024e

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

hukatama024e avatar Apr 07 '22 09:04 hukatama024e