remove format on font
Started by
Guest
, Sep 16 2011 02:36 PM
12 replies to this topic
How do you remove format from font copied from browsers?
#1
-
Posted 16 September 2011 - 02:36 PM
I want ahk magic, just press key and walah no format on paste.
#3
-
Posted 16 September 2011 - 02:41 PM
Clipboard, ClipboardAll, and OnClipboardChangeI want ahk magic, just press key and walah no format on paste.
<!-- m -->http://www.autohotke...c/Clipboard.htm<!-- m -->
clipboard = my text ; Give the clipboard entirely new contents.
clipboard = ; Empty the clipboard.
clipboard = %clipboard% ; Convert any copied files, HTML, or other formatted text to plain text.
clipboard = %clipboard% Text to append. ; Append some text to the clipboard.
StringReplace, clipboard, clipboard, ABC, DEF, All ; Replace all occurrences of ABC with DEF (also converts the clipboard to plain text).
#4
-
Posted 16 September 2011 - 02:58 PM
I want ahk magic, just press key and walah no format on paste.
Send ^c Sleep, 300 ; allot a small time slice for data to copy Clipboard=%Clipboard%
Basic examples:
clipboard = %clipboard% ; Convert any copied files, HTML, or other formatted text to plain text.
#5
-
Posted 16 September 2011 - 02:59 PM
Thanks you guys. Is that correct spelling though of walah? LOL
#6
-
Posted 16 September 2011 - 03:07 PM
I think you meant voilà, but we got the gist of it :wink: .
#7
-
Posted 16 September 2011 - 03:18 PM
I have another I wish can be fixed with ahk. I want like a feature from Word to change case.
From: mom. Please
To: mom, please
m. P
m, p
where:
m is inconsequential
P is variable
From: mom. Please
To: mom, please
m. P
m, p
where:
m is inconsequential
P is variable
F1:: send {delete} send ,, send {right} [color=red]?[/color] ; need to lowercase this return
#8
-
Posted 16 September 2011 - 10:06 PM
F1:: send {delete} send ,, send {right} send +{Right}^c ; need to lowercase this Sleep, 300 Clipboard=%Clipboard% ;send {delete} ;send ^v return
I dunno, it just highlighted P but not lowercasing it?
#10
-
Posted 16 September 2011 - 10:20 PM
I forgot StringLower :oops:
#11
-
Posted 17 September 2011 - 12:15 AM
F1::
send {delete}
send ,,
send {right}
send +{Right}
StringLower, OutputVar, InputVar
send ^c ; need to lowercase this
Sleep, 300
Clipboard=%Clipboard%
return
just highlight but no lower
send {delete}
send ,,
send {right}
send +{Right}
StringLower, OutputVar, InputVar
send ^c ; need to lowercase this
Sleep, 300
Clipboard=%Clipboard%
return
just highlight but no lower
#12
-
Posted 17 September 2011 - 12:36 AM
Look like a bit confused, You wrote
Try this:
but, where do you set InputVar ?send +{Right}
StringLower, OutputVar, InputVar
send ^c ; need to lowercase this
Try this:
F1:: send {delete} send ,, send {right} send +{Right} send ^c ; copy the Uppercase char StringLower, clipboard, clipboard ; lowercase it send ^v ; paste the char returnRegards,
#13
-
Posted 17 September 2011 - 07:42 AM