Search found 17 matches

by MrHue
18 May 2023, 01:49
Forum: Scripts and Functions (v1)
Topic: CbAutoComplete - Auto-completes typed values in a ComboBox
Replies: 17
Views: 9880

Re: CbAutoComplete - Auto-completes typed values in a ComboBox

v2 update msgbox ComboBox(["abc","b","c"]) msgbox ComboBox(["abc","b","c"]) msgbox ComboBox(["abcd","b","c"]) Combobox(prompt,timeout:=90) { ; Prompt = array of choices static ComboBox, Choice, LastPrompt if !IsSet(ComboBox) { Combobox := Gui("-Caption -Border"), Combobox.OnEvent("Escape", CbEscape)...
by MrHue
24 Jan 2022, 03:12
Forum: Scripts and Functions (v1)
Topic: LibCurl for AHK
Replies: 4
Views: 3556

Re: LibCurl for AHK

Thank you very much for sharing this library! I learnt a lot from your source! I tested it very briefly. Compared to WinInet / WinHttp / XmlHttp, some advantages of Libcurl are - support for other protocols FTP/SMTP etc (WinInet also supports FTP) - TLS1.3 support (Windows 11 supports it) - decode g...
by MrHue
13 Jan 2022, 05:07
Forum: Ask for Help
Topic: How to load mingw version DLL?
Replies: 3
Views: 2985

Re: How to load mingw version DLL?

For x64 https://packages.msys2.org/package/mingw-w64-x86_64-brotli br_decode(byref pComprData, comprLen, ByRef uncompr) { static brotli := A_ScriptDir "\libbrotlidec.dll" ; specify exact path because LoadLibary may otherwise return module not found if !hlib1 := DllCall("LoadLibrary", Str, A_ScriptDi...
by MrHue
24 Dec 2021, 00:57
Forum: Ask for Help (v1)
Topic: Making this awesome Google Translate Script work for DeepL Topic is solved
Replies: 40
Views: 12773

Re: Making this awesome Google Translate Script work for DeepL Topic is solved

Thank you. I couldn't test the program because I don't have Final Fantasy XIV installed but I see the program source was changed a few days ago. I will change my ID generation to try match the algorithm that it is using. Random Rnd; Rnd = new Random((int)Math.Round(DateTime.Now.TimeOfDay.TotalMillis...
by MrHue
23 Dec 2021, 04:43
Forum: Ask for Help (v1)
Topic: Making this awesome Google Translate Script work for DeepL Topic is solved
Replies: 40
Views: 12773

Re: Making this awesome Google Translate Script work for DeepL Topic is solved

This is the initial code that got banned. The returned text should be translated text in json format. DeepL(byref text,source_lang:="ja",target_lang:="zh") ; converts input text to json multisentence format and returns translated text in json format { static DeepLId static WinHTTP := ComObjCreate("W...
by MrHue
23 Dec 2021, 04:22
Forum: Ask for Help (v1)
Topic: Making this awesome Google Translate Script work for DeepL Topic is solved
Replies: 40
Views: 12773

Re: Making this awesome Google Translate Script work for DeepL Topic is solved

It works initially but perhaps after twenty tries I got banned. I think after a certain number of non-browser request from an ip, DeepL will ban that ip (I think it's not the time interval between requests, but rather how many times). It should be possible to mimick browser requests but it's rather ...
by MrHue
22 Dec 2021, 08:49
Forum: Ask for Help (v1)
Topic: Making this awesome Google Translate Script work for DeepL Topic is solved
Replies: 40
Views: 12773

Re: Making this awesome Google Translate Script work for DeepL Topic is solved

The github page you pointed to (https://github.com/NightlyRevenger/TataruHelper/tree/master/Translation) initialises the ID to a random number that is then incremented between calls, so that's why I tried random IDs. Not sure if it is truely random though. A fragment of the javascript translator_lat...
by MrHue
18 Dec 2021, 10:52
Forum: Ask for Help (v1)
Topic: Making this awesome Google Translate Script work for DeepL Topic is solved
Replies: 40
Views: 12773

Re: Making this awesome Google Translate Script work for DeepL Topic is solved

Hi Iskander, It seems DeepL might be monitoring number of attempts of translation coming from a particular IP address. It doesn't seem to be related to be the id used in the json request or cookies or browser or the interval between attempts. I was testing the script, each time taking more than 12 s...
by MrHue
19 Oct 2021, 08:05
Forum: Ask for Help (v1)
Topic: Can anyone implement a simple tesseract dllcall example? Topic is solved
Replies: 16
Views: 4301

Re: Can anyone implement a simple tesseract dllcall example? Topic is solved

Thanks to swagfag I made sample script below to demonstrate use of using Tesseract to ocr a file and screenshot using pixReadMemBmp / TessBaseAPISetImage. Uncomment the line with out.bmp to see output of screenshot #NoEnv ; Don't check empty variables to see if they are environment variables (signif...
by MrHue
17 Sep 2021, 07:58
Forum: Gaming Help (v1)
Topic: Help me, search image Topic is solved
Replies: 9
Views: 2181

Re: Help me, search image Topic is solved

Animations are very difficult to search for. I would try not to search for that blinking shrinking yellow square if possible. If you just want to click on the square with animation, then why not have the script click on all the squares? Alternatively, if it's a daily event, have the script click on ...
by MrHue
17 Sep 2021, 06:31
Forum: Ask for Help (v1)
Topic: Invalid Handle error using PID from Process, Exist [Solved] Topic is solved
Replies: 2
Views: 337

Invalid Handle error using PID from Process, Exist [Solved] Topic is solved

I am trying to get some process info for my AHK script. However, the DllCalls return 0 and A_GetlastError is 6 (invalid handle). What am I doing wrong please? hProcess := DllCall("GetCurrentProcessId") ; returns same PID as Process, Exist , GuiObjects := DllCall("GetGuiResources", "Ptr", hProcess, "...
by MrHue
20 Apr 2020, 03:52
Forum: Scripts and Functions (v1)
Topic: CbAutoComplete - Auto-completes typed values in a ComboBox
Replies: 17
Views: 9880

Re: CbAutoComplete - Auto-completes typed values in a ComboBox

Many thanks to Pulover, A_AhkUser, and D Rocks for this function. I had problems calling CbAutoComplete because my combobox GUI is inside a function and GuiControl and GuiControlGet do not work when the GUI variables are static instead of global. So I modified it to use control handles instead (whic...
by MrHue
13 Sep 2018, 11:10
Forum: Scripts and Functions (v1)
Topic: UnRar.dll script
Replies: 0
Views: 1392

UnRar.dll script

Hi all, See below for a demo script to batch extract rar files using unrar.dll (newest version). UnRAR dlls can be downloaded from https://rarlab.com/rar_add.htm Place both UnRAR.dll and UnRAR64.dll in the same directory as the script. Place passwords in password.txt (UTF-8 encoded) Script features ...
by MrHue
16 Sep 2016, 00:52
Forum: Ask for Help (v1)
Topic: dynamic menu new row - screen height - no manual barBreak
Replies: 12
Views: 2943

Re: dynamic menu new row - screen height - no manual barBreak

Try this: SysGet, MenuBarHeight, 15 MaxMenuItemCount := A_ScreenHeight // MenuBarHeight - 4 buildMenu("C:\Windows", MaxMenuItemCount, "mymenu") return RunThis: MsgBox, %A_ThisMenu% : %A_ThisMenuItem% return buildmenu(folder, MaxMenuItemCount, myMenu) { Loop, %folder%\* If Mod(A_Index+1,MaxMenuItemCo...
by MrHue
05 Dec 2015, 04:57
Forum: Other Utilities & Resources
Topic: [CMD] Keyhh - chm keyword lookup from the command-line
Replies: 5
Views: 4746

Re: [CMD] Keyhh - chm keyword lookup from the command-line

WebArchive gave an error file not found.
Alternative Mirror site: http://keyworks.helpmvp.com/
.
by MrHue
04 Dec 2015, 08:16
Forum: Wish List
Topic: Citrix Client Object
Replies: 3
Views: 4601

Re: Citrix Client Object

Here's a brief thing to get started. It took me forever to figure out this much :(. Good luck. If A_Is64bitOS { ; Need the following Regkeys, if get access denied in Win7, create them manually using RegEdit GUID := "{238F6F83-B8B4-11CF-8771-00A024541EE3}" RegRead, test, HKCR, Wow6432Node\CLSID\%GUID...
by MrHue
18 Nov 2015, 03:55
Forum: Bug Reports
Topic: Context Hotkeys missed in GUI's if RegisterRawInputDevices active
Replies: 0
Views: 1489

Context Hotkeys missed in GUI's if RegisterRawInputDevices active

I have encountered a strange behaviour in AHK v1.1.2207. If RegisterRawInputDevices has been registered, GUI's will fail to pick up context specific hotkeys (e.g. F1) for the GUI, but keyboard accelerators work. A way to get around it is to enable & disable RawInputDevices as needed. Keyboard hookin...

Go to advanced search