My script looks like:
Code: Select all
#b::
LaunchGenerator:
SetBatchLines, -1
Gui, Destroy
CoordMode, Mouse, Screen
Gui,Font,s9,Arial
Gui, Add, Text,, Options
Gui, Add, CheckBox, vop1, Option1
Gui, Add, CheckBox, vop2, Option2
Gui, Add, CheckBox, vop3, Option3
Gui, Add, Text, ys, More options:
Gui, Add, CheckBox, vop4, Option4
Gui, Add, CheckBox, vop5, Option5
Gui, Add, CheckBox, vop6, Option6
Gui, Add, Button, xs yp+50 w60 h40 gponfirm, Copy
MouseGetPos, coordx, coordy
coordy := coordy-350
; coordx := coordx-140
Gui, Show, x%coordx% y%coordy%
; Gui, Show, AutoSize Center
Return
ponfirm:
Gui, Submit
Clipboard =
if (op1 =1)
text1 := "one, "
if (op2 =1)
text2 := "two, "
if (op3 =1)
text3 := "three, "
if (op1 =1 or op2 =1 or op3 =1)
text7:= "`r`n - First half: "
if (op4 =1)
text4 := "four, "
if (op5 =1)
text5 := "five, "
if (op6 =1)
text6 := "six, "
if (op4 =1 or op5 =1 or op6 =1)
text8:= "`r`n - Other half: "
text9:= "Things chosen:"
clipboard := text9 text7 text1 text2 text3 text8 text4 text5 text6
ClipWait, %clipboard%
text1 :=
text2 :=
text3 :=
text4 :=
text5 :=
text6 :=
text7 :=
text8 :=
Text9 :=
Return
So I need to add comas between options as there will be loads of them and that seems to be easiest way to do it. This way I get a coma at the end of each line
Could anybody see the way to manipulate the ending of each line? Say: to have ";" at the end of a first one instead of coma? I was tryng to add {backspace} here and there, didnt work.
I would appreaciate any ideas here.
Thanks!