None of the Send commands work in a specific app

Ask gaming related questions (AHK v1.1 and older)
surok
Posts: 5
Joined: 06 Nov 2022, 06:21

None of the Send commands work in a specific app

06 Nov 2022, 06:37

I'm trying to make a tool to work with a second window in Lineage 2 game. But so far i can't even make this simple script to work, game just doesn't react to any variation of Send command. I've tried to use Send, SendRaw, SendInput, SendPlay, SendEvent, Adding delays both via SendKeyDelay(both for send and key release) and via Sleep inside the script using #UseHook, #InstallKeybdHook. Script is run as administrator.
Server name is l2-eglobal.com. This server does seem to run some kind of Anti-hack software? Can it block any type of inputs not being sent directly from the keyboard? Can it be bypassed by doing things directly in C++? Servername is l2-eglobal.com.
Note that any mouse manipulations, or things other then Send commands do work.

Code: Select all

#UseHook ON
SetKeyDelay, 10, 10

x::
    Send, {x}
    Return

[Mod action: Moved topic to “Gaming”]
thinkRand
Posts: 44
Joined: 02 Mar 2022, 04:16
Location: Somewhere in Venezuela
Contact:

Re: None of the Send commands work in a specific app

06 Nov 2022, 07:12

Look at this topic viewtopic.php?t=11084

Meaby that help you.
Discord: thinkRand#7433 (UID 681695022600814642)
User avatar
fkrause3
Posts: 8
Joined: 06 Nov 2022, 08:20

Re: None of the Send commands work in a specific app

06 Nov 2022, 08:32

- Use windowed mode

and work 100%
surok
Posts: 5
Joined: 06 Nov 2022, 06:21

Re: None of the Send commands work in a specific app

06 Nov 2022, 08:42

thinkRand wrote:
06 Nov 2022, 07:12
Look at this topic viewtopic.php?t=11084

Meaby that help you.
Thanks, this step looks like what I'm looking for
4) Some games do not allow their keybinds to be 'hijacked'.
-Explanation: Many games, especially DirectX driven, use driver level keyboard interaction and cannot be
changed via AHK. You need to choose keybindings that the game is NOT using, some people have had
success by changing the in-game keybinds so that those keys are 'free' for AHK to use. Sometimes this
can be overcome by constantly rehooking the keyboard and mouse. An indicator that this is the case is
that the keys work once or 'for a while' and then stop working completely.
, but I don't understand what does rehooking mean? Quick googling didn't provide anything useful. Could you point my to the right direction by any chance?
surok
Posts: 5
Joined: 06 Nov 2022, 06:21

Re: None of the Send commands work in a specific app

06 Nov 2022, 08:48

fkrause3 wrote:
06 Nov 2022, 08:32
- Use windowed mode

and work 100%
I was already using borderless window, tried a bordered just in case, but it didn't help.
surok
Posts: 5
Joined: 06 Nov 2022, 06:21

Re: None of the Send commands work in a specific app

06 Nov 2022, 13:48

I went down the rabbit hole with this one. The issue is still not solved, but here's where I'm at so far. I suspect, that antihack software checks for LLMHF_INJECTED flag which is set when the input wasn't sent from the hardware. I have tried this python solution, which is supposed to remove this flag and the code works everywhere else but in the game.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 35 guests