I'm trying to build a gui with some edit controls. I'm also using a barcode scanner which after
the scan automatically presses the enter key.
After this enter, I would like to move to the next edit control automatically.
Any ideas ?
Here's what I have so far:
Code: Select all
Gui, Font, S12 CDefault Bold, Verdana
Gui, Add, Text, x12 y12 w120 h20 , TSI automatisch
Gui, Font, S8 CDefault Bold, Verdana
Gui, Add, Text, x12 y42 w80 h20 , Inpaktafel:
Gui, Add, Edit, x93 y40 w39 h20 , 1
Gui, Add, Text, x33 y72 w50 h20 , PickID
Gui, Add, Text, x93 y72 w80 h20 , Vervoerder
Gui, Add, Text, x183 y72 w50 h20 , Aantal
Gui, Add, Text, x243 y72 w52 h20 , Eenheid
Gui, Add, Edit, x33 y92 w50 h20 gMyPickID vPickID, ; <---------- When an enter is pressed move to next edit control
Gui, Add, Edit, x93 y92 w80 h20 , DHL
Gui, Add, Edit, x193 y92 w20 h20 +Center, 1
Gui, Add, Edit, x243 y92 w50 h20 , Collo
; Generated using SmartGUI Creator 4.0
Gui, Show, x127 y87 h687 w479, New GUI Window
Return
GuiClose:
ExitApp
MyPickID: ; <------- I was thinking something like this as an alternative sollution, but it doesn't work.
If (StrLen(PickID) > 4)
Send {tab}
return