Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534

    shortcut button question...

    how can i make it add
    http://www. .com
    with holding control button and pressing enter button like internet explorer ?

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    you could try something like this

    Code:
    if System.IsKeyDown (17) and System.IsKeyDown(13) then
        strText=Input.GetText("Input")
        Input.SetText("Input","http://"..strText..".com")
    end
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534
    thanks alot RizlaUK but i already have a code in input object....

    Code:
    if e_Key == 13 then
    strSite = Input.GetText("Input1");
    if strSite ~= "" then
    CheckKeyWord(strSite)
    	if nMatch ~= -1 then
    	result = Dialog.Message("Notice", "No Connect.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    	else
    	Web.LoadURL(actweb, strSite);
    	end
    end
    
    end
    Last edited by jackdaniels; 03-19-2008 at 10:57 AM.

  4. #4
    Join Date
    Oct 2007
    Location
    Gensokyo
    Posts
    1,324
    This goes in the Input Object's On Key box.

    Code:
    01 if (e_Key == 13 and e_Modifiers.ctrl) then 
    02 	Web.LoadURL( "Web1", "http://www."..Input.GetText( "Input1").. ".com") 
    03 end

  5. #5
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534
    i have a problem !!! it works but it loads the blocked site

    Code:
    if e_Key == 13 then 
    strSite = Input.GetText("Input1");
    if strSite ~= "" then
    CheckKeyWord(strSite)
    	if nMatch ~= -1 then
    	result = Dialog.Message("Notice", "dont load.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    	else
    	Web.LoadURL("Web1", strSite);
    	end
    end
    
    end
    
    if (e_Key == 13 and e_Modifiers.ctrl) then 
    strSite = Input.GetText("Input1");
    if strSite ~= "" then
    CheckKeyWord(strSite)
    	if nMatch ~= -1 then
    	result = Dialog.Message("Notice", "dont load.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    	else
    	Web.LoadURL("Web1", strSite);
    	end
    end
    Web.LoadURL( actweb, "http://www."..Input.GetText( "Input1").. ".com") 
    end

  6. #6
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534
    this code doesnt work for alt button !!!

    Code:
    if (e_Key == 13 and e_Modifiers.alt) then

Similar Threads

  1. Button question
    By Miyagki in forum AutoPlay Media Studio 6.0
    Replies: 4
    Last Post: 11-03-2007, 10:07 AM
  2. Quick Question about button text to 2nd line
    By nals in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 03-22-2007, 06:28 PM
  3. Example: Creating an on/off button to toggle background audio
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 07-10-2004, 02:54 PM
  4. HOWTO: Uninstall a Shortcut Created with Actions
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-25-2002, 09:50 AM
  5. A question on placing a shortcut on the desktop
    By rongrong8 in forum Setup Factory 6.0
    Replies: 1
    Last Post: 05-15-2002, 09:01 AM

Posting Permissions

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