I am just getting started with Livecode and I was wondering if someone could provide some insight on an problem I am having.
I am attempting to make a webpage slideshow that utilizes a single Browser instance.
The send commands are being set on top of each other, I am not sure how to delay the send commands so they occur one after another.
Currently the first card contains a single button named "Start"
That button has the following script.
Code: Select all
on mouseUp pButtonNumber
go to card "Web"
end mouseUp
The second card has the following script.
Code: Select all
local x
on openCard
repeat until x = 1
send LoadUrl1 to this card in 10 seconds put URL1 into msg
send LoadUrl2 to this card in 10 seconds put URL2 into msg
if escapeKey is down then exit repeat
end repeat
end openCard
on escapeKey
put 1 into x
put esc into msg
go to card "start"
end escapeKey
command LoadUrl1
set the url of widget "Browser" to "website-1"
end LoadUrl1
command LoadUrl2
set the url of widget "Browser" to "website-2"
end LoadUrl2
Once they make a choice, fields would display on the start page which would allow them to type in the urls.
Once the user hits the Start button they would go to the "Web" card and the goal is to have the Browser Widget rotate through the urls.
Thank you