Key Space

pawelgbw
VIP
Posts: 47
Joined: Fri Feb 10, 2017 8:10 am
Has thanked: 111 times
Been thanked: 14 times

Key Space

Post by pawelgbw » 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()).

cooco
VIP
Posts: 218
Joined: Fri Feb 17, 2017 2:01 am
Has thanked: 58 times
Been thanked: 85 times

Re: Key Space

Post by cooco » Sun Oct 29, 2017 12:40 pm

+1
"jump" is a really good think, i have in mind some script that need jump function :mrgreen:

User avatar
smaion40
Posts: 83
Joined: Tue Apr 25, 2017 12:11 pm
Has thanked: 42 times
Been thanked: 16 times

Re: Key Space

Post by smaion40 » Sat Dec 23, 2017 9:44 pm

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?

cooco
VIP
Posts: 218
Joined: Fri Feb 17, 2017 2:01 am
Has thanked: 58 times
Been thanked: 85 times

Re: Key Space

Post by cooco » Sun Dec 24, 2017 12:05 am

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).

User avatar
Diavolakos
Posts: 114
Joined: Thu Apr 20, 2017 5:05 am
Has thanked: 31 times
Been thanked: 13 times

Re: Key Space

Post by Diavolakos » Mon Dec 25, 2017 1:57 am

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.
I play on NA Server Siel

cooco
VIP
Posts: 218
Joined: Fri Feb 17, 2017 2:01 am
Has thanked: 58 times
Been thanked: 85 times

Re: Key Space

Post by cooco » Mon Dec 25, 2017 1:58 pm

Vanilla can glide with SendKey function(sending space key 2 time)? Can you test this?

User avatar
Diavolakos
Posts: 114
Joined: Thu Apr 20, 2017 5:05 am
Has thanked: 31 times
Been thanked: 13 times

Re: Key Space

Post by Diavolakos » Mon Dec 25, 2017 5:02 pm

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
I play on NA Server Siel

cooco
VIP
Posts: 218
Joined: Fri Feb 17, 2017 2:01 am
Has thanked: 58 times
Been thanked: 85 times

Re: Key Space

Post by cooco » 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: )

User avatar
smaion40
Posts: 83
Joined: Tue Apr 25, 2017 12:11 pm
Has thanked: 42 times
Been thanked: 16 times

Re: Key Space

Post by smaion40 » Mon Dec 25, 2017 11:16 pm

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:

User avatar
Diavolakos
Posts: 114
Joined: Thu Apr 20, 2017 5:05 am
Has thanked: 31 times
Been thanked: 13 times

Re: Key Space

Post by Diavolakos » Tue Dec 26, 2017 12:32 am

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
I play on NA Server Siel

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest