Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 15 of 15
  1. #1
    Join Date
    Apr 2006
    Posts
    13

    File.OpenURL Dynamic?

    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.

  2. #2
    Join Date
    May 2005
    Posts
    1,115
    Code:
    File.OpenURL(Input.GetText("images").."/images", SW_SHOWNORMAL);
    Never know what life is gonna throw at you.
    (Based on a true story.)

  3. #3
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843
    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

  4. #4
    Join Date
    May 2005
    Posts
    1,115
    Yeah that's a good idea!
    Never know what life is gonna throw at you.
    (Based on a true story.)

  5. #5
    Join Date
    Apr 2006
    Posts
    13
    Sorry it not works

    Code:
    myInput = Input.GetText("Input1");
    File.OpenURL(myInput.."/images"), SW_SHOWNORMAL);
    PHP Code:
    Line=2 unexpected symbol near "," 

  6. #6
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629
    correction:
    Code:
    File.OpenURL(myInput.."/images", SW_SHOWNORMAL)

  7. #7
    Join Date
    Oct 2004
    Location
    East, South & West Asia
    Posts
    1,020
    Mina is faster than me. hehe..
    Newbie Examples
    ------> AMS 7.5 : amstudio.azman.info
    ----> AMS 6 & 5: www.azman.info/ams/
    ----> FB: facebook.com/GuideToWealth

    ----> Content Development Blog: www.AZMAN.asia

  8. #8
    Join Date
    Apr 2006
    Posts
    13
    @ mina

    Thanks Mina it works!

  9. #9
    Join Date
    Apr 2006
    Posts
    13
    Whats wrong with this code?

    How can I make from 2 inputs 1 url?

    Code:
    myInput = Input.GetText("Input1");
    myInput2 = Input.GetText("Input2");
    myInputx = Input1+Input2;
    File.OpenURL(myInputx, SW_SHOWNORMAL)

    thanks

  10. #10
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629
    Quote Originally Posted by n00bz
    Whats wrong with this code?

    How can I make from 2 inputs 1 url?

    Code:
    myInput = Input.GetText("Input1");
    myInput2 = Input.GetText("Input2");
    myInputx = Input1+Input2;
    File.OpenURL(myInputx, SW_SHOWNORMAL)

    thanks
    Code:
    myInputx = Input1..Input2;

  11. #11
    Join Date
    Apr 2006
    Posts
    13
    Code:
    On Click, Line 3: attempt to concate global "Input1" (a nil value)?
    Code:
    myInput = Input.GetText("Input1");
    myInput2 = Input.GetText("Input2");
    myInputx = Input1..Input2;
    File.OpenURL(myInputx, SW_SHOWNORMAL)
    Last edited by n00bz; 04-15-2006 at 05:56 AM.

  12. #12
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629
    Quote Originally Posted by n00bz
    Code:
    On Click, Line 3: attempt to concate global "Input1" (a nil value)?
    Code:
    myInput = Input.GetText("Input1");
    myInput2 = Input.GetText("Input2");
    myInputx = Input1..Input2;
    File.OpenURL(myInputx, SW_SHOWNORMAL)
    Hi. sorry, here u go
    Code:
    myInputx = myInput..myInput2;

  13. #13
    Join Date
    Apr 2006
    Posts
    13
    no problem, it works now. But can I put a "/" between 2 Inputs?

  14. #14
    Join Date
    Oct 2005
    Location
    American Dubai
    Posts
    629
    absolutely possible
    Code:
    myInputx = myInput.."/"..myInput2;

  15. #15
    Join Date
    Apr 2006
    Posts
    13
    ok it works, thanks!

Similar Threads

  1. Question about File.OpenURL
    By d3m0n1x in forum AutoPlay Media Studio 6.0
    Replies: 8
    Last Post: 04-05-2006, 03:59 PM
  2. Dynamic text/Flash variables ...help! (please)
    By STAR*MAN in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 09-20-2005, 12:13 PM
  3. Example: Creating and Serving Dynamic Graphs
    By Corey in forum AutoPlay Media Studio 5.0 Examples
    Replies: 6
    Last Post: 03-31-2005, 08:15 PM
  4. Example of dynamic audio channel control a.k.a. "Interactive Quadraphonic Sound"
    By Corey in forum AutoPlay Media Studio 5.0 Examples
    Replies: 8
    Last Post: 02-13-2005, 01:49 AM
  5. dynamic list box, part 2
    By intel352 in forum Setup Factory 6.0
    Replies: 10
    Last Post: 01-27-2003, 10:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts