Is there a way to make the entries go left to right and not top to bottom?
This is the current script. Is there an easier way to do this but still keep it easy for my beginner eyes to follow the flow thru the script?
Code:
;gui to collect downtime data for excel sheet
Gui, Add, Text, x122 y0 w230 h20 , What is the sate of the machine?
; once mach down button is pressed start timer
Gui, Add, Button, x136 y20 w40 h30,red.bmp, Mach Down
; once mach up button is pressed end timer and record ttl time down.
Gui, Add, Button, x226 y20 w40 h30,green.bmp, Mach Up
Gui, Add, Text, x6 y70 w80 h20 , Operator
Gui, Add, ComboBox, voperator,x6 y110 w110 h250, |OPERATOR#1|OPERATOR#2|OPERATOR#3|OPERATOR#4|OPERATOR#5|OPERATOR#6|OPERATOR#7|OPERATOR#8|OPERATOR#9|OPERATOR#10|OPERATOR#11|OPERATOR#12|OPERATOR#13|OPERATOR#14|OPERATOR#15|OPERATOR#16|OPERATOR#17|OPERATOR#18|OPERATOR#19|OPERATOR#20|
Gui, Add, Text, x126 y70 w60 h30 , Is machine runable?
Gui, Add, CheckBox, x126 y100 w60 h30 , Yes
Gui, Add, CheckBox, x126 y130 w60 h30 , No
Gui, Add, Text, x216 y70 w250 h30 , What is the problem with the machine?
Gui, Add, ComboBox, vproblem, x216 y110 w250 h240 , |Jam In Stacker Section|Jam In Transport|Poor Print Quality|Broken Augger|Broken Beater|Broken Gate|Loud Noise|Broken Belt
Gui, Add, Text, x6 y220 w60 h20 , Tech Name
Gui, Add, DropDownList, vtech, x6 y250 w60 h100 +Center, |CLL|RB|DH|TC|BT|BE
Gui, Add, Text, x126 y180 w60 h30 , Is machine runable?
Gui, Add, CheckBox, x126 y210 w60 h30 , Yes
Gui, Add, CheckBox, x126 y240 w60 h30 , No
Gui, Add, Text, x216 y220 w250 h20 , What was done to fix the problem?
Gui, Add, ComboBox, vfix, x216 y250 w250 h110 , |Dirty Sensor|Cleaned Print Head|Replaced Augger|Replaced Beater|Gate was|Made new belt|replaced pully|
Gui, Add, Button, x346 y330 , Save
Gui, Add, Button, x216 y330 w100 h30 , Cancel
; Done with gui
Gui, Show, x131 y91 h374 w481, Downtime
Return
ButtonCancel:
ExitApp
ButtonSave:
Gui, Submit, NoHide
FileAppend, %operator%`n, operator.csv
FileAppend, %problem%`n, operator.csv
FileAppend, %tech%`n, operator.csv
FileAppend, %fix%`n, operator.csv
return
I have tried a couple of ways to get around my problems but i need help so i have posted my code and my problems to see if any1 has suggestions.
Problems
1. I see text in my drop down boxes example (x6 y110 w110 h250, )
2. Need the entries in operator.csv to go left to right not up and down.
3. After searching i still don't understand why my mach down and mach up buttons are not in red and green. in the directory i saved the colors red.bmp and green.bmp
4. At the end when i do my fileappends can i do them all in one line of code like
Code:
FileAppend, %operator%, %problem%, %tech%, %fix%`n, operator.csv
As always ty to all for reading and taking the time to help.