Multiple input in a GUI
Posted: 30 Sep 2019, 07:26
Hello Everyone,
I have a GUI with an Input called PO number (7digits). And I would like to have the Possibility to add more than only one PO number.
Each column would be 1 PO number.
When you then click on the field close or open it would automatically do this but for each POs number one by one :
Here is what close and open does :
and here is the whole GUI:
[Mod edit: [code][/code] tags added]
If someone could help it would be amazing
Best regards,
Marc
I have a GUI with an Input called PO number (7digits). And I would like to have the Possibility to add more than only one PO number.
Each column would be 1 PO number.
When you then click on the field close or open it would automatically do this but for each POs number one by one :
Here is what close and open does :
Code: Select all
Close:
Gui, submit
if WinExist("Oracle Applications - EBSPROD")
WinActivate
Send {tab}%PONumber% !j !t c {down} {Enter} !v f
Gui Destroy
return
Open:
if WinExist("Oracle Applications - EBSPROD")
WinActivate
Send {tab}%PONumber% !j !t c {down} {down} {Enter} !v f
return
and here is the whole GUI:
Code: Select all
^!g::
Gui, New,
Gui, Add, Text,, Enter the PO number ( 7digits)
Gui, Add, Edit, vPONumber, 7 Digits
Gui, Add, Button, Default gClose, Close
Gui, Add, Button, gOpen, Open
Gui, Add, Button, gCancel, Cancel
Gui, show
return
Close:
Gui, submit
if WinExist("Oracle Applications - EBSPROD")
WinActivate
Send {tab}%PONumber% !j !t c {down} {Enter} !v f
Gui Destroy
return
Open:
if WinExist("Oracle Applications - EBSPROD")
WinActivate
Send {tab}%PONumber% !j !t c {down} {down} {Enter} !v f
return
GuiClose:
GuiEscape:
Gui Destroy
return
If someone could help it would be amazing
Best regards,
Marc