Page 1 of 2

Key Space

Posted: Sun Oct 29, 2017 11:44 am
by pawelgbw
You can add support for spaces (Starting Jump and Toggle Gliding), as well as added support for escape and enter keys (PlayerInput.Escape(), PlayerInput.Enter()).

Re: Key Space

Posted: Sun Oct 29, 2017 12:40 pm
by cooco
+1
"jump" is a really good think, i have in mind some script that need jump function :mrgreen:

Re: Key Space

Posted: Sat Dec 23, 2017 9:44 pm
by smaion40
pawelgbw wrote:
Sun Oct 29, 2017 11:44 am
You can add support for spaces (Starting Jump and Toggle Gliding), as well as added support for escape and enter keys (PlayerInput.Escape(), PlayerInput.Enter()).
This command is really useful, do you know what would be the command for other key types, such as W A S D, or F1 F2 F8?

Re: Key Space

Posted: Sun Dec 24, 2017 12:05 am
by cooco
I try to experiment this.
I think some key like "space", W, A, S, D and probably other key can be simulated only if your Aion client is focused ( doesn't work if client is minimized).

Re: Key Space

Posted: Mon Dec 25, 2017 1:57 am
by Diavolakos
Well I am not sure how it would be done, simple macro programs can do these and vanilla has a function named "SendKey"

anyway if you plan to make it send keys without the client being active on top (running in foreground) you can use the windows codes so you won't have to explain how to send a key or what does that key send to. People can simply look at this chart and find what they need

https://msdn.microsoft.com/de-de/librar ... 0bl4iqwcg)()

~~~~~~~~~

Glides would also be good and flight. Of course flight could be implemented but the key PgUp and PgDn and the glide could be implemented with two consequent space keys timely correct.

Re: Key Space

Posted: Mon Dec 25, 2017 1:58 pm
by cooco
Vanilla can glide with SendKey function(sending space key 2 time)? Can you test this?

Re: Key Space

Posted: Mon Dec 25, 2017 5:02 pm
by Diavolakos
Let me try this now in a moment I'll be back to tell you:

Edit: For a strange reason SendKey works for all keys except space bar.

This simple script should make your char jump but it doesn't work.

Code: Select all

#IF=%FirstTime,;
#UseLoop
Command=;
#ENDIF
SendKey=0x20;
Delay=5000;
If you put the SendKey=0x31 for example it will spam the button "1" and if you have an attack skill it will say "you do not have a proper target for that skill", if it is a heal or buff it will simply do it.

Vanilla implements glide by another command which is vanilla coding (not anything from windows)

What they do is teleport you upwards a little bit in the air (like in no gravity), and then use the shortcut for glide which is this one "SendAction=3,32;"

The below script is used in the CoE

Code: Select all

MoveTo=1477.025,774.523,1042.675,False,False; <--goes upwards standing in air, no-gravity is not on
SendAction=1,4; <-- I think this makes the char move so he starts falling
Delay=100; <--this gives the char some fraction of a second to start falling
SendAction=3,32; <--glide key
It is just that SendKey=0x20 doesn't work at all

Re: Key Space

Posted: Mon Dec 25, 2017 5:30 pm
by cooco
This is what i said, key like "space" WASD dosn't work.
To glide i using same method
1) teleport in air CurrentZ+5.0
2) MoveForward to start falling
3) Send space key

This medoth is working(i learn this from Vanilla FoO/Fissure video :mrgreen: )

Re: Key Space

Posted: Mon Dec 25, 2017 11:16 pm
by smaion40
cooco wrote:
Mon Dec 25, 2017 5:30 pm
This is what i said, key like "space" WASD dosn't work.
To glide i using same method
1) teleport in air CurrentZ+5.0
2) MoveForward to start falling
3) Send space key

This medoth is working(i learn this from Vanilla FoO/Fissure video :mrgreen: )
I always wondered why there was no sendkey option in these scripts, lol. I guess I'm going to use a 3rd software for key input, its a shame because it only works on a single window.

Merry Christmas guys :mrgreen:

Re: Key Space

Posted: Tue Dec 26, 2017 12:32 am
by Diavolakos
I could use macro express to send keys but it is like a clicker for clients like aion. and I am not sure I would want to try to make them work in unison :D