I create and edit box and put the value 10 in it and then hit enter, but the GetTextInputCompleted() statement does not get executed so I don\'t get to read the text input? What am I doing wrong or do I need to check some other way?
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
global incyval as integer
CreateEditBox(1)
SetEditBoxSize(1,100,30)
SetEditBoxPosition(1,600,600)
SetEditBoxTextSize(1,15)
rem ** assign focus to the edit box ***
SetEditBoxFocus(1,1)
sync()
If GetTextInputCompleted() = 1
print(\"after gettextinputcompleted\")
sync()
sleep(500)
incyval = val(GetEditBoxText(1))
endif