| View previous topic :: View next topic |
| Author |
Message |
merronmee
Joined: 13 Oct 2009 Posts: 1
|
Posted: Tue Oct 13, 2009 9:07 pm Post subject: How to create string? |
|
|
I'd like to create string (or something like it) which contains letters which are given, or which are randomized. I can make random numbers and letters already, but how I combine them to one string or... something that could be pasted somewhere else? I figured out one solution: write every letter to a file and then read the first line to variable xD
So how I can make string from letters or numbers?
And hey btw, how it is possible to empty file from data? I'm sure there's a better way to do it than just delete file every time and create it again... |
|
| Back to top |
|
 |
mstorey20
Joined: 21 Sep 2009 Posts: 10
|
Posted: Tue Oct 13, 2009 9:20 pm Post subject: |
|
|
Maybe missing something, but you can put strings, variables into strings easily
| Code: |
Random, rand, 1, 10
Test = ABC%rand%TEST
clipboard = %Test% ; copied to clipboard for pasting
MsgBox %Test% |
_________________ StoreyQuickNotes - An AutoHotkey Project for Radiation Oncology
Last edited by mstorey20 on Tue Oct 13, 2009 9:22 pm; edited 1 time in total |
|
| Back to top |
|
 |
MasterFocus
Joined: 08 Apr 2009 Posts: 3035 Location: Rio de Janeiro - RJ - Brasil
|
Posted: Tue Oct 13, 2009 9:21 pm Post subject: |
|
|
Also, this function may be of your interest. _________________ "Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried."
Antonio França
My stuff: Google Profile |
|
| Back to top |
|
 |
txquestor
Joined: 22 Aug 2009 Posts: 294
|
|
| Back to top |
|
 |
|