Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?
Save up to 50% on our desktop apps during our Year End Sale!Save up to 50% on our desktop apps during our Year End Sale, including DisplayFusion, ClipboardFusion, FileSeek, LogFusion, TrayStatus, and VoiceBot!Save up to 50% on our desktop apps during our Year End Sale!

User Image
Jonathan D. Woodward
4 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!
Apr 15, 2024  • #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?
Apr 19, 2024  • #2
User Image
Jonathan D. Woodward
4 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!
Apr 19, 2024  • #3
User Image
C# Clouseau
87 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.
Apr 21, 2024  • #4
User Image
C# Clouseau
87 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)
Apr 21, 2024  • #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]
Apr 26, 2024  • #6
User Image
Jonathan D. Woodward
4 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!
Apr 26, 2024  • #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!
Apr 29, 2024  • #8
User Image
Jonathan D. Woodward
4 discussion posts
Quote:
We've just posted this one to the repository. When downloading through the Settings window it will just import it directly into ClipboardFusion.

Thanks!


It works! Thank you for your help!
Jun 8, 2024  • #9
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)