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: 2606
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: 366
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 7 Home Premium 64 bit - Autohotkey v1.1.24.02 64-bit Unicode

Return to “Ask For Help”

Who is online

Users browsing this forum: AHKStudent, Bing [Bot], Google [Bot], Odlanir, Sabestian Caine, Wanion and 166 guests