0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AHK(AutoHotkey)を使い メールの定型文(署名)を作成する(Alt + X) 複数行の文字列送信は → 「Send」ではなく → 「Clipboar」 を経由すること!

Last updated at Posted at 2019-10-25

;--------------------------------------------------
!x:: ; Alt+x
;--------------------------------------------------

;Menuを使用する時に使用
ALT_X:

;現在クリップボードに入っているデータを Backup へ退避
Backup := ClipboardAll

Sleep,300

;IMEGetstateOFF()
;Sleep,300

;ここで新規メールの内容に貼り付ける内容を作成する メール最後に挿入する署名を作成
MailVar=●●です。
MailVar=%MailVar%以上`n ;←最後に改行マーク

Clipboard = %MailVar%

ClipWait , 3

;内容確認用
;MsgBox, %MailVar%

;【重要】データを Send するよりも クリップボードに入れて Ctrl + V (貼り付け)した方が凄く速いのでオススメです
Send ^v

Sleep,300

Send {Left 3}

Sleep,300

;退避させていたデータをクリップボードに戻す
Clipboard := Backup

Sleep,300

;IMEGetstateON()

Return
;--------------------------------------------------

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?