Search found 1769 matches

by malcev
10 Jul 2023, 20:01
Forum: Ask for Help (v1)
Topic: Brightness of light caught by camera
Replies: 2
Views: 205

Re: Brightness of light caught by camera

If You need to get brightness of image from camera, then You can use opencv for such a task
https://stackoverflow.com/questions/14243472/estimate-brightness-of-an-image-opencv
by malcev
10 Jul 2023, 01:05
Forum: Scripts and Functions (v1)
Topic: Run script as UIAccess with stealing token from system process.
Replies: 1
Views: 631

Run script as UIAccess with stealing token from system process.

Found interesting hack: how to execute script with UIAccess flag without using AutoHotkeyU64_UIA:, but with stealing token from system process. https://www.autoitscript.com/forum/topic/210526-make-your-program-super-topmost-uiaccess-udf/ On ahk can be run like this (need to run script as admin): #Si...
by malcev
10 Jul 2023, 00:54
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 382
Views: 56481

Re: UIA v2

I think that original author Александр_ will not answer on this question because his last post on the forum was about 10 years ago.
But lexikos explains it here:
viewtopic.php?p=497537#p497537
by malcev
09 Jul 2023, 11:06
Forum: Scripts and Functions (v2)
Topic: UIA v2
Replies: 382
Views: 56481

Re: UIA v2

https://learn.microsoft.com/en-us/windows/win32/winauto/uiauto-implementinginvoke Invoke is an asynchronous call and must return immediately without blocking. This behavior is particularly critical for controls that, directly or indirectly, launch a modal dialog when invoked. Any UI Automation clien...
by malcev
05 Jul 2023, 11:24
Forum: Ask for Help (v2)
Topic: Show PDF in AHK GUI
Replies: 17
Views: 1321

Re: Show PDF in AHK GUI

Spitzi, You need to enable adobe pdf reader activex in ie:
https://helpx.adobe.com/acrobat/using/display-pdf-in-browser.html
by malcev
04 Jul 2023, 07:54
Forum: Ask for Help (v2)
Topic: Send keys in lockscreen
Replies: 4
Views: 407

Re: Send keys in lockscreen

It can be done.
viewtopic.php?p=129830
viewtopic.php?f=6&t=27709
Or use PsExec.exe to run script from system account.
by malcev
03 Jul 2023, 14:04
Forum: Ask for Help (v1)
Topic: Translating with Deepl API
Replies: 38
Views: 6482

Re: Translating with Deepl API

For me it works ok: 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.Se...
by malcev
03 Jul 2023, 13:38
Forum: Ask for Help (v1)
Topic: Translating with Deepl API
Replies: 38
Views: 6482

Re: Translating with Deepl API

I changed deepl_translate(text) function. Copy it from last post. data = {"jsonrpc": "2.0", %method% "LMT_handle_texts", "id": %id%, "params": {"texts": [{"text": "%text%", "requestAlternatives": 0}], "splitting": "newlines", "lang": {"target_lang": "RO"}, "timestamp": %timestamp%, "commonJobParams"...
by malcev
03 Jul 2023, 13:18
Forum: Ask for Help (v1)
Topic: Translating with Deepl API
Replies: 38
Views: 6482

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.SetRequ...
by malcev
01 Jul 2023, 19:53
Forum: Ask for Help (v2)
Topic: Detect/interact with 3d objects
Replies: 3
Views: 529

Re: Detect/interact with 3d objects

I do not use ahk v2 and therefore cannot provide an example. I recommend You to go to my link on youtube and watch lessons how to detect objects in games using python+opencv, and then convert python code to ahk or just use python Also read this examples https://github.com/slyautomation/osrs_yolov5 h...
by malcev
01 Jul 2023, 14:20
Forum: Ask for Help (v1)
Topic: Translating with Deepl API
Replies: 38
Views: 6482

Re: Translating with Deepl API

deepl_translate(text) returns string.
by malcev
30 Jun 2023, 06:11
Forum: Ask for Help (v1)
Topic: Check for bluetooth device if connected
Replies: 12
Views: 2192

Re: Check for bluetooth device if connected

There are no such function BluetoothGetServiceState.
You need to search only for connected devices:
https://www.autohotkey.com/boards/viewtopic.php?p=404352#p404352
by malcev
30 Jun 2023, 06:08
Forum: About This Community
Topic: Constructive criticism
Replies: 24
Views: 9220

Re: Constructive criticism

Shikoweno, here We discuss about complexity ahk v2 vs ahk v1:
https://www.autohotkey.com/boards/viewtopic.php?f=81&t=113239
by malcev
28 Jun 2023, 15:01
Forum: Ask for Help (v1)
Topic: WIN 10/11: Can anyone else confirm if this library works on windows 11?
Replies: 14
Views: 939

Re: WIN 10/11: Can anyone else confirm if this library works on windows 11?

No. I just answered on topic starter question - send click to tray icon.
by malcev
26 Jun 2023, 15:12
Forum: Ask for Help (v1)
Topic: WIN 10/11: Can anyone else confirm if this library works on windows 11?
Replies: 14
Views: 939

Re: WIN 10/11: Can anyone else confirm if this library works on windows 11?

Ralf_Reddings200244, use iaccessible or uiautomation for such a task.
by malcev
17 Jun 2023, 06:58
Forum: Ask for Help (v1)
Topic: Looking for a little help, Swapping in source lines. etc
Replies: 4
Views: 324

Re: Looking for a little help, Swapping in source lines. etc

If Your task is to change xml values with ini values it can be done like this: Your ini should have section name on first line: ini: [settings] ;Player1 Device configuration P1Mode = RAWINPUT P1DeviceName = \\?\HID#VID_D209&PID_1602&MI_02#b&35eec36f&0&0000#{378de44c-56ef-11d1-bc8c-00a0c91405dd} ;Pla...

Go to advanced search