General :  K-Meleon Forum
General discussion about K-Meleon. 
Macro / Shortcut Question
Posted by: Dirk Leibing
Date: April 03, 2014 09:00PM

Hi,

I'm new to K-Melon. I found K-melon because of the possibility for macros.

But it seems, that I do not find the informations I need.

I would like to have a macro / keyboard shortcut as follows:

Key: F6
Action: "Press Return" & "Goto next Tab"

How do I have to set this up?

Dirk

Options: ReplyQuote
Re: Macro / Shortcut Question
Posted by: siria
Date: April 04, 2014 12:44AM

Hmm... riddling, what's that "Press Return" supposed to do exactly?

Options: ReplyQuote
Re: Macro / Shortcut Question
Posted by: JamesD
Date: April 04, 2014 01:01AM

@ Dirk

You can set F6 to go to the next tab by this method. Use EDIT - CONFIGURATION - ACCELERATORS to open a local file. Add this code:
%ifplugin tabs
VK_F6 = ID_TAB_NEXT
%endif

Save the file and restart K-Meleon.

I know of no command id to emulate pressing the return <enter> key. I suggest that you just press <enter> and then F6

Options: ReplyQuote
Re: Macro / Shortcut Question
Posted by: guenter
Date: April 04, 2014 01:28AM

Quote
siria
Hmm... riddling, what's that "Press Return" supposed to do exactly?

Soll ich es dir übersetzen?

Options: ReplyQuote
Re: Macro / Shortcut Question
Posted by: siria
Date: April 04, 2014 02:37AM

Quote
guenter
Quote
siria
Hmm... riddling, what's that "Press Return" supposed to do exactly?

Soll ich es dir übersetzen?
Nee aber ich übersetz mal für dich meine Frage: Was genau soll es denn TUN, im Sinne von "was bewirken"? Was passiert denn, wenn du auf einer Website auf Return drückst? Bei mir gar nix. Muss irgendeine Sonderfunktion noch beabsichtigt sein.

Options: ReplyQuote
Re: Macro / Shortcut Question
Posted by: Dirk Leibing
Date: April 04, 2014 04:27AM

Sorry, war unterwegs, es soll ein auf der jeweiligen Webseite aktiver Button geklickt werden und dann zum nächsten Tab.

Options: ReplyQuote
Re: Macro / Shortcut Question
Posted by: Dirk Leibing
Date: April 04, 2014 04:33AM

%ifplugin tabs
VK_F6 = ID_TAB_NEXT
%endif

funktioniert zum Wechsel des Tabs, ich hatte noch ein Semikolon dahinter, das war mein Fehler, aber nun möchte ich halt, das bevor zum nächsten Tab gewechselt wird, das jeweils aktive Element(Button) geklickt weird, also Enter,bzw. Return gedrückt wird. Und das alles zusammen mit nur einer Taste.

Options: ReplyQuote
Re: Macro / Shortcut Question
Posted by: siria
Date: April 04, 2014 05:04AM

Quote
JamesD
I know of no command id to emulate pressing the return <enter> key. I suggest that you just press <enter> and then F6

Same prob here, sorry. Perhaps there's some trick with javascript, but us three here can't do it. An example site might help to perhaps find some alternative with macrolanguage, but no idea so far.

Options: ReplyQuote
Re: Macro / Shortcut Question
Posted by: Dirk Leibing
Date: April 04, 2014 06:17PM

so maybe there is someone who knows a solution?
I'm sure that it will be possible to emulate a Key press.

Options: ReplyQuote
Re: Macro / Shortcut Question
Posted by: JamesD
Date: April 04, 2014 07:21PM

I have tried to make something work, but have not been successful. I do not know if this plugin will work with later versions of KM.

The original file plus my kmm file are included here:

https://dl.dropboxusercontent.com/u/1522294/EntNxtTab.7z

Options: ReplyQuote


K-Meleon forum is powered by Phorum.