Page 1 of 1

random number generator on mouse+refresh with click

Posted: 18 Apr 2019, 07:04
by doNo
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

Re: random number generator on mouse+refresh with click

Posted: 18 Apr 2019, 07:21
by swagfag
Random
Tooltip
Mousegetpos
Coordmode

are the command u need to learn, and ofc the hotkey tutorial

Re: random number generator on mouse+refresh with click

Posted: 18 Apr 2019, 08:09
by Odlanir

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