Code: Select all
on mouseUp
put field "scriptHolder" into theScript
repeat with x = 2 to 118
set the script of the btn x to theScript
end repeat
end mouseUp
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on mouseUp
put field "scriptHolder" into theScript
repeat with x = 2 to 118
set the script of the btn x to theScript
end repeat
end mouseUp
Code: Select all
on mouseUp
put fld "scriptHolder" into theScript
repeat with x = 2 to min(118,the num of btns)
set script of btn x to theScript
end repeat
end mouseUp
Code: Select all
get the long id of btn 2
Code: Select all
get the long id of btn 44
Code: Select all
repeat with i = 1 to 100
set the name of the template button to "b"& i
create button
end repeat
Code: Select all
on mouseUp
global gIconName,gIconNumber
put the short name of img id (the icon of me) into gIconName
put the short name of me into gIconNumber
put "" into char 1 of gIconNumber
add 0 to gIconNumber -- force to number?
pass mouseUp
end mouseUp
Code: Select all
on mouseUp
global gIconName, gIconNumber
put the short name of img id (the icon of me) into gIconName
put char 2 to -1 of the short name of me into gIconNumber # <--
pass mouseUp
end mouseUp
melristau wrote:How to purge?
Code: Select all
on mouseUp
lock screen; lock messages
repeat with i=999 down to 119
if there is a btn ("x"&i) then delete btn ("x"&i)
end repeat
unlock screen; unlock messages
end mouseUp
Code: Select all
if there is no btn ("x"&i) then create btn ("x"&i)