Page 1 of 1
Picking a random line from a text file to clipboard
Posted: 04 Jun 2021, 22:37
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.
Re: Picking a random line from a text file to clipboard
Posted: 05 Jun 2021, 09:25
by francois
An example attached .
Choose the file in the first action :
- rnd.zip
- (1.57 KiB) Downloaded 183 times
Re: Picking a random line from a text file to clipboard
Posted: 05 Jun 2021, 22:33
by 6badboy9
ty so much man, I really appreciate it
Re: Picking a random line from a text file to clipboard
Posted: 27 Jun 2021, 04:17
by 6badboy9
Hello again, i have found a lil issue when running in ubuntu, doesnt occur on windows, it copies nothing on last line even tho there is a text on that line, for example on this screenshot I have added shows that line 5 comes empty, would appreciate if you can find any workaround for this, Thanks alot already for the code.