Search found 9 matches

by akaza_dorian
16 Jan 2023, 20:54
Forum: AutoHotkey_H
Topic: AutoHotkey.Interop SendPipeMessage() Eats 4GB RAM
Replies: 1
Views: 1853

Re: AutoHotkey.Interop SendPipeMessage() Eats 4GB RAM

Seems like a born nature of the pipe implementation, I've tried another approach which worked quite well: https://github.com/amazing-andrew/AutoHotkey.Interop/issues/9#issuecomment-314519379
by akaza_dorian
16 Jan 2023, 19:49
Forum: AutoHotkey_H
Topic: AutoHotkey.Interop SendPipeMessage() Eats 4GB RAM
Replies: 1
Views: 1853

AutoHotkey.Interop SendPipeMessage() Eats 4GB RAM

It's basically here: https://github.com/AkazaRenn/FruitLanguageSwitcher/blob/dev/minimalist/Core/Hotkey.cs Regularly the compiled program consumes like 80MB RAM, but once either of the hotkeys that involves SendPipeMessage is triggered, the memory usage bumps up to 4GB for about 10 sec, then get bac...
by akaza_dorian
29 Aug 2022, 08:29
Forum: Ask for Help (v1)
Topic: PostMessage from AHK to C++ Console Program
Replies: 4
Views: 771

Re: PostMessage from AHK to C++ Console Program

teadrinker wrote:
28 Aug 2022, 19:15
Unfortunately, I don't write in C++, so I'm not sure I can give the best advice. Maybe someone else can help.
No worries! Still, thank you for the help!
by akaza_dorian
28 Aug 2022, 18:33
Forum: Ask for Help (v1)
Topic: PostMessage from AHK to C++ Console Program
Replies: 4
Views: 771

Re: PostMessage from AHK to C++ Console Program

You can send/post messages to a window, not to a process. If process has no windows, it can't handle messages. Thank you for the info! In that case, what will be the recommended way to achieve that? My two ideas were 1. C++ register some other "complicated" hotkeys and let AHK to send it out: easy ...
by akaza_dorian
28 Aug 2022, 15:13
Forum: Ask for Help (v1)
Topic: PostMessage from AHK to C++ Console Program
Replies: 4
Views: 771

PostMessage from AHK to C++ Console Program

Hi all, I'm trying to use AHKDLL to replace a few OS hotkeys for my C++ program, and prior to that I was testing if PostMessage works with standalone AHK sending message to the C++ side. The problem is that, it just doesn't work, no message being received by the C++ side at all. Here are my codes: C...
by akaza_dorian
07 Apr 2020, 10:46
Forum: Ask for Help (v1)
Topic: Change func for both single and double press Topic is solved
Replies: 2
Views: 282

Change func for both single and double press Topic is solved

I'm trying to make the CapsLock key macOS like, and here's the code: CapsLock:: If (A_ThisHotkey = A_PriorHotkey and A_TimeSincePriorHotkey < 200) { SetCapsLockState % !GetKeyState("CapsLock", "T") } else { ; needs tweak, now it will be triggered on double press Send, ^#{Space} } Return The problem ...
by akaza_dorian
02 Dec 2019, 19:31
Forum: Ask for Help (v1)
Topic: Remapping win+space to ctrl+win+space only for the first hit Topic is solved
Replies: 2
Views: 1501

Re: Remapping win+space to ctrl+win+space only for the first hit Topic is solved

rommmcek wrote:
01 Dec 2019, 16:32
Useful suggestions, try this:

Code: Select all

LWin & Space::
    Send, ^#{Space}
    Hotkey,  LWin & Space, Off
Return

LWin Up::Hotkey, LWin & Space, On

Esc::ExitApp ; optinal
It works perfectly! Thank you so much!
by akaza_dorian
30 Nov 2019, 16:04
Forum: Ask for Help (v1)
Topic: Remapping win+space to ctrl+win+space only for the first hit Topic is solved
Replies: 2
Views: 1501

Remapping win+space to ctrl+win+space only for the first hit Topic is solved

Hi, I'm trying to change how the Windows language switch hotkey works to be like Gnome. As far as ctrl+win+space is changing to the last language used, I want to map win+space to it for the first occurrence. The logic should be: for the first time I hit win+space, it will be remapped to ctrl+win+spa...

Go to advanced search