[Help]Small Project

Get help with using AutoHotkey and its commands and hotkeys
Mightykiller
Posts: 6
Joined: 09 Oct 2017, 13:34

[Help]Small Project

20 Oct 2017, 16:47

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 ;)
SirRFI
Posts: 273
Joined: 25 Nov 2015, 16:52

Re: [Help]Small Project

20 Oct 2017, 17:27

Check out GUI. You'll want to Add two Edit controls and a Button. Each of them should have vControlName that You can refer to after Submit or with GuiControlGet. Lastly, You'll want to StrSplit (use StrSplit()) the name list, and for-loop each array element add the thing from second box beforehands when displaying.
Use [code=autohotkey] forum tag to share your code.
Click on (Accept this answer) on top-right part of the post if it has answered your question / solved your problem.
BarbiesScripts

Re: [Help]Small Project

20 Oct 2017, 17:29

Most of the code I took from sjc1000 https://autohotkey.com/board/topic/8481 ... t-boxloop/

Gui, Add, Edit, w200 h200 vEdit
Gui, Add, Edit, w200 h20 vEditt
Gui, Add, Button, w100, OK
Gui, Show
return


ButtonOK:
Gui, Submit, NoHide
Loop, Parse, Edit, `n
{
Line%A_Index% = %A_LoopField% ; Put it into Line%A_Index% ( Line1, Line2, Line3, Line4 etc.)
MsgBox, % Editt " " Line%A_Index%
}
Return
Mightykiller
Posts: 6
Joined: 09 Oct 2017, 13:34

Re: [Help]Small Project

21 Oct 2017, 12:58

Ok so i made this
but its not working...
I need to add something to add the names from vVouch to the ListBox using the Add to list button
And if i press Vouch button i want the project to sendinput a string + name + vReason
And what should i add if i wanted it to sendinput to another running software


Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Mightykiller
Posts: 6
Joined: 09 Oct 2017, 13:34

Re: [Help]Small Project

21 Oct 2017, 13:06

This is the preview of my project.

prev.png
prev.png (19.47 KiB) Viewed 86 times
User avatar
jeeswg
Posts: 2637
Joined: 19 Dec 2016, 01:58
Location: UK

Re: [Help]Small Project

21 Oct 2017, 13:36

In Gui commands, specify vVouch to create variable Vouch, and vvVouch to create variable vVouch.

Return to “Ask For Help”

Who is online

Users browsing this forum: gregster, kczx3 and 36 guests