Picking a random line from a text file to clipboard

Post here if you need help using Actiona
Post Reply
6badboy9
Posts: 2
Joined: 04 Jun 2021, 22:34

Picking a random line from a text file to clipboard

Post by 6badboy9 »

Hi, I was wondering if it is possible to add a line that picks a random line from a list or text file and copy it to clipboard? I am really noobie to coding, I would appreciate if someone could help me with this if its even possible, Thanks.

francois
Posts: 370
Joined: 18 Oct 2010, 10:33
Location: France

Re: Picking a random line from a text file to clipboard

Post by francois »

An example attached .

Choose the file in the first action :

Code: Select all

file_= "C:/temp/rnd/fichier.txt"
rnd.zip
(1.57 KiB) Downloaded 5 times

6badboy9
Posts: 2
Joined: 04 Jun 2021, 22:34

Re: Picking a random line from a text file to clipboard

Post by 6badboy9 »

ty so much man, I really appreciate it

Post Reply