I deleted the V from the variables and it still does not work. I wanted to try a different method so I wipped up some Input boxes and tried them and they work. I wonder why?
Code:
SetTitleMatchMode, 2
#4::
;Gui, Add, Text,, Please enter the line you want to start at:
;Gui, Add, Text,, Please enter the line you want to end at:
;Gui, Add, Text,, What is the ship to DODAAC?
;Gui, Add, Text,, What are the disposition instructions?
;Gui, Add, Edit, w50 start ym
;Gui, Add, Edit, w50 end
;Gui, Add, Edit, w50 dodaac
;Gui, Add, Edit, w200 dispo r5
;Gui, Add, Button, default ym, OK
;Gui, Show,, Automatic Disposition Provider
;return
;GuiClose:
;ButtonOK:
;Gui, Submit
InputBox, start, Lines, How many lines?
InputBox, dodaac, DODAAC, What is the ship to DODAAC?
InputBox, dispo, Disposition, What are the Disposition Instructions for this piece of equipment?
SendInput !d javascript:document.fldForm.select%start%.focus(){Enter}
Sleep 150
Send U
Sleep 50
SendInput !d javascript:document.fldForm.ship_to_DODAAC_%start%.focus(){Enter}
Sleep 150
Send %dodaac%
Sleep 50
SendInput !d javascript:document.fldForm.PROV_REMARKS_%start%.focus(){Enter}
Sleep 150
Send %dispo%
It must be something in the GUI command that I got wrong. I guess I can work with the Input Boxes but the GUI interface is much nicer.