mob/verb
Use_QuickLink()
var/lolql = input("Which QuickLink do you want to open?","Quick Link Editor")in list("QuickLink #1","QuickLink #2","QuickLink #3","QuickLink #4","QuickLink #5","QuickLink #6","QuickLink #7","QuickLink #8")
switch(lolql)
if("QuickLink #1")
#define URL "ql1"
usr<<browse(ql1)
mob/verb
Edit_QuickLinks()
var/lolwat = input("Which QuickLink do you want to edit?","Quick Link Editor")in list("QuickLink #1","QuickLink #2","QuickLink #3","QuickLink #4","QuickLink #5","QuickLink #6","QuickLink #7","QuickLink #8")
switch(lolwat)
if("QuickLink #1")
var/loltext = input("What do you want it to link to?")as text
ql1 = loltext
return loltext
if("QuickLink #2")
var/loltext2 = input("What do you want it to link to?")as text
ql2 = loltext2
return loltext2
if("QuickLink #3")
var/loltext3 = input("What do you want it to link to?")as text
ql3 = loltext3
return loltext3
if("QuickLink #4")
var/loltext4 = input("What do you want it to link to?")as text
ql4 = loltext4
return loltext4
if("QuickLink #5")
var/loltext5 = input("What do you want it to link to?")as text
ql5 = loltext5
return loltext5
if("QuickLink #6")
var/loltext6 = input("What do you want it to link to?")as text
ql6 = loltext6
return loltext6
if("QuickLink #7")
var/loltext7 = input("What do you want it to link to?")as text
ql7 = loltext7
return loltext7
if("QuickLink #8")
var/loltext8 = input("What do you want it to link to?")as text
ql8 = loltext8
return loltext8
Problem description:
So, I've been having a little trouble making use of my browser.
What I'm trying to do is get the Browser open a webpage VIA the use of "QuickLinks".
I have a QuickLink Editor verb already created, but all I can get it to do so far is open a page with the text displayed in the ql1 variable!
(Eg: var/ql1 = "http://yahoo.com", http://yahoo.com would show up as text on the blank page.)
So, how do I get it to OPEN the WebPage instead of displaying the text?
The link proc is what you're looking for here.
I'm also curious what the purpose of that #define is.