Search found 20 matches

by GothicIII
25 May 2023, 16:46
Forum: Ask for Help (v2)
Topic: Pseudo-Multithread a function from object class possible? Topic is solved
Replies: 1
Views: 314

Re: Pseudo-Multithread a function from object class possible? Topic is solved

Puuh. Spend whole day to get this working. I am not a programming expert so I didn't know it was such an obvious way. I refractured the code and seperated the whole plugin logic into a second script. The main script only send/receives websocket events and executes the plugin script if required with ...
by GothicIII
25 May 2023, 16:38
Forum: Ask for Help (v2)
Topic: Switch display input back to current display input (HDMI/DP) Topic is solved
Replies: 4
Views: 707

Re: Switch display input back to current display input (HDMI/DP) Topic is solved

I've got a monitor with DP and 2x HDMI inputs. PC is DP and device is HDMI. If I turn on 'device' the input signal is automatically switched to the HDMI input. If I turn 'device' off, the monitor stays black and does not switch back. That is my problem. Since the GPU is not able to provide HDMI2.1 I...
by GothicIII
25 May 2023, 03:53
Forum: Ask for Help (v2)
Topic: How can i use static variables
Replies: 10
Views: 1238

Re: How can i use static variables

Yes, boiler is right. I misunderstood the problem. Sorry for wasting your time.
by GothicIII
25 May 2023, 03:46
Forum: Ask for Help (v2)
Topic: How can i use static variables
Replies: 10
Views: 1238

Re: How can i use static variables

You are missing the 'Return TimerOne' statement in timer1()
by GothicIII
25 May 2023, 03:22
Forum: Ask for Help (v2)
Topic: How can i use static variables
Replies: 10
Views: 1238

Re: How can i use static variables

Call timer1() like this: { TimerOne:=timer1(TimerOne) } edit timer1() function to pass arguments like this: timer1(TimerOne){ TimerOne:=0 Return TimerOne } Like boiler said, static variables are local. You have to pass the variables to each function. So in this example TimerOne from main()!=TimerOne...
by GothicIII
25 May 2023, 03:03
Forum: Ask for Help (v2)
Topic: Pseudo-Multithread a function from object class possible? Topic is solved
Replies: 1
Views: 314

Pseudo-Multithread a function from object class possible? Topic is solved

Hello, So I'm writing streamdeck plugins and they are each combined into one library since I don't want to spawn a process for each one. Everything works as expected but I am having issues when one plugin enters a cycle state e.g. runwait() or loop() etc. This causes the other plugins to freeze. Any...
by GothicIII
25 May 2023, 02:06
Forum: Ask for Help (v2)
Topic: Switch display input back to current display input (HDMI/DP) Topic is solved
Replies: 4
Views: 707

Re: Switch display input back to current display input (HDMI/DP) Topic is solved

To answer my own question: The CEC spec must be supported by the hardware (and driver) and AFAIK at least Nvidia (I believe AMD too) cards do NOT support this at all. What exists is a CEC Usb adapter which connects to the HDMI port. The CEC signal is then send over USB. I can't find anything about C...
by GothicIII
17 May 2023, 15:45
Forum: Ask for Help (v2)
Topic: Switch display input back to current display input (HDMI/DP) Topic is solved
Replies: 4
Views: 707

Switch display input back to current display input (HDMI/DP) Topic is solved

Hello, so I've got a script that builds through dllcalls a monitor-handle and uses that to send/get VCP-Codes directly to the monitor. For those who don't know: VCP stands for virtual control panel and is part of a monitor control command set (mccs) which is a lowlevel api for controlling your monit...
by GothicIII
14 Jan 2023, 16:50
Forum: Ask for Help (v2)
Topic: Help combining AHKv2-Scripts with elgato Stream Deck.
Replies: 9
Views: 2066

Re: Help combining AHKv2-Scripts with elgato Stream Deck.

@geek Thanks for clearifying my mistake. I was under the impression that IE11 is long gone. That's why I assumed it was an edge instance. I pretty much used your code as base for the websocket connection because it just worked. Never did anything with websockets before but I regret that I implemente...
by GothicIII
13 Jan 2023, 12:14
Forum: Ask for Help (v2)
Topic: Completely hiding a GUI does not work v2.0.2
Replies: 4
Views: 563

Re: Completely hiding a GUI does not work v2.0.2

Nope. Both GUIs are showing in foreground.

EDIT: Just to be clear:
Both GUIs should be completely invisible to the user. No Taskbar, no TrayIcon, no Window. And it must remain active to be able to process data.
by GothicIII
13 Jan 2023, 09:15
Forum: Ask for Help (v2)
Topic: Completely hiding a GUI does not work v2.0.2
Replies: 4
Views: 563

Completely hiding a GUI does not work v2.0.2

Hello again, I upgraded AHK to v2.0.2 from v2.0b-4 and just realized that my hidden GUI does not work anymore. I am spawning an Edge browser session pointing to a local page and using that to execute JS code. I do this for websocket communication for the StreamDeck library I just released. Here is a...
by GothicIII
13 Jan 2023, 08:34
Forum: Ask for Help (v2)
Topic: Help combining AHKv2-Scripts with elgato Stream Deck.
Replies: 9
Views: 2066

Re: Help combining AHKv2-Scripts with elgato Stream Deck.

I released the code on Github together with an example program.

It is very barebones and in an early stage but it gets the job done. I'll expand and improve it over time.

https://github.com/GothicIII/AHK_StreamDeck_lib
by GothicIII
09 Jan 2023, 08:37
Forum: Ask for Help (v2)
Topic: Help combining AHKv2-Scripts with elgato Stream Deck.
Replies: 9
Views: 2066

Re: Help combining AHKv2-Scripts with elgato Stream Deck.

I've got it working :) After I installed a standalone websocket server and was able to debug the connection messages I realized that the JSON I send as a registerEvent had multiple spaces inside the brackets. That was enough that the connection was silently rejected by the StreamDeck software. Now t...
by GothicIII
09 Jan 2023, 05:51
Forum: Ask for Help (v2)
Topic: Help combining AHKv2-Scripts with elgato Stream Deck.
Replies: 9
Views: 2066

Re: Help combining AHKv2-Scripts with elgato Stream Deck.

Any documentation/examples on the websocket.ahk class? It relies solely on dllcalls for winhttp. They are undocumented and I do not get a respond for sending a buffer to the websocket server. As for the 2nd part. StreamDeckSharp is a library that communicates with the streamdeck driver by itself. It...
by GothicIII
04 Jan 2023, 16:01
Forum: Ask for Help (v2)
Topic: Hotkey fires randomly when held down... + Performance question
Replies: 2
Views: 527

Re: Hotkey fires randomly when held down... + Performance question

I forgot to answer this :( This was no AHK problem. It was a Windows problem. My a::b example was too simple. I wrote the german Umlauts (e.g. ä) with Ralt+a. The problem manifested because despite having a US-Layout keyboard windows was still detecting RALT as ALT-GR and it did this sporadically wh...
by GothicIII
04 Jan 2023, 15:23
Forum: Ask for Help (v2)
Topic: Help combining AHKv2-Scripts with elgato Stream Deck.
Replies: 9
Views: 2066

Help combining AHKv2-Scripts with elgato Stream Deck.

Hello there, Got a Stream Deck recently. Now I want to integrate my AHKv2-scripts on it. I heavily rely on AHKv2 and internal system calls (dllcall) for achieving my goals on windows. Since just calling them is a really boring I want to dynamically change the icons on the stream deck depending e.g. ...
by GothicIII
05 Jun 2022, 10:36
Forum: Ask for Help (v2)
Topic: Hotkey fires randomly when held down... + Performance question
Replies: 2
Views: 527

Hotkey fires randomly when held down... + Performance question

Hello there, maybe there is a simple solution to this. Assume a hotkey like this: a::b If I press it one at a time, it works. But when I hold it, it makes a sequence like this: bbbabbababbaabba Is this expected behavior and I need to use smth like GetKeyState() to fix it? Bonus question: How hard is...
by GothicIII
20 May 2022, 04:10
Forum: Ask for Help (v2)
Topic: Color functions. Only 8bit RGB supported?
Replies: 7
Views: 1224

Re: Color functions. Only 8bit RGB supported?

@iPhilip Yeah thanks for confirming the problem. Seems I am the 1st one digging into it. I thought HDR is not that niche on PC. What a bummer. I scrolled over some of the documentation you linked and also followed the further links but currently I don't see any easy solution here especially not for ...
by GothicIII
17 May 2022, 07:47
Forum: Ask for Help (v2)
Topic: Color functions. Only 8bit RGB supported?
Replies: 7
Views: 1224

Re: Color functions. Only 8bit RGB supported?

Thanks for correcting me. My code works when I try to get the pixel color out of a dx12 application when rendered in SDR (8bit depth for each color channel). Since the pixels I check are not transparent, the alpha channel can be ignored. The problem comes up when I switch to HDR (deep color) mode. M...
by GothicIII
17 May 2022, 04:45
Forum: Ask for Help (v2)
Topic: Color functions. Only 8bit RGB supported?
Replies: 7
Views: 1224

Color functions. Only 8bit RGB supported?

Hello ahk community, my goal is to simply read RGB values from a pixel to compare them against other values. While the 8bit colorpalette is working fine (0x00BBGGRR) I have difficulties to realize this with 10/12bit depth content. Many areas are returning 0xFFFFFF as color which translates to white ...

Go to advanced search