DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: DONE: Order list of phrases or lines in a text file  (Read 7,847 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
DONE: Order list of phrases or lines in a text file
« on: January 12, 2014, 04:49 PM »
Order list of phrases or lines in a text file..... in aleatory order

:-*

I am using PSPAD that gives the possibility to order lines alphabetically or reverse alphabetically, but i wish orden in aleatory order

Is it this possible ?

Best Regards
:P

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: DONE: Order list of phrases or lines in a text file
« Reply #1 on: January 12, 2014, 05:00 PM »
Contro, as a friendly tip, in English, we use the word "random" instead of aleatory.

http://textmechanic.com/Sort-Text-Lines.html

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: DONE: Order list of phrases or lines in a text file
« Reply #2 on: January 12, 2014, 05:15 PM »
Contro, as a friendly tip, in English, we use the word "random" instead of aleatory.

http://textmechanic.com/Sort-Text-Lines.html

Oído cocina (Understood). It's a good tool textmechanic.com like random.org,
But I would like a desktop software.

Is it possible.
I am scanning the web and find nothing now for text files in psdpd environments (in excel is possible...)

Best Regards

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: DONE: Order list of phrases or lines in a text file
« Reply #3 on: January 12, 2014, 05:28 PM »
I begin scanning with Random combinations
:-*

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: DONE: Order list of phrases or lines in a text file
« Reply #4 on: January 12, 2014, 05:34 PM »
Here's a simple AHK script to do what you want:

Code: (autohotkey)
Gui, Margin, 5, 5
Gui, Add, Edit  , xm  ym  w400 h400 vedtText
Gui, Add, Button, xm  y+5 w200 h25  vbtnClipboard gOnClick, &Copy to clipboard
Gui, Add, Button, x+0 yp  w200 h25  vbtnRandomize gOnClick, &Randomize
Gui, Show
Return ; End of auto-execute section.


GuiClose:
GuiEscape:
{
    ExitApp
}
Return


OnClick:
{
    Gui, Submit, NoHide
    If ( A_GuiControl = "btnRandomize" )
    {
        Sort, edtText, Random
        GuiControl, Text, edtText, % edtText
    }
    Else If ( A_GuiControl = "btnClipboard" )
    {
        Clipboard := edtText
    }
}
Return

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: DONE: Order list of phrases or lines in a text file
« Reply #5 on: January 12, 2014, 05:37 PM »
Running to try skwire

:tellme: :-*


Wonderful results

Splendid
:P
« Last Edit: January 12, 2014, 05:40 PM by Contro »

Original address: https://www.donationcoder.com/forum/index.php?topic=37002.0