swap fill and stroke shortcut

Post questions on how to use or achieve an effect in Inkscape.
itchi
Posts: 9
Joined: Wed Jan 22, 2014 7:12 am

swap fill and stroke shortcut

Postby itchi » Sun Jan 26, 2014 4:15 am

Hi,

Is there a way to add a shortcut to swap fill and stroke?
I use it a lot so that would be realy welcome. I know you can add shortcuts to the xml but then you seem to also have to program in other docs and I don't have any experiance with that.

thanks!

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: swap fill and stroke shortcut

Postby Lazur » Fri Jan 31, 2014 12:00 am

Hi,

maybe you are searching for Ragnar's extension?:
Swap Palette Colors - Extension

Personally I have never used colour swapping in my works so can only hope it is what you are after.

itchi
Posts: 9
Joined: Wed Jan 22, 2014 7:12 am

Re: swap fill and stroke shortcut

Postby itchi » Fri Jan 31, 2014 1:57 am

Hi Lazur URH! Thanks, though that seems like an extention that you have to activate form a menu. I'm more just looking for a shortcut on keyboard to activate the Swap Fill and Stroke of an object. The only way to do it now is left-click on the fill and stroke style indicator (left bottom) and then choose the option from the pop up menu.

User avatar
fillotassi
Posts: 19
Joined: Wed Sep 06, 2017 11:47 pm
Location: Italy
Contact:

Re: swap fill and stroke shortcut

Postby fillotassi » Wed Sep 06, 2017 11:50 pm

Hi itchi,

have you found a way to set this shortcut?

I would find it useful too, if possible

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: swap fill and stroke shortcut

Postby brynn » Thu Sep 07, 2017 2:57 am

fillotassi, I just answered your other message.

itchi
Posts: 9
Joined: Wed Jan 22, 2014 7:12 am

Re: swap fill and stroke shortcut

Postby itchi » Fri Sep 08, 2017 7:50 pm

Hi Fillotassi, it'S been a while since this post but there's an option for that:

select an object, then right click on the little color and stroke view (left bottom screen) and select 'swap fill and stroke' from the popup.

Hope this helps!

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: swap fill and stroke shortcut

Postby tylerdurden » Sat Sep 09, 2017 1:10 am

In windows, a keyboard shortcut can be programmed using Autohotkey.

Image

Code: Select all

;This script designed exclusively for Inkscape to swap object stroke and fill color, by invoking the context menu of the style in the status bar.
;Works only when the Inkscape window is close enough to the bottom of the screen (or fullscreen), so context menu extends upwards.
;The hotkey is currently programmed for Ctrl+F3, see Autohotkey.com documentation to change.
;Offered with no guarantee, it might not work for you, use at your own risk.

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.



^F3::

RightClickFromBottomLeft(80,20)
LeftClickFromBottomLeft(100,110)

return





RightClickFromBottomLeft(_X,_Y){

CoordMode, mouse, Relative

WinGetActiveStats, Title, width, height, x,y

_X :=  _X

_Y := height - _Y

Click %_X%, %_Y%, right

}

LeftClickFromBottomLeft(_X,_Y){

CoordMode, mouse, Relative

WinGetActiveStats, Title, width, height, x,y

_X :=  _X

_Y := height - _Y

Click %_X%, %_Y%,

}
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/


Return to “Help with using Inkscape”