Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,18 @@
command enableButtons v
switch
case v <= 0
put 0 into fld "Field1"
set the enabled of btn "Button1" to true
set the enabled of btn "Button2" to false
break
case v >= 10
put 10 into fld "Field1"
set the enabled of btn "Button1" to false
set the enabled of btn "Button2" to true
break
default
set the enabled of btn "Button1" to true
set the enabled of btn "Button2" to true
put v into fld "Field1"
end switch
end enableButtons

View file

@ -0,0 +1,5 @@
on mouseUp
put field "Field1" into x
add 1 to x
enableButtons x
end mouseUp

View file

@ -0,0 +1,5 @@
on mouseUp
put field "Field1" into x
subtract 1 from x
enableButtons x
end mouseUp

View file

@ -0,0 +1,9 @@
on rawKeyDown k
if numToChar(k) is among the items of "1,2,3,4,5,6,7,8,9,0" then
if (numToChar(k) + the text of me) <= 10 then
enableButtons (numToChar(k) + the text of me)
end if
else if k = 65288 then
pass rawKeyDown
end if
end rawKeyDown