Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Jonathan D. Woodward
3 discussion posts
I noticed an issue with Indent/Unindent Text Macro (https://www.clipboardfusion.com/Macros/View/?ID=2884fb31-4e6a-47d4-85d7-d2d45fdada1c).

I copy text to the clipboard (through context menu or ctrl+c) and it appears in Clipboard Fusion Maco. When I run the indent/unindent text macro in the clipboard history menu, no popup appears to enter a positive or negative value to indent text. Am I missing something? The macro hasn't been updated in nearly 10 years as well.

Running Clipboard Fusion Pro v6.1 on Win10 22H2.

Thanks!
23 days ago  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
It seems to work fine here, you'll set the indent number in the script itself though on line 8. Are you just looking to have a popup to let you select the indent number each time you run the script?
19 days ago  • #2
User Image
Jonathan D. Woodward
3 discussion posts
Quote:
It seems to work fine here, you'll set the indent number in the script itself though on line 8. Are you just looking to have a popup to let you select the indent number each time you run the script?


Ahhh I didn't know that the script itself had to be modified. The macro description seemd to imply a popup window would appear giving a user something to enter. Would it be difficult to modify the macro for a pop up dialog in that case?

Thanks!
19 days ago  • #3
User Image
C# Clouseau
84 discussion posts
Look in the Macro Help on the website and try this one BFS.Dialog.GetUserInputList. List will be something like -3, -2, -1, 0, 1, 2, 3 or whatever you need.
17 days ago  • #4
User Image
C# Clouseau
84 discussion posts
So something like this (two command lines (in bold) added:

int indentSize = 1; //Use negative or positve values
char indentChar = '\t'; //Tab character

string inputNr = BFS.Dialog.GetUserInputList("How many (un-) indent?", new string[] { "0", "-3", "-2", "-1", "1", "2", "3" });
Int32.TryParse(inputNr, out indentSize);


if (indentSize > 0)
17 days ago  • #5
Thomas Malloch (BFS)'s profile on WallpaperFusion.com
I modified that macro, so hopefully it works for you now. Here's how to get it into ClipboardFusion:

  • Download the file attached to this email
  • Open the ClipboardFusion Settings window
  • On the "Macros" tab, click the "Import" button
  • Select the file you downloaded in the first step
  • In the window that pops up, you can review the code and assign the Macro a HotKey
  • Click OK to close the Macro Edit window, then OK again to save and apply your changes
• Attachment: Indent_Unindent Text with Dialog Selection.cfmacro [15,178 bytes]
12 days ago  • #6
User Image
Jonathan D. Woodward
3 discussion posts
Quote:
I modified that macro, so hopefully it works for you now. Here's how to get it into ClipboardFusion:

  • Download the file attached to this email
  • Open the ClipboardFusion Settings window
  • On the "Macros" tab, click the "Import" button
  • Select the file you downloaded in the first step
  • In the window that pops up, you can review the code and assign the Macro a HotKey
  • Click OK to close the Macro Edit window, then OK again to save and apply your changes


That works perfectly! Thank you!

One more question...are all of the macros on the website available to download as the file you attached?

Thanks!
12 days ago  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
We've just posted this one to the repository. When downloading through the Settings window it will just import it directly into ClipboardFusion.

Thanks!
9 days ago  • #8
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)