Rich4rd

If Clipboard contains many words

Aug 29th, 2020
1,689
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. F2::
  2. ;If Clipboard contains many words. English-Japanese notes
  3. Clipboard := ""
  4. Send, ^c
  5.     ClipWait, 2
  6. If clipboard contains red,green,blue
  7.     StringReplace, Clipboard, Clipboard, red, あか, All ;aka
  8.     StringReplace, Clipboard, Clipboard, green, みどり, All ;midori
  9.     StringReplace, Clipboard, Clipboard, blue, あお, All ;ao
  10.    
  11. ToolTip, %Clipboard%
  12. Sleep, 2000
  13. ToolTip
  14. SendInput, {Text}%Clipboard%
  15.  
RAW Paste Data