Code: Select all
#a::
{
Send {# up}
send, al
}
return
Code: Select all
send, {Blind} al ;
The real code works in google doc. it write "al" in subscript and open a comment on it, and past the content of the clipboard into it :
Code: Select all
#If WinActive("Google Docs ahk_class Chrome_WidgetWin_1")
#a::
{
send, ^; ; set upperscript
sleep, 100 ;
Send {# up} ; to release # key (otherwhise it sends #+a which log out)
send, al ;
sleep, 200 ; time to select
send, +{Left 2} ; select the "al"
sleep, 250
send, ^!m ; open the comment box
sleep, 100
send ^v ; past the clipboard
send ^{enter} ; save the comment
sleep 10
}
return