Need help with 2 scripts, am willing to pay for help and assistance.

Discussion, questions and support.
Post Reply
alih1029
Posts: 8
Joined: Sep 3rd, ’19, 16:01

Post by alih1029 » Oct 31st, ’19, 21:48

Code: Select all

#Persistent
return

OnClipboardChange:
ToolTip Clipboard data type: %A_EventInfo%
StringReplace, Clipboard, Clipboard,  `r`n,%A_Space%, All 
Sleep 1000
ToolTip  ; Turn off the tip.
return
This is the first script I have; anytime text is copied, it removes all formatting, is there anyway to make this script toggle-able? It seems that even disabling a hotkey/script I wrote that has this code in it, does not turn off the script.

How can I write a script, that will allow me to do the following in the picture attached below:
Image
  • Select all instances of text enclosed by ':' and '}', and trigger that it be bolded via Ctrl + B shortcut
I copy/paste a lot from PDFs, and the above script allows me to remove all formatting, then I can paste the scrubbed text. When I want to blank a word, I can select it and trigger another hotkey to place the 'brackets' around text, however it removes the formatting so I have to manually re-format the text. I was hoping to find a script that allows selection of text inbetween two characters.
User avatar
Marko
Posts: 1063
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Nov 1st, ’19, 16:55

The following will copy the selected text to Clipboard and remove all formatting and new lines.
Set a shortcut (Type: Command):

Code: Select all

send, ^c
sleep 100
StringReplace, Clipboard, Clipboard, `r`n, %A_Space%, All 
Clipboard=%Clipboard%
About the second script - I have no idea how to select multiple parts of text at the same time.
Post Reply