(feature request) Configurable keypress time for ACT plugin
icy- opened this issue · 10 comments
Hi, it seems to be working with quick tests in EW, but wondering if you could make it configurable keypress time?
The press time seems too short -- every two minutes, as per NextKeyPress = Native.GetTickCount64() + 2 * 60 * 1000;
Would be great if something closer to 10 or 15 or even 20minutes -- if it could pull from a settings area or so!
thanks!
Kinda different one , but I suspect even if the player returns, the queued keypress will still happen. So if player returns and spams, for example, "F" , then eventually "Ctrl+F" might happen and do unwanted behavior.
Hi, well, 2 minutes are that so also it works in dungeons to prevent kick in 10 minutes. Also it's not 4 or 5 minutes to make sure that even in the event that game couldn't register keypress due to lag spike for example it's not a problem. But of course, I can add configuration option, no problem here. Just I recommend setting it that in 30 minutes it would click at least 3 times.
As for another one... this shouldn't happen. I specifically check if application is not an active window or if an user is actually afk right before sending a keypress:
if(Native.GetForegroundWindow() != handle || Native.IdleTimeFinder.GetIdleTime() > 60 * 1000)
The only situation where I can see it happening is if you left game window open and went afk, returned and program has send keypress down event into game and now waiting 200 ms to send keypress up event, and just so happened that you returned and started pressing keys in this 200 ms window... but that should be extremely unlikely event and well, I don't think there is a good solution to it anyway. But once you returned to the game and playing it, there should be no key presses at all. Or is this incorrect and they still happen? In this case, further diagnostics is required.
Yeah I have some anecdotal evidence, no formal test yet.
Made this test just now on
FileName: C:\Users\icy\AppData\Roaming\Advanced Combat Tracker\Plugins\AntiAfkKick.dll
OriginalFilename: AntiAfkKick-ACT.dll
FileVersion: 2.0.0.0
ProductVersion: 2.0.0.0
FileDescription: AntiAfkKick_ACT.Properties
ProductName: AntiAfkKick_ACT.Properties
LegalCopyright: Copyright © https://github.com/Eternita-S 2021```
Well if it happens when game is inactive then it's fine and by design, but since you aren't currently in game it shouldn't cause any problems at all.
That is unless you're using some other automated clicking software in which cause there could be interference. Though, in that case, another clicking software would be already doing the job of antiafkkick by itself.
Do you use any of that software?
ah, I see what you mean! If I stay active for a minute after coming back, the scheduled one doesn't take place. I see what you mean now =)
I'm not using anything else no, was just trying to confirm! Thanks!
How exactly do you get this Plugin to consistantly work? I got it to work yesterday thankfully for work, but can't most the time. Like do you have to be in keyboard mode? Does the program have to be on screen? I've only got it to work properly once. There must be something im doing wrong.
the act one
Very likely you have a problematic device attached to your PC that is keeping sending events to it, preventing recognition of idle state. Download InputDebugger.exe from this link: https://github.com/xaviergmail/DiscordNotificationDebug/releases/tag/v1.1 launch it and see if it will recognize that your system is idle when you're not doing anything.
ok ill try it! thank! :D