Search found 69 matches

by fwejifjjwk2
Today, 06:03
Forum: 请求帮助
Topic: 求一个上传图片到谷歌图片搜索的脚本
Replies: 6
Views: 121

Re: 求一个上传图片到谷歌图片搜索的脚本

sanmaodo 複製圖片到剪貼簿,然後 Run 下面這個腳本。 #Include UploadToImgur.ahk ; from ; https://www.autohotkey.com/boards/viewtopic.php?t=15697 try { result := UploadToImgur(clipboard) ;MsgBox, 64, Upload Successful!, % result Run, "https://www.google.com/searchbyimage?&image_url=%result%" } catch errMsg { MsgBox, 48...
by fwejifjjwk2
Today, 03:55
Forum: 请求帮助
Topic: 求一个上传图片到谷歌图片搜索的脚本
Replies: 6
Views: 121

Re: 求一个上传图片到谷歌图片搜索的脚本

@sanmaodo

另一個方法
1. 把圖片拖入 imgur
2. 用連結直接搜索 google image

要全部在後台處理的話
1. 用 imgur api 上傳圖片
2. 用連結直接搜索 google image

我講的都是純 AutoHotkey 的方法,謝謝。
by fwejifjjwk2
Yesterday, 07:54
Forum: 请求帮助
Topic: 求一个上传图片到谷歌图片搜索的脚本
Replies: 6
Views: 121

Re: 求一个上传图片到谷歌图片搜索的脚本

可以用 Pulover's Macro Creator 錄製之後看代碼就行了

複製本地圖片路徑
打開 Google 圖片搜索網頁
點擊以圖搜尋 -> 用坐標或圖片辨識
點擊上傳圖片 -> 方法同上
點擊瀏覽 -> 方法同上
直接插入圖片路徑
按下 Enter
by fwejifjjwk2
01 Oct 2020, 09:47
Forum: Ask For Help
Topic: Call WinHttpRequest ,but result is garbled, how can I solve it?
Replies: 2
Views: 106

Re: Call WinHttpRequest ,but result is garbled, how can I solve it?

translate.ahk #Include JSON.ahk #Include URIEncode.ahk sendToGoogleAPI(from_lang, to_lang, text_selected){ url = https://translate.googleapis.com/translate_a/single?dt=t&client=gtx&sl=%from_lang%&tl=%to_lang%&dj=1&ie=UTF-8&oe=UTF-8&q=%text_selected% whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") ...
by fwejifjjwk2
30 Sep 2020, 16:17
Forum: 请求帮助
Topic: 求助!调用WinHttpRequest 发送get请求 到谷歌翻译,如果发送的是中文,则翻译结果是乱码,请问怎么解决?
Replies: 2
Views: 780

Re: 求助!调用WinHttpRequest 发送get请求 到谷歌翻译,如果发送的是中文,则翻译结果是乱码,请问怎么解决?

translate.ahk #Include JSON.ahk #Include URIEncode.ahk sendToGoogleAPI(from_lang, to_lang, text_selected){ url = https://translate.googleapis.com/translate_a/single?dt=t&client=gtx&sl=%from_lang%&tl=%to_lang%&dj=1&ie=UTF-8&oe=UTF-8&q=%text_selected% whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") ...
by fwejifjjwk2
20 Sep 2020, 00:19
Forum: Ask For Help
Topic: Get Latest File On System
Replies: 10
Views: 494

Re: Get Latest File On System

use Everything command line Like you said it no different scan all folders for the latest file or in all drive. But it won't take forever. myFolder := "C:\Users\username\Pictures\temp\*.png" FileList := Loop, Files, %myFolder%, F FileList = %FileList%%A_LoopFileTimeModified%`t%A_LoopFileFullPath%`n...
by fwejifjjwk2
18 Sep 2020, 19:51
Forum: 请求帮助
Topic: 获取文件夹中最新的文件之路径
Replies: 1
Views: 969

Re: 获取文件夹中最新的文件之路径

指定資料夾內最後修改的文件移動到桌面 myFolder = %A_MyDocuments%\test destFolder = %A_Desktop% FileList = Loop, Files, %myFolder%\*.*, F ; Include Files FileList = %FileList%%A_LoopFileTimeModified%`t%A_LoopFileFullPath%`n ; 依照修改日期降序排列 Sort, FileList, R LastModifTimeandFilePath := SubStr(FileList, 1, InStr(FileList,"`...
by fwejifjjwk2
23 Aug 2020, 03:34
Forum: Bug Reports
Topic: FileRecycleEmpty command in recycle bin already empty's behavior
Replies: 4
Views: 2003

Re: FileRecycleEmpty command in recycle bin already empty's behavior

swagfag In AutoHotkey v1 and v2 older version no this error message. In PowerShell if we use command "Clear-RecycleBin" when recycle bin is empty no error too. So new version's error message give us any benefit ? If we think command is a "process". Of course we can't empty recycle bin when it alrea...
by fwejifjjwk2
22 Aug 2020, 10:29
Forum: Bug Reports
Topic: FileRecycleEmpty command in recycle bin already empty's behavior
Replies: 4
Views: 2003

FileRecycleEmpty command in recycle bin already empty's behavior

In new version 2020-08-18 compile from github.
If recyclebin is empty FileRecycleEmpty command will show "Failed".

Code: Select all

FileRecycleEmpty
FileRecycleEmpty "C:\"
by fwejifjjwk2
17 Aug 2020, 01:46
Forum: AutoHotkey v2 Help
Topic: global variable problem in new v2 version
Replies: 7
Views: 4016

Re: global variable problem in new v2 version

@swagfag
Thank you remaind me we can use gui object close gui. :facepalm:

Code: Select all

; in searchByOption() function
; WinClose(main_hwnd)
GuiCtrlObj.Gui.Submit(Hide := true)
@lexikos
Thanks. I make some syntax mistake.
by fwejifjjwk2
06 Aug 2020, 06:46
Forum: AutoHotkey v2 Help
Topic: global variable problem in new v2 version
Replies: 7
Views: 4016

Re: global variable problem in new v2 version

@swagfag
Thanks reply.
I update my post add full code.
Can you teach me how to send object to another function?
by fwejifjjwk2
06 Aug 2020, 00:19
Forum: AutoHotkey v2 Help
Topic: global variable problem in new v2 version
Replies: 7
Views: 4016

global variable problem in new v2 version

In new version my script's global variable show some error. In older version (maybe around 2020/03) no this problem. The different in below. Just let people know version's different. ;;; old version ; If variable not define it seens default define boolean False ; use #if ; gui listview syntax LV := ...
by fwejifjjwk2
22 Jun 2020, 11:20
Forum: 请求帮助
Topic: 模仿mac系统的回车重命名,遇到了一个问题 Topic is solved
Replies: 2
Views: 6982

Re: 模仿mac系统的回车重命名,遇到了一个问题 Topic is solved

話說如果你這樣設定之後,你要怎麼打開文件或軟體呢? ; from https://autohotkey.com/board/topic/109625-can-i-toggle-the-enter-key-when-renaming-files/ SetTitleMatchMode,RegEx #IfWinActive ahk_class CabinetWClass Enter:: if Rtoggle = 1 { SendInput, {Enter} Rtoggle := 0 } else { SendInput, {F2} Rtoggle := 1 } return #IfWinActive...
by fwejifjjwk2
03 Jun 2020, 15:44
Forum: AutoHotkey v2 Help
Topic: I wish ahk v2 have local function Topic is solved
Replies: 1
Views: 553

I wish ahk v2 have local function Topic is solved

I wish ahk v2 have local function.
So many people use lot of gosub. It hard to understand.
by fwejifjjwk2
26 Apr 2020, 00:11
Forum: Ask For Help
Topic: GUI buttons stop working after 10+ clicks
Replies: 2
Views: 271

Re: GUI buttons stop working after 10+ clicks

maybe not beacuse 42 line
by fwejifjjwk2
25 Apr 2020, 02:44
Forum: Ask For Help
Topic: hostkey send string in VSCode have some problem
Replies: 0
Views: 277

hostkey send string in VSCode have some problem

In AutoHotkey v1 and v2. Sometimes when I open new file with some text. And move cursor to end then it can't complete insert string :*R:test:: TimeString := FormatTime(A_Now,"yyyy-MM-dd") Send(TimeString) Return Sometimes it shows This is test.tmt2020-04 If no problem should be. This is test.2020-04...
by fwejifjjwk2
23 Apr 2020, 16:36
Forum: AutoHotkey v2 Help
Topic: GUI setting problem v2 Topic is solved
Replies: 8
Views: 884

Re: GUI setting problem v2 Topic is solved

@swagfag
Nothing. We can use option -WantReturn solve this problem.
by fwejifjjwk2
23 Apr 2020, 12:56
Forum: AutoHotkey v2 Help
Topic: GUI setting problem v2 Topic is solved
Replies: 8
Views: 884

Re: GUI setting problem v2 Topic is solved

@swagfag
Thanks again.
In my script use "r2" will get something wrong. "r1" is fine but "r2" seens make search failure.
by fwejifjjwk2
23 Apr 2020, 12:06
Forum: AutoHotkey v2 Help
Topic: GUI setting problem v2 Topic is solved
Replies: 8
Views: 884

Re: GUI setting problem v2 Topic is solved

@HotKeyIt Thanks a lot.
By the way I didn't understand the orther option like "xm" "r2" "x+1" "yp"

Go to advanced search