Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #IfWinnotActive, ahk_class TElWind ; TElWind is the "class". Idk if other SM versions also have the same class name. I don't even know what a class is tbh.
- !x::
- send, ^c ; copies your selected texxt
- sleep, 100
- if extracts
- extracts =%extracts%`n`n%clipboard% ; puts the stuff it copied in a variable, plus the extracts already in the variable
- else
- extracts = %clipboard%
- send, {up}
- return
- !r::
- extracts = ; resets
- return
- !c::
- msgbox, %extracts% ; shows content, except for images
- return
- >^s::
- FileAppend,%extracts%, extracts.txt ; Creates a file where the script is located
- msgbox ,,, extracts saved to %A_WorkingDir%, 2.5
- return
- #IfWinActive, ahk_class TElWind
- >^v::
- clipboard = %extracts% ; here it puts the extracts from the variable into the clipboard and paste it. using the send command is too slow
- sleep, 100
- send, ^v
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement