Is it possible to override existing commands?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Bruttosozialprodukt
Posts: 463
Joined: 24 Jan 2014, 22:28

Is it possible to override existing commands?

13 May 2020, 04:45

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.
BNOLI
Posts: 548
Joined: 23 Mar 2020, 03:55

Re: Is it possible to override existing commands?

13 May 2020, 05:26

Warum erinnert mich diese Anfrage jetzt an Homer S. ? :lol:
Remember to use [code]CODE[/code]-tags for your multi-line scripts. Stay safe, stay inside, and remember washing your hands for 20 sec !
User avatar
boiler
Posts: 16981
Joined: 21 Dec 2014, 02:44

Re: Is it possible to override existing commands?

13 May 2020, 07:03

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.
Bruttosozialprodukt
Posts: 463
Joined: 24 Jan 2014, 22:28

Re: Is it possible to override existing commands?

20 May 2020, 07:16

Dang, okay compiling my own version of AHK was not what I'm looking for. :/

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mikeyww, Rohwedder and 249 guests