Code: Select all
on mouseup
put "this is an example of writing text to a file" into URL ("file:"&specialfolderpath("Desktop")&"/test.txt")
end mouseup
--Sefro
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
on mouseup
put "this is an example of writing text to a file" into URL ("file:"&specialfolderpath("Desktop")&"/test.txt")
end mouseup
What you gave me is working, thanks. But if I try to save a button and/or a label, it creates a blank .txt file.sefrojones wrote:Without knowing exactly what you've tried, it's hard to tell what is going wrong. Try this in a button:
this should create a test.txt file on your desktop.Code: Select all
on mouseup put "this is an example of writing text to a file" into URL ("file:"&specialfolderpath("Desktop")&"/test.txt") end mouseup
--Sefro
AgentItay wrote:But if I try to save a button and/or a label, it creates a blank .txt file.
I am having an error trying to export it to an apk file, it says "There was an error while saving the standalone application. Could not compile application class"Simon wrote:Hi AgentItay,
You tell me and then we'll both know.
Simon
Code: Select all
on mouseUp
addDough
end mouseUp
on mouseEnter
set the label of btn "stopHandler" to "Halt"
end mouseEnter
on addDough
if the label of btn "stopHandler" = "halted" then exit addDough
add 0.2 to fld 1
send "addDough" to me in 12 ticks --0,2 seconds
end addDough
Code: Select all
on mouseUp
if the label of me = "Halt" then set the label of me to "Halted"
else set the label of me to "Halt"
end mouseUp