Code: Select all
Gui, Add, Edit, x32 y30 w80 h30 , AB
Gui, Add, Edit, x142 y30 w80 h30 , 123001
Gui, Add, Button, x372 y20 w100 h30 , Run
Gui, Add, Edit, x32 y90 w190 h30 , AB123001
Gui, Add, Text, x32 y10 w80 h20 , Serial
Gui, Add, Text, x142 y10 w80 h20 , Number
Gui, Add, Text, x32 y70 w190 h20 , Serial & Number
Gui, Show, w488 h317, Untitled GUI
return
GuiClose:
ExitApp
what I want to do in the code,
When I press the F2 key
AB123001 will notify you with message
when I press the F2 key again
the top value will increase by 1
AB123002 will inform you with the message.
when I press the F2 key again
AB123003 You will notice with the message ..
So every time you press the F2 key continuously, the previous digit will increase by 1 and continue.
for example;
AB123001
AB123002
AB123003
AB123004
AB123005
AB123006
AB123007
AB123008
AB123009
AB123010
AB123011. .. ..... as..
Pressing the F2 key will continue incrementing by 1. he will not forget his last number. it will resume where we left it when we press F2 again.
Thank you in advance for your help.