Antw.: Choose-your-own-adventure game
Antw.: Choose-your-own-adventure game
- Subject: Antw.: Choose-your-own-adventure game
- From: Bastiaan Boertien <email@hidden>
- Date: Tue, 19 Apr 2005 15:43:29 +0200
Van: email@hidden
Onderwerp: Antw.: Choose-your-own-adventure game
Datum: 19 april 2005 15:40:21 GMT+02:00
Aan: email@hidden
the answer of john zanbergen is right.
but do you have a tell window command? because I don't see contents of text field "loc" of window "thewindow"
if you have not used then
tell window "theWindow"
if the contents of text field "loc" is equal to "Welcome Screen" then
set the contents of text field "act" to "\"SCIENTIST: Welcome. Do you wish to use my simulator\"
You now have a choice. You can either use the simulator, or not use the simulator.
Option 1 - Use
Option 2 - Don't Use"
set the contents of text field "loc" to "Lab"
end if
end tell
or use:
if the contents of text field "loc" of window "theWindow" is equal to "Welcome Screen" then
set the contents of text field "act" of window "theWindow" to "\"SCIENTIST: Welcome. Do you wish to use my simulator\"
You now have a choice. You can either use the simulator, or not use the simulator.
Option 1 - Use
Option 2 - Don't Use"
set the contents of text field "loc" of window "theWindow" to "Lab"
end if
good luck!
Op 19 apr 2005 om 14:54 heeft John Zandbergen het volgende geschreven:
I've had similar problems, I think I solved them by using "as string":
if (contents of text field "loc") as string is equal to "Welcome Screen"
then
....
or something like that.
but, I'm not sure.
John
On dinsdag 19 april 2005 13:32 Connor Wakamo wrote:
if the contents of text field "loc" is equal to "Welcome Screen" then
set the contents of text field "act" to "\"SCIENTIST: Welcome. Do you wish
to use my simulator\"
You now have a choice. You can either use the simulator, or not use the
simulator.
Option 1 - Use
Option 2 - Don't Use"
set the contents of text field "loc" to "Lab"
end if
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden