topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday April 24, 2024, 1:45 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,940
    • View Profile
    • Donate to Member
DONE: Order list of phrases or lines in a text file
« on: January 12, 2014, 10:49 AM »
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

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Order list of phrases or lines in a text file
« Reply #1 on: January 12, 2014, 11:00 AM »
Contro, as a friendly tip, in English, we use the word "random" instead of aleatory.

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

Contro

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

http://textmechanic....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,940
    • View Profile
    • Donate to Member
Re: DONE: Order list of phrases or lines in a text file
« Reply #3 on: January 12, 2014, 11:28 AM »
I begin scanning with Random combinations
 :-*

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: DONE: Order list of phrases or lines in a text file
« Reply #4 on: January 12, 2014, 11:34 AM »
Here's a simple AHK script to do what you want:

Code: Autohotkey [Select]
  1. Gui, Margin, 5, 5
  2. Gui, Add, Edit  , xm  ym  w400 h400 vedtText
  3. Gui, Add, Button, xm  y+5 w200 h25  vbtnClipboard gOnClick, &Copy to clipboard
  4. Gui, Add, Button, x+0 yp  w200 h25  vbtnRandomize gOnClick, &Randomize
  5. Return ; End of auto-execute section.
  6.  
  7.  
  8. {
  9.     ExitApp
  10. }
  11. Return
  12.  
  13.  
  14. OnClick:
  15. {
  16.     Gui, Submit, NoHide
  17.     If ( A_GuiControl = "btnRandomize" )
  18.     {
  19.         Sort, edtText, Random
  20.         GuiControl, Text, edtText, % edtText
  21.     }
  22.     Else If ( A_GuiControl = "btnClipboard" )
  23.     {
  24.         Clipboard := edtText
  25.     }
  26. }
  27. Return

Contro

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

 :tellme: :-*


Wonderful results

Splendid
 :P
« Last Edit: January 12, 2014, 11:40 AM by Contro, Reason: Splendid indeed »