View Full Version : File.OpenURL Dynamic?
n00bz
04-13-2006, 08:33 PM
Hello I want to write an url in my input box and on click open it on a browser.
I have wrote this code
myInput = Input.GetText("Input1");
File.OpenURL("Input1"..Input.GetText("images"), SW_SHOWNORMAL);
But I want to open a website +and and my images directory on the website.
For example
http://www.mysite.com/images
http://www.mysite.com = dynamic
images = static
I hope you can help me.
File.OpenURL(Input.GetText("images").."/images", SW_SHOWNORMAL);
yosik
04-13-2006, 11:29 PM
It should be:
myInput = Input.GetText("Input1");
File.OpenURL(myInput.."/images"), SW_SHOWNORMAL);
If you want the action to take place as the user hits the ENTER Key, you could do the following:
if e_Key == 13 then
myInput = Input.GetText("Input1");
File.OpenURL(myInput.."/images", SW_SHOWNORMAL);
end
Good luck
Yossi
n00bz
04-14-2006, 07:00 AM
Sorry it not works
myInput = Input.GetText("Input1");
File.OpenURL(myInput.."/images"), SW_SHOWNORMAL);
Line=2 unexpected symbol near ","
correction:
File.OpenURL(myInput.."/images", SW_SHOWNORMAL)
azmanar
04-14-2006, 07:06 AM
Mina is faster than me. hehe..
n00bz
04-14-2006, 09:59 AM
@ mina
Thanks Mina it works!:cool
n00bz
04-15-2006, 06:33 AM
Whats wrong with this code?
How can I make from 2 inputs 1 url?
myInput = Input.GetText("Input1");
myInput2 = Input.GetText("Input2");
myInputx = Input1+Input2;
File.OpenURL(myInputx, SW_SHOWNORMAL)
thanks
Whats wrong with this code?
How can I make from 2 inputs 1 url?
myInput = Input.GetText("Input1");
myInput2 = Input.GetText("Input2");
myInputx = Input1+Input2;
File.OpenURL(myInputx, SW_SHOWNORMAL)
thanks
myInputx = Input1..Input2;
n00bz
04-15-2006, 06:53 AM
On Click, Line 3: attempt to concate global "Input1" (a nil value)?
myInput = Input.GetText("Input1");
myInput2 = Input.GetText("Input2");
myInputx = Input1..Input2;
File.OpenURL(myInputx, SW_SHOWNORMAL)
On Click, Line 3: attempt to concate global "Input1" (a nil value)?
myInput = Input.GetText("Input1");
myInput2 = Input.GetText("Input2");
myInputx = Input1..Input2;
File.OpenURL(myInputx, SW_SHOWNORMAL)
Hi. sorry, here u go
myInputx = myInput..myInput2;
n00bz
04-15-2006, 07:11 AM
no problem, it works now. But can I put a "/" between 2 Inputs?
absolutely possible
myInputx = myInput.."/"..myInput2;
n00bz
04-15-2006, 07:36 AM
ok it works, thanks!
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.