how can i make it addwith holding control button and pressing enter button like internet explorer ?http://www. .com
Professional Software Development Tools
how can i make it addwith holding control button and pressing enter button like internet explorer ?http://www. .com
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!!
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.
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
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
this code doesnt work for alt button !!!
Code:if (e_Key == 13 and e_Modifiers.alt) then