Drag links to open in 1.6.0 beta 2
Posted by: Mello
Date: September 09, 2011 03:05AM

I have copied in ccfme gestures dll (and ammended prefs as suggested in earlier forum thread). Drag works using left mouse button, but only if I drag down to the left or down right. Whereas in ccfme |I can drag links up left or right with left button. I prefer this method, so how do I modify beta 2's behaviour accordingly?

Another thing I notice with beta 2 is that when using ctrl+g to make google searches from the Address bar, it sometimes searches for whatever is on the clipboard instead of my typed in search terms.
Finally; sometimes only half of a search query appears when google opens after using ctrl+g.
e.g, I type in four words - only two appear in google and are searched for.



Edited 2 time(s). Last edit at 09/09/2011 03:12AM by Mello.

Re: Drag links to open in 1.6.0 beta 2
Posted by: siria
Date: September 09, 2011 03:23AM

oops... should have tested first ;-)



Edited 5 time(s). Last edit at 09/09/2011 01:35PM by siria.

Re: Drag links to open in 1.6.0 beta 2
Posted by: Mello
Date: September 09, 2011 06:17AM

Thanks but those gestures options only seem to effect right mouse button
drag. I want to change left button drag.

Yes the ctrl+g thing is weird - I normally use ccfme itself but for some reason it won't work on this laptop with win7 starter.

I posted about it here.
http://kmeleon.sourceforge.net/forum/read.php?1,118477,118477#msg-118477

Re: Drag links to open in 1.6.0 beta 2
Posted by: jsnj
Date: September 09, 2011 06:34AM

Quote
Mello
...
Another thing I notice with beta 2 is that when using ctrl+g to make google searches from the Address bar, it sometimes searches for whatever is on the clipboard instead of my typed in search terms.
Finally; sometimes only half of a search query appears when google opens after using ctrl+g.
e.g, I type in four words - only two appear in google and are searched for.

The search behavior in KM hasn't changed from v1.1 - 1.6b2. Selected text on the page is searched for first. So if you've selected text on a page and then use CTRL G, the selected text is searched for even if you typed into the URL Bar. Keep in mind that you never need to copy selected text to the clipboard in KM to search for it. Once text is selected, click the search button and it's automatically searched for. It's easier than dragging the selected text to the search bar or URL bar method found in other browsers. However, I do think URL Bar contents should be searched for before selected text. Could be a change implemented in the next release maybe.

Re: Drag links to open in 1.6.0 beta 2
Posted by: Mello
Date: September 09, 2011 05:44PM

Ah! so that's what is happening. Thanks for clearing that up.
It would make sense to prioritise addressbar.

Still would like to know if I can modify ccfme gestures dll behaviour in beta 2. I'd like to see it available by default or option in official versions.

P.S Many browsers now can search for highlighted text by a tiny flick of mouse or touchpad. No need to drag the text to a toolbar.



Edited 2 time(s). Last edit at 09/09/2011 05:51PM by Mello.

Re: Drag links to open in 1.6.0 beta 2
Posted by: deadlock
Date: September 09, 2011 10:18PM

@jsnj
>However, I do think URL Bar contents
>should be searched for before selected text.

The active element should be used.
If URL Bar has focus, it should not
use selected.openurl.

Any idea how to get that value?

Re: Drag links to open in 1.6.0 beta 2
Posted by: adodupan
Date: September 13, 2011 04:58AM

Quote
jsnj
I do think URL Bar contents should be searched for before selected text. Could be a change implemented in the next release maybe.

Search{
macroinfo=_("Consult the default search engine");
$_Search_EngineURL==""?$_Search_EngineURL=getpref(STRING,$_Search_pref_DefaultURL):0;
$_Search_EngineName==""?$_Search_EngineName=getpref(STRING,$_Search_pref_DefaultName):0;
$_Search_Query=$SelectedText; $_Search_Query==""?&_Search_Typed:&_Search_Selected;
$_Search_EngineName="";
$_Search_EngineURL="";
}


You can bring $URLBAR into focus. For example, replace the blue line with this code:

if($URLBAR!="" and $URLBAR!=getpref(STRING,"kmeleon.MRU.URL0")) {
$_Search_Query=$URLBAR; &_Search_Typed;
}else{
$_Search_Query=$SelectedText; $_Search_Query==""?&_Search_Typed:&_Search_Selected;
}


What is the purpose?

Quote
deadlock
The active element should be used.
If URL Bar has focus, it should not
use selected.openurl.

Any idea how to get that value?

It is impossible, because macrolanguage does not detect active or focused element. Focus depends on how you set the function.
In the Search() function $SelectedText is in focus (blue code). That's it, in search.kmm you do not have anything to add or delete.

Regards.

Re: Drag links to open in 1.6.0 beta 2
Posted by: deadlock
Date: September 13, 2011 06:14AM

@adodupan
Brilliant, thanks!

K-Meleon forum is powered by Phorum.