I figured that the problem is not in the resolution of the monitor, but in the fact that any monitor configured to the left of the main monitor, having negative x coordinates, doesn't work.
Still, I don't really know how to resolve this problem..@deguix ?
Search found 11 matches
- 30 Oct 2023, 12:02
- Forum: Scripts and Functions (v1)
- Topic: NumpadMouse 2.0.3
- Replies: 2
- Views: 2040
- 30 Oct 2023, 09:42
- Forum: Scripts and Functions (v1)
- Topic: NumpadMouse 2.0.3
- Replies: 2
- Views: 2040
Re: NumpadMouse 2.0.3
Wow, very well made, organised and usefull script. Thank you!! :) I have a 3 monitors setup, of which one is an older one with a lower resolution. Anyway, the original script works just with the main display. I used SetDefaultMouseSpeed, 0 DllCall("SetCursorPos", "int", ToScreenCoordsCurrentX, "int"...
- 03 Jul 2023, 14:20
- Forum: Ask for Help (v1)
- Topic: Translating with Deepl API
- Replies: 38
- Views: 6660
Re: Translating with Deepl API
Yeah, I basically forgot to add #include json.ahk to the script.
Now it works, thank you!!
Now it works, thank you!!
- 03 Jul 2023, 13:50
- Forum: Ask for Help (v1)
- Topic: Translating with Deepl API
- Replies: 38
- Views: 6660
Re: Translating with Deepl API
Use like this: text := "hello" str := deepl_translate(text) obj := JSON.Load(str) MsgBox, % obj.result.texts[1].text deepl_translate(text) { static id := 12340000 static WinHTTP := ComObjCreate("WinHttp.WinHttpRequest.5.1") WinHTTP.Open("POST", "https://www2.deepl.com/jsonrpc", true) WinHTTP.SetReq...
- 03 Jul 2023, 13:24
- Forum: Ask for Help (v1)
- Topic: Translating with Deepl API
- Replies: 38
- Views: 6660
Re: Translating with Deepl API
Yep, it doesn't work. )
I've tried myself many times in that manner and in others, but it doesn't work.- 03 Jul 2023, 09:18
- Forum: Ask for Help (v1)
- Topic: Translating with Deepl API
- Replies: 38
- Views: 6660
Re: Translating with Deepl API
deepl_translate(text) returns string. Yes. I discovered that the problem was that JSON.Load() doesn't work when using deepl_translate(text) function in the same script. I don't know why. The solution was to run in the main script an auxiliary script in which I put the snippet with JSON class - i.e....
- 01 Jul 2023, 13:23
- Forum: Ask for Help (v1)
- Topic: Translating with Deepl API
- Replies: 38
- Views: 6660
Re: Translating with Deepl API
malcev I can't manage the code below to get it work. The problem is with the str variable defining line. If str = actual text, it works, but if str = a function / variable, it doesn't.. :-? #include C:\Program Files\AutoHotkey\JSON.ahk text := "hello" deepl_translate(text) { static id := 12340000 s...
- 30 Jun 2023, 14:02
- Forum: Ask for Help (v1)
- Topic: Translating with Deepl API
- Replies: 38
- Views: 6660
Re: Translating with Deepl API
malcev The function kinda works, but it returns something like this: (text := "wrong treatment?" and "requestAlternatives": 0 and "target_lang": "RO") {"jsonrpc":"2.0","id":12340001,"result":{"texts":[{"alternatives":[],"text":"tratament gre\u0219it?"}],"lang":"EN","lang_is_confident":false,"detect...
- 28 Jun 2023, 11:38
- Forum: Scripts and Functions (v1)
- Topic: Excel_Get
- Replies: 30
- Views: 14897
Re: Excel_Get
@Frasier it was very useful for me, thank you!
- 22 Nov 2022, 13:31
- Forum: Ask for Help (v1)
- Topic: RegExReplace, substitution challenge, multiple subpaterns Topic is solved
- Replies: 18
- Views: 2276
Re: RegExReplace, substitution challenge, multiple subpaterns Topic is solved
you could just post the script that does not work for you, along with the desired output. ^#8:: Global NewStr Global repl:={foo:"cat",boo:"dog",woo:"cow", "\d,\d":"aaa"} rgx:="" for key in repl rgx.=key "|" rgx:= "(.*?)(" rgx "$)(?CCallNewStr)" Clipboard := "" Sendinput ^c Clipwait newstr:="" RegEx...
- 17 Nov 2022, 09:20
- Forum: Ask for Help (v1)
- Topic: RegExReplace, substitution challenge, multiple subpaterns Topic is solved
- Replies: 18
- Views: 2276
Re: RegExReplace, substitution challenge, multiple subpaterns Topic is solved
A callout function is a good idea. This works NumpadSub:: Haystack := "foo boo abc woo moo xyz", newstr:="" RegExReplace(Haystack, "(.*?)(foo|boo|woo|$)(?CCallNewStr)") MsgBox,% NewStr CallNewStr(Match) { static repl:={"foo":"cat","boo":"dog","woo":"cow"} Global NewStr NewStr .= Match1 repl[Match2]...