I have a list of clickable links on screen.
I would like to randomly choose one of these links.
Any ideas on the best way to do this?
Choosing a random member of a list
- Noitalommi_2
- Posts: 298
- Joined: 16 Aug 2023, 10:58
Re: Choosing a random member of a list
Hi.
You can use the Random function for something like this.
You can use the Random function for something like this.
Code: Select all
#Requires AutoHotkey 2.0
#SingleInstance
Urls := [ "https://www.google.com/",
"https://www.bing.com/",
"https://yahoo.com/"]
F1::MsgBox Urls[Random(1, Urls.Length)] ; press F1 to get a random url
Re: Choosing a random member of a list
Thanks. This gives me some direction. Appreciated
Who is online
Users browsing this forum: No registered users and 14 guests