random number generator on mouse+refresh with click

Get help with using AutoHotkey and its commands and hotkeys
doNo
Posts: 4
Joined: 18 Apr 2019, 06:56

random number generator on mouse+refresh with click

18 Apr 2019, 07:04

I need a random number generator(1-100) near my mousepointer and everytime i do a leftclick there will be a new refreshed number.
Im a beginner, could anyone help me with this?
Cheers
swagfag
Posts: 2981
Joined: 11 Jan 2017, 17:59

Re: random number generator on mouse+refresh with click

18 Apr 2019, 07:21

Random
Tooltip
Mousegetpos
Coordmode

are the command u need to learn, and ofc the hotkey tutorial
Odlanir
Posts: 531
Joined: 20 Oct 2016, 08:20

Re: random number generator on mouse+refresh with click

18 Apr 2019, 08:09

Code: Select all

#SingleInstance, force
#Persistent
CoordMode, ToolTip, Screen

Random, rnd, 1, 100
SetTimer, Go, 10
return

~LButton::
    Random, rnd, 1, 100
return

Go:
    MouseGetPos, xpos, ypos 
    tooltip , %rnd%, %xpos%, %ypos% 
return

esc::
    ExitApp
____________________________________________________________________________
Windows 10 Pro 64 bit - Autohotkey v1.1.30.01 64-bit Unicode

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Marcosa1020 and 157 guests