Login
Posted: Tue Jul 19, 2011 3:02 am
I dunno...seems right to me. I just rewrote this script...it was having an issue with the timer function...the "if it is 3" wasn't canceling correctly. I haven't been able to replicate the error again but after the message would pop up saying Account Created Successfully it would then pop up about 10 seconds later Network Unreachable. Am I thinking wrong in the way I am trying to manipulate the timer with this code? Cancel 1 being stop timer.
Thanks
Thanks
Code: Select all
on mouseup
send "timer" to me in 20 seconds
focus on nothing
set the visible of image "arrows" to true
put fld "username" into tUNA
put fld "password" into tPWA
put "username=" & tUNA & "&password=" & tPWA into tauth
post tauth to url "myurl"
if it is "0" then
cancel 1
answer "Username or Password is blank"
set the visible of image "arrows" to false
else
if it is "1" then
cancel 1
put specialfolderpath("documents") & "/text.txt" into tFile
put tauth into url("file:" & tFile)
go to card 3
else
if it is "2" then
cancel 1
answer "Invalid Username or Password"
set the visible of image "arrows" to false
else
if it is "3" then
cancel 1
answer "Account Created Successfully"
put specialfolderpath("documents") & "/text.txt" into tFile
put tauth into url("file:" & tFile)
go to card 3
end if
end if
end if
end if
end mouseup
command timer
answer "Network Unreachable"
set the visible of image "arrows" to false
end timer
end mouseup