Hi, I am working on a project i am new in Autohotkey Programming.
So my project is about storing names i type in a box and showing them in a list.
So for example i have 2 boxes
First box is for storing names.
And a list to show all names added.
Second box is for the string i want before every name.
And a button to send the names 1 by 1 with the string before every name.
Lets say i typed in the first box : "Mark" "Kavin" "Roger"
And in the second box i typed "Hello "
i would get:
Hello Mark
Hello Kavin
Hello Roger
i just need some help to start
Help me with my project
-
- Posts: 57
- Joined: 09 Oct 2017, 13:34
- Delta Pythagorean
- Posts: 627
- Joined: 13 Feb 2017, 13:44
- Location: Somewhere in the US
- Contact:
Re: Help me with my project
Well, you would get the text from the first Edit, and use a loop with a string:
This will get all of the items in your list edit and the edit you want before all of the items in the list.
If you'd like to add numbers before every item in the list:
Code: Select all
Gui, Submit, NoHide
Loop, Parse, ListEditBox, `n
NewStr .= BeforeEditText " " A_LoopField "`n"
MsgBox, % NewStr
If you'd like to add numbers before every item in the list:
Code: Select all
Gui, Submit, NoHide
Loop, Parse, ListEditBox, `n
NewStr .= A_Index ": " A_LoopField "`n"
MsgBox, % NewStr
[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat
Who is online
Users browsing this forum: No registered users and 3 guests