Picking a random line from a text file to clipboard
Picking a random line from a text file to clipboard
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
An example attached .
Choose the file in the first action :
Choose the file in the first action :
Code: Select all
file_= "C:/temp/rnd/fichier.txt"
Re: Picking a random line from a text file to clipboard
ty so much man, I really appreciate it
Re: Picking a random line from a text file to clipboard
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.
- Attachments
-
- 06ad2f8bab948155464795ad18df520d.png (9.26 KiB) Viewed 2692 times