Code: Select all
;alt-= remove caret
!=::
sendinput, ^a^c
in_put:="^"
out_put:=""
clipboard:=strreplace(clipboard, in_put, out_put) ; OR clipboard:=regexreplace(clipboard, in_put, out_put)
sendinput, ^v
return
Code: Select all
;alt-= remove caret
!=::
sendinput, ^a^c
in_put:="^"
out_put:=""
clipboard:=strreplace(clipboard, in_put, out_put) ; OR clipboard:=regexreplace(clipboard, in_put, out_put)
sendinput, ^v
return
Code: Select all
;alt-= remove caret
!=::
clipboard:=
sendinput, ^a^c
msgbox, 1%clipboard%
in_put:="^"
out_put:=""
clipboard:=strreplace(%clipboard%, in_put, out_put)
msgbox, 2%clipboard%
sendinput, %clipboard%
return
Code: Select all
!=:: ; hotkey Alt + "="
clipboard:=
sendinput, ^a^c
ClipWait
msgbox, 1%clipboard%
in_put:="^"
out_put:=""
clipboard:=strreplace(clipboard, in_put, out_put)
msgbox, 2%clipboard%
sendinput, %clipboard%
return
Code: Select all
!=:: ; hotkey Alt + "="
clipboard:=
sendinput, ^a^c
ClipWait
msgbox, 1%clipboard%
in_put:="^"
out_put:=""
clipboard:=strreplace(clipboard, in_put, out_put)
Clipboard := RTrim(Clipboard, "`r`n") ; <-- here
msgbox, 2%clipboard%
sendinput, %clipboard%
return
Code: Select all
;alt-shift-9 remove caret
!+9::
file_name:= "temp.txt"
if FileExist(file_name)
filedelete, file_name
page_in:=
page_out:=
sendinput, ^a^c
clipwait
fileappend, file_name, *c %clipboardall%
msgbox %clipboardall% ;this is empty!!
clipwait
fileread, page_in, *c file_name
;Msgbox %page_in%
in_put:="^"
out_put:=""
page_out:=strreplace(page_in, in_put, out_put)
sendinput, %page_out%
return
Code: Select all
!+9:: ; alt-shift-9 remove caret
sendinput, ^a^c
clipwait
newText := Clipboard
newText := StrReplace(newText, "^")
; when done with the text manipulation, we can copy back to Clipboard
Clipboard := newText
sendinput, ^v ; <- here I suggest to writing to a file to avoid sending stuff to wrong place
return
Code: Select all
!+9::
newText:=
sendinput, ^a^c
clipwait,
newText:= clipboard
;msgbox, %newText%
newText := StrReplace(newText, "^")
clipwait, ;msgbox, %newText%
clipboard := newText ;when done with the text manipulation, we can copy back to Clipboard
sendinput, ^v ; <- here I suggest to writing to a file to avoid sending stuff to wrong place
return