Setvirtualresolution(640,480)
ResetTimer()
//Create Edit Box 1, it defaults to active
CreateEditBox(1)
SetEditBoxPosition(1,10,50)
//Create Edit Box 2, set it to inactive
CreateEditBox(2)
SetEditBoxPosition(2,10,80)
SetEditBoxActive(2,0)
Repeat
If GetEditBoxActive(2)=0
Print ("Edit Box 2 is Inactive")
EndIf
Sync()
Until Timer()>12
End
Help make AGK better by submitting an example for this command! (All examples are subject to approval)
Setvirtualresolution(640,480) ResetTimer() //Create Edit Box 1, it defaults to active CreateEditBox(1) SetEditBoxPosition(1,10,50) //Create Edit Box 2, set it to inactive CreateEditBox(2) SetEditBoxPosition(2,10,80) SetEditBoxActive(2,0) Repeat If GetEditBoxActive(2)=0 Print ("Edit Box 2 is Inactive") EndIf Sync() Until Timer()>12 End