Macro / Shortcut Question
Posted by: Dirk Leibing
Date: April 03, 2014 02: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

Re: Macro / Shortcut Question
Posted by: siria
Date: April 03, 2014 05:44PM

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

Re: Macro / Shortcut Question
Posted by: JamesD
Date: April 03, 2014 06:01PM

@ 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

Re: Macro / Shortcut Question
Posted by: guenter
Date: April 03, 2014 06:28PM

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

Soll ich es dir übersetzen?

Re: Macro / Shortcut Question
Posted by: siria
Date: April 03, 2014 07:37PM

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.

Re: Macro / Shortcut Question
Posted by: Dirk Leibing
Date: April 03, 2014 09:27PM

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

Re: Macro / Shortcut Question
Posted by: Dirk Leibing
Date: April 03, 2014 09:33PM

%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.

Re: Macro / Shortcut Question
Posted by: siria
Date: April 03, 2014 10:04PM

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.

Re: Macro / Shortcut Question
Posted by: Dirk Leibing
Date: April 04, 2014 11:17AM

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

Re: Macro / Shortcut Question
Posted by: JamesD
Date: April 04, 2014 12: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

K-Meleon forum is powered by Phorum.