Page 1 of 1

Is it possible to override existing commands?

Posted: 13 May 2020, 04:45
by Bruttosozialprodukt
I would like to know if there is a way to override the behaviour of commands like Click and Send. I would like to use existing scripts that make use of these commands and I don't want to change them by writing custom functions.

I have a modified keyboard that can be controlled over the network and I would like "Send" to tell my keyboard over the network to press certain keys so that they become completely indistinguishable from physical keypresses, instead of virtually pressing them through software.

Re: Is it possible to override existing commands?

Posted: 13 May 2020, 05:26
by BNOLI
Warum erinnert mich diese Anfrage jetzt an Homer S. ? :lol:

Re: Is it possible to override existing commands?

Posted: 13 May 2020, 07:03
by boiler
It would seem that to accomplish this, you need a different version of AHK, so you could modify the source code and compile a new version that would interpret Send and Click differently. Short of that, I don’t see an option other than to write custom functions and replace them in your code.

Re: Is it possible to override existing commands?

Posted: 20 May 2020, 07:16
by Bruttosozialprodukt
Dang, okay compiling my own version of AHK was not what I'm looking for. :/