Need Help with AutoHotkey Script for DeepL API Translation

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
User avatar
mikeyww
Posts: 26972
Joined: 09 Sep 2014, 18:38

Re: Need Help with AutoHotkey Script for DeepL API Translation

27 Mar 2024, 08:03

The request might have timed out. You could see if altering the timeouts helps.

https://learn.microsoft.com/en-us/previous-versions/windows/desktop/ms760403(v=vs.85)

Code: Select all

whr.SetTimeouts(0, 30000, 30000, 600000)
Others here will know more. There may also be other forum posts about this.
User avatar
tiska
Posts: 26
Joined: 21 Mar 2024, 10:48

Re: Need Help with AutoHotkey Script for DeepL API Translation

07 Apr 2024, 23:21

Okay, so I seem to have solved the timeout issue by configuring my network settings to use the IP addresses 8.8.8.8 and 8.8.4.4 (Google) as my DNS servers.
User avatar
tiska
Posts: 26
Joined: 21 Mar 2024, 10:48

Re: Need Help with AutoHotkey Script for DeepL API Translation

07 Apr 2024, 23:37

@mikeyww, could you please assist me in incorporating the glossary management feature into the current script? Specifically, I need help adapting the AHK 2 script to perform the following functions: creating a glossary, listing existing glossaries, retrieving glossary details, retrieving glossary entries, and deleting glossaries. Please refer to the following page: https://developers.deepl.com/docs/api-reference/glossaries.

Here's a rough idea of what the script should do:

Code: Select all

; Create a new glossary
^g::
    ; Make an HTTP request to create a glossary
    ; Glossary creation logic
    MsgBox, Creating a new glossary...
return

; List all created glossaries
^l::
    ; Make an HTTP request to list glossaries
    ; Glossary listing logic
    MsgBox, Listing glossaries...
return

; Get details about a specific glossary
^d::
    ; Make an HTTP request to get glossary details
    ; Glossary details retrieval logic
    MsgBox, Retrieving glossary details...
return

; List entries of a glossary
^e::
    ; Make an HTTP request to list glossary entries
    ; Glossary entries listing logic
    MsgBox, Listing glossary entries...
return

; Delete a glossary
^x::
    ; Make an HTTP request to delete a glossary
    ; Glossary deletion logic
    MsgBox, Deleting glossary...
return
User avatar
mikeyww
Posts: 26972
Joined: 09 Sep 2014, 18:38

Re: Need Help with AutoHotkey Script for DeepL API Translation

08 Apr 2024, 06:52

Your new question appears unrelated to your initial question. I recommend starting a new thread.

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: alawsareps, Bing [Bot], jamith and 137 guests