Bluebeam Revu => Revu General Topics => Topic started by: L3NTON on May 03, 2018, 10:25:39 AM

Title: Creating a “cut content”, “Paste” and “Flip” script
Post by: L3NTON on May 03, 2018, 10:25:39 AM
As the subject says I am wanting to create a script that uses three existing commands, “cut content”, “Paste” and “Flip”. I have to regularly create handed house layouts by cut, paste, mirror then mirror the text back again.

Help!!!
Title: Re: Creating a “cut content”, “Paste” and “Flip” script
Post by: Steve on May 03, 2018, 11:12:31 AM
I don't do much scripting, but from what I can find Revu's built in scripting only supports 32 commands.  None are cut, paste and flip.  Javascript might do it - but if I understand correctly the JS would need to be embedded in the PDF so you'd have to embed the JS in every PDF on which you wanted to use the script.

It sounds what you really need (and I wish Revu supported) were built in macros where you could chain together keyboard commands, as cut, paste and flip all have keyboard commands.

Your best bet might be to get a 3rd party macro program and just create a macro for what you need and do it that way.  I actually have a Logitech "gaming" keyboard that I use at work that has 18 programmable keys (into three sets of memories for a total of 54 keys).  The keyboard comes with a macro utility so doing what you want (if I understand correctly) would be fairly simple.  I just don't think there is a way to do it within Revu.
Title: Re: Creating a “cut content”, “Paste” and “Flip” script
Post by: L3NTON on May 03, 2018, 12:44:29 PM
It is a bit frustrating when it seems an obvious thing you should be able to do. I do in fact have a gaming mouse that can run macros but I can only do half of what I want as the “cut content” doesn’t appear to have a keyboard command. Unless you know otherwise? Fingers crossed
Title: Re: Creating a “cut content”, “Paste” and “Flip” script
Post by: Steve on May 03, 2018, 12:57:56 PM
Sorry - I read your original post too fast and just caught the "cut" part.  You are correct - "cut content" has no keyboard equivalent.  However, the newest version of Revu (2018) has the feature that allows you to create custom keyboard commands.  Not sure if that would be an option or not.
Title: Re: Creating a “cut content”, “Paste” and “Flip” script
Post by: L3NTON on May 03, 2018, 01:08:47 PM
I have 2018 Extreme, show me how.... :-[
Title: Re: Creating a “cut content”, “Paste” and “Flip” script
Post by: Steve on May 03, 2018, 01:38:05 PM
Go the the REVU menu and choose KEYBOARD SHORTCUTS and the customizing window will open.  I can't be a whole lot of help past that.  I was a 2018 Beta Tester buy my beta has expired and we haven't upgraded here yet.
Title: Re: Creating a “cut content”, “Paste” and “Flip” script
Post by: L3NTON on May 03, 2018, 03:32:33 PM
Thank you so much for this, I have just tried and it works.  ;D
Title: Re: Creating a “cut content”, “Paste” and “Flip” script
Post by: Steve on May 04, 2018, 07:12:20 AM
Woohoo!  Glad it worked!  Built in macros are still on my wish list for Revu.