hi i need help, is it possible to make a script that reads the notepad
and shuffle it, for example, my notepad is like this
car
bus
house
bike
then after it reads and saves in a new text file it would be like this
bike
bus
car
house
is it possible to do that? Can someone help me?
help with shuffle text
Re: help with shuffle text
Code: Select all
new := A_ScriptDir "\new.txt"
ControlGetText, text, Edit1, ahk_exe notepad.exe
; Sort, text, Random
Sort, text
FileRecycle, %new%
FileAppend, %text%, %new%
Run, "%new%"
-
- Posts: 9
- Joined: 22 Apr 2021, 16:27
Re: help with shuffle text
thank you bro , nice work!!mikeyww wrote: ↑27 Sep 2021, 15:03Code: Select all
new := A_ScriptDir "\new.txt" ControlGetText, text, Edit1, ahk_exe notepad.exe ; Sort, text, Random Sort, text FileRecycle, %new% FileAppend, %text%, %new% Run, "%new%"