1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
^!SPACE:: { Winset, Alwaysontop, , A }
+T:: { __UrlA:="https://dict.youdao.com/result?word=" __UrlB:="&lang=en" __WebsiteName:="" clipboard_save:= clipboard clipboard:="" Send ^{c} Sleep 100 __keyWord:= clipboard Clipboard = %clipboard_save% if not __keyWord { if not __WebsiteName{ __WebsiteName:=__UrlA } InputBox, __keyWord,搜索关键字,%__WebsiteName%,,,150 } if (ErrorLevel=0 and __keyWord!=""){ VarSetCapacity(__Var, StrPut(__keyWord, "UTF-8"), 0) StrPut(__keyWord, &__Var, "UTF-8") f := A_FormatInteger SetFormat, IntegerFast, H While __Code := NumGet(__Var, A_Index - 1, "UChar") If (__Code >= 0x30 && __Code <= 0x39 || __Code >= 0x41 && __Code <= 0x5A || __Code >= 0x61 && __Code <= 0x7A) __Res .= Chr(__Code) Else __Res .= "%" . SubStr(__Code + 0x100, -1) SetFormat, IntegerFast, %f% Run %__UrlA%%__Res%%__UrlB% __Res:="" __Var:="" } _keyWord:="" Return }
+A:: { __UrlA:="https://cn.bing.com/images/search?q=" __UrlB:="&qs=n&form=QBIR&sp=-1&lq=0&pq=tuna&sc=10-4&cvid=78EEC2FA15E44A6B8B130E90EE2064B9&ghsh=0&ghacc=0&first=1" __WebsiteName:="" clipboard_save:= clipboard clipboard:="" Send ^{c} Sleep 100 __keyWord:= clipboard Clipboard = %clipboard_save% if not __keyWord { if not __WebsiteName{ __WebsiteName:=__UrlA } InputBox, __keyWord,搜索关键字,%__WebsiteName%,,,150 } if (ErrorLevel=0 and __keyWord!=""){ VarSetCapacity(__Var, StrPut(__keyWord, "UTF-8"), 0) StrPut(__keyWord, &__Var, "UTF-8") f := A_FormatInteger SetFormat, IntegerFast, H While __Code := NumGet(__Var, A_Index - 1, "UChar") If (__Code >= 0x30 && __Code <= 0x39 || __Code >= 0x41 && __Code <= 0x5A || __Code >= 0x61 && __Code <= 0x7A) __Res .= Chr(__Code) Else __Res .= "%" . SubStr(__Code + 0x100, -1) SetFormat, IntegerFast, %f% Run %__UrlA%%__Res%%__UrlB% __Res:="" __Var:="" } _keyWord:="" Return }
+S:: { ClipSaved := ClipboardAll FilePath := "C:\Users\DELL\Desktop\picture.docx" if FileExist(FilePath) { Run, % "winword.exe " . FilePath } else { MsgBox, The file path is invalid or the file does not exist. return } WinWait, ahk_class OpusApp, , 10
WinActivate, ahk_class OpusApp
WinWaitActive, ahk_class OpusApp, , 10 Send ^v Clipboard := ClipSaved ClipSaved := "" return }
|