[autocast by hold]
cast7=RButton:1,1,1
delay7=100
time_out7=4000
inner_delay7=100
Here it prevents 1, 1, 1 to be cast for 4 seconds after you press
(and maybe hold to have 1,1,1 instead of just 1 due to inner_delay)
Before without this option even if you spammed every 4 seconds
if you released and pressed RMB again, you could restart the whole thing
and cast ABB far before 4 seconds passed.
Now you can press and release RMB multiple times and it still wonāt press 1
for the duration of 4 seconds after first cast.
We have inner_delay and 1,1,1 instead of just normal 1 spam
to attempt to cast ABB 3 times in 100ms intervals to ensure itās not
interrupted by something else
Since GD only allows for one key being held, for this particular example, I assume either 1 or 2 is going to be treated as held down if āqā is pressed, but not both. Probably not too useful, for GD, but maybe for another application.
In fact, it is perfect for my CE usage as I can toggle both mount and character sprint with one key that way, since CE does allow for multiple simultaneously held keys.
Iām probably doing something wrong, but the following script isnāt working for me. The [autocast by toggle] part seems to be working, but not the [toggle holds] part.
CMT= pressing āzā makes up be held down which makes me move
CMT= constantly toward the cursor until pressed again.
toggle1=z:Up
[autocast by toggle]
key_native_function=true
delay=100
initial_delay=0
CMT= toggling āzā on makes move fasts go off whenever they are ready.
CMT= Z and X are Blitz and Amatokās Breath, respectively.
CMT= Blitz only activates if cursor is on a valid target.
cast2=z:z,x
key_native_function2=false
I made sure to download the latest version as linked in your last post.
I alt-tab away all the time, usually with the game paused. The fact the behavior changes (losing toggle casts for example) is actually quite irritating. I donāt often use Suspend, so I didnāt realize that reset, but if I did and it changed when the game lost focus, Iād find that irritating too.
tl:dr, I do think it should be preserved (as should toggles).
[autocast by toggle] is preserved
(can be also forced to be either on or off)
Maybe you mean something else?
Anyway, I find Suspend not being preserved irritating too.
It was preserved in some earlier version of the program
but I lost it after forcing restart after game regains focus
(which is necessary) but Iāll re-add it.
I usually code autocast_right_awayX=false, because I like to start it up myself, but I always lose the autocast when I alt-tab away and back and have to use the reset key to start it back up.
As an aside, there is clearly an interaction between the toggle key and the reset key, because whether togged on or off, the reset key will start the casting cycle.
In another game, Iād like to be able to have a suspend key on all the things that end up putting me into some form of chat (Enter,/,`), since I want to just enter text at that point. Pressing Enter again to remove the suspend.
Wow, fast! I do see a problem, the suspend key isnāt passed through at all, so enter now doesnāt put me in to chat, it only suspends. I think it needs a ākey_native_function=ā sort of thing to be used in the way I was thinking.
Thatās an interesting idea. Youād need some sort of compatibility setting so with the default being the way it is now, so that existing scripts donāt break. Itās a lot of work on your end to update all the documentation too.
As an aside, how do you specify something like control-A? I donāt think specifying ^A works in the script. I tried it, but I wasnāt very thorough, so I could be wrong on this.
I think Autocast By Hold is the only feature that has it
and it should work by writing something like this:
[autocast by hold]
cast1=Ctrl,Space:1
delay1=100
How it works in the program:
if program detects the last activating button being pressed
(Space here)
it activates the appropriate function which then checks
if previous buttons are held - only Ctrl here