; 最初のテキストフィールドに移動 #If, WinActive("ahk_class Chrome_WidgetWin_1") ^+u:: ; ホールド対策 KeyWait, Ctrl, Up KeyWait, Shift, Up stash := ClipBoardAll ; [type='text']がないとGoogleで反応しないため、ここでは明示的にsearchとtextを指定 ClipBoard := "element = document.querySelector(""input[type='search'], input[type='text']"");element.select();element.scrollIntoView();" ClipWait, 1 Send, ^l ; "javascript:"は貼り付けできない Send, {vkF2}{vkF3}javascript: Sleep, 100 Send, ^v Sleep, 100 Send, {Enter} Sleep, 10 ClipBoard := stash stash := "" Return #If