Hi!
I am trying to replicate the MIT MS-Dos "Cookie" virus. It displays text "I want cookies. give me cookies" and if the user types cookies, it disappears.
I dont have much yet. I need the applscpt to distinguish the entered text (cookie or else).
I am a script noobie so if anyone could add on to this it would be great.
I need a way to define "answer" as the user response. Once I get this I can complete it.
Thanks!
I am trying to replicate the MIT MS-Dos "Cookie" virus. It displays text "I want cookies. give me cookies" and if the user types cookies, it disappears.
I dont have much yet. I need the applscpt to distinguish the entered text (cookie or else).
I am a script noobie so if anyone could add on to this it would be great.
Code:
display dialog "I want cookies. Give me cookies." default answer "" buttons {"OK"} default button 1
if answer = "cookies" then beep 10
I need a way to define "answer" as the user response. Once I get this I can complete it.
Thanks!