Development :  K-Meleon Web Browser Forum
K-Meleon development related discussions. 
ctrl+enter like IE macro
Posted by: Guest
Date: September 28, 2003 09:26PM

Has anybody done the ctrl+enter thing? I did a quick search of the forum but didn't find it. Here is my shot at it (but it doesn't work).

Accelerators:
CTRL VK_RETURN = macros(ctrl_enter)

Macros:
#IE ctrl + enter to add http://www.<current>.com
ctrl_enter {
open("www.".$URL.".com");
}

Options: ReplyQuote
Re: ctrl+enter like IE macro
Posted by: jsnj
Date: September 28, 2003 10:47PM

As far as I know the ENTER key cannot be used as an accelerator.

Options: ReplyQuote
Re: ctrl+enter like IE macro
Posted by: jsnj
Date: September 28, 2003 10:50PM

My bad...I just tried it, it can.

Options: ReplyQuote
Re: ctrl+enter like IE macro
Posted by: jsnj
Date: September 28, 2003 11:18PM

The following worked for me when I just tried it:

In macros:

ctrl_enter{
id(ID_SELECT_URL);
id(ID_EDIT_COPY);
$prefix = "http://www.";;
$theurl = getclipboard();
$suffix = ".com";
open($prefix . $theurl . $suffix);
}


In Accelerators:

CTRL VK_RETURN = macros(ctrl_enter)

Options: ReplyQuote
Re: ctrl+enter like IE macro
Posted by: boogomatic
Date: September 29, 2003 12:18AM

The first one should work, I think spaces are needed around the periods on either side of $URL.

Like this

ctrl_enter {
open("www." . $URL . ".com");
}


Trenton
<boogomatic>
486DX4/100-PLUS-160Mhz, 48MB, 1.5GB
Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.4) Gecko/20030624 K-Meleon/0.8b

Options: ReplyQuote
Re: ctrl+enter like IE macro
Posted by: jsnj
Date: September 29, 2003 03:26AM

$URL doesn't return what's just been typed into the URL Bar, but rather what the address of the current site is. I thought the idea was to type a word in the URL Bar ,have Ctrl+Enter put "http://www"; & ".com" around it and automatically go to the site with the idea being to bypass the browser's host or keyword searching, thus speeding things up.

Options: ReplyQuote
Re: ctrl+enter like IE macro
Posted by: boogomatic
Date: September 29, 2003 03:44AM

jsnj:

Yes. You are correct.

My post would get us to http://www.somewhere.com.com]http://www.http://www.somewhere.com.com[/u][/url]

And that would be as good as nowhere.

Trenton
<boogomatic>
486DX4/100-PLUS-160Mhz, 48MB, 1.5GB
Mozilla/5.0 (Windows; U; Win95; en-US; rv:1.4) Gecko/20030624 K-Meleon/0.8b

Options: ReplyQuote
Re: ctrl+enter like IE macro
Posted by: Guest
Date: September 29, 2003 05:21PM

Thanks, now all that's wrong with KM is the scroll bar is slightly wider than IE.

Options: ReplyQuote
Re: ctrl+enter like IE macro
Posted by: kc
Date: October 01, 2003 01:35PM

Maybe you can do your benefits with this thread
http://kmeleonbrowser.org/forum/read.php?f=3&i=3505&t=3505
kc

Options: ReplyQuote
Re: ctrl+enter like IE macro
Posted by: jsnj
Date: October 01, 2003 06:12PM

...the scroll bar is slightly wider than IE.

Is this a WinXP issue? On my Win98 they're exactly the same size.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.