It have some controls, like this demo-script.
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
#SingleInstance Force
; #MaxThreadsPerHotkey 2
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Gui 1: Default
Gui Color, White
Gui Font, s20 cBlack Normal, Verdana
Gui Add, Text, x50 y100 w120 h40 vText1, Text1 .:
Gui Font, s24 cGreen Bold, Verdana
Gui Add, Edit, x180 y80 w280 h50 +Left vInp1
Gui Font, s20 cBlack Normal, Verdana
Gui Add, Text, x50 y175 w120 h40 vText2, Text2 .:
Gui Font, s24 cGreen Bold, Verdana
Gui Add, Edit, x180 y155 w280 h50 +Left vInp2
Gui Font, s20 cBlack Normal, Verdana
Gui Add, Text, x50 y250 w120 h40 vText3, Text3 .:
Gui Font, s24 cGreen Bold, Verdana
Gui Add, Edit, x180 y230 w280 h50 +Left vInp3
Gui Font, s20 cBlack Bold, Verdana
Gui Add, Button, x220 y350 w200 h150 vRegistrera, Registrera!
Gui Show, x131 y91 h584 w625, Test window
Return
GuiClose:
ExitApp
And if the third field ends with Enter, I want to get focus on the button.
A similar function as the TAB button, but with the ability to skip any control field.
Is there any easy way to jump with Enter in AHK-script?