Skip to content

Hotkeys Start/Stop? Randomization #4

Open

Description

@Chowderscape

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.

Activity

  1. hukatama024e commented on Apr 7, 2022

    @hukatama024e
    Owner

    Hotkeys is not suppoerted.

  2. hukatama024e commented on Apr 7, 2022

    @hukatama024e
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址