PDA

View Full Version : shortcut button question...


jackdaniels
03-19-2008, 02:31 AM
how can i make it add http://www. .com with holding control button and pressing enter button like internet explorer ?

RizlaUK
03-19-2008, 11:37 AM
you could try something like this

if System.IsKeyDown (17) and System.IsKeyDown(13) then
strText=Input.GetText("Input")
Input.SetText("Input","http://"..strText..".com")
end

jackdaniels
03-19-2008, 11:54 AM
thanks alot RizlaUK but i already have a code in input object....

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

ShadowUK
03-19-2008, 01:22 PM
This goes in the Input Object's On Key box.


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

jackdaniels
03-19-2008, 03:38 PM
i have a problem !!! it works but it loads the blocked site

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

jackdaniels
03-19-2008, 04:11 PM
this code doesnt work for alt button !!!

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