Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2015-04-23 18:00:29

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

[c#] need help with keyboard keys

how do i use them?

I need a list with all keyboard keys available for bots and how to use them


http://i.imgur.com/bjvgH5L.png?1

Offline

Wooted by:

#2 2015-04-23 18:31:28

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: [c#] need help with keyboard keys

What are you asking here?

Do you mean:
g - god
m - map
t, enter - open chat
tab(sustained) - open block bar
w, a, s, d - movement


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

Wooted by:

#3 2015-04-23 18:37:44, last edited by realmaster42 (2015-04-23 18:37:53)

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

Re: [c#] need help with keyboard keys

i mean how to know if user presses a keyboard key like user presses F or X


http://i.imgur.com/bjvgH5L.png?1

Offline

Wooted by:

#4 2015-04-23 18:46:54

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [c#] need help with keyboard keys

marcoantonimsantos wrote:

i mean how to know if user presses a keyboard key like user presses F or X

Are you talking about hotkeys in the GUI or through EE?

Offline

Wooted by:

#5 2015-04-23 18:47:42

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: [c#] need help with keyboard keys

marcoantonimsantos wrote:

i mean how to know if user presses a keyboard key like user presses F or X

You can't


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

Wooted by:

#6 2015-04-23 19:09:16

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

Re: [c#] need help with keyboard keys

Koya wrote:
marcoantonimsantos wrote:

i mean how to know if user presses a keyboard key like user presses F or X

You can't

what about when pressing M ???

:3


http://i.imgur.com/bjvgH5L.png?1

Offline

Wooted by:

#7 2015-04-23 19:11:28, last edited by madiik (2015-04-23 19:12:50)

madiik
Member
From: floor above Yuuta
Joined: 2015-02-26
Posts: 514

Re: [c#] need help with keyboard keys

wtf

are you people dumb

there should be an user32 library for the key events and mouse events so you can check for keypresses in local computer
idk how 2 use tho

edit: oh wait, you want to bot

but here's a solution:

copy the EE swf game and make people use that client instead where it sends custom messages so you can check when to do what


shh i have returned

Offline

Wooted by:

#8 2015-04-23 19:21:58, last edited by Koya (2015-04-23 19:22:38)

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: [c#] need help with keyboard keys

marcoantonimsantos wrote:
Koya wrote:
marcoantonimsantos wrote:

i mean how to know if user presses a keyboard key like user presses F or X

You can't

what about when pressing M ???

:3

No, only arrow keys/wasd are recognised (not interchangeable)


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

Wooted by:

#9 2015-04-23 19:22:40

madiik
Member
From: floor above Yuuta
Joined: 2015-02-26
Posts: 514

Re: [c#] need help with keyboard keys

pls try the solution above that i posted.


shh i have returned

Offline

Wooted by:

#10 2015-04-23 19:23:03

TiKen
Member
Joined: 2015-02-24
Posts: 298

Re: [c#] need help with keyboard keys

madiik wrote:

wtf

are you people dumb

there should be an user32 library for the key events and mouse events so you can check for keypresses in local computer
idk how 2 use tho

edit: oh wait, you want to bot

but here's a solution:

copy the EE swf game and make people use that client instead where it sends custom messages so you can check when to do what

wtf

blablabla

edit: oh wait, you want to key log

blablabla.




But no, you can only capture the quickchat messages (I don't remember the keys), arrows (or wasd) and space.

Offline

Wooted by:

#11 2015-04-23 19:23:53

madiik
Member
From: floor above Yuuta
Joined: 2015-02-26
Posts: 514

Re: [c#] need help with keyboard keys

TiKen wrote:
madiik wrote:

wtf

are you people dumb

there should be an user32 library for the key events and mouse events so you can check for keypresses in local computer
idk how 2 use tho

edit: oh wait, you want to bot

but here's a solution:

copy the EE swf game and make people use that client instead where it sends custom messages so you can check when to do what

wtf

blablabla

edit: oh wait, you want to key log

blablabla.




But no, you can only capture the quickchat messages (I don't remember the keys), arrows (or wasd) and space.

ayy how'd u kno


shh i have returned

Offline

Wooted by:

#12 2015-04-23 19:24:43

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

Re: [c#] need help with keyboard keys

TiKen wrote:
madiik wrote:

wtf

are you people dumb

there should be an user32 library for the key events and mouse events so you can check for keypresses in local computer
idk how 2 use tho

edit: oh wait, you want to bot

but here's a solution:

copy the EE swf game and make people use that client instead where it sends custom messages so you can check when to do what

wtf

blablabla

edit: oh wait, you want to key log

blablabla.




But no, you can only capture the quickchat messages (I don't remember the keys), arrows (or wasd) and space.

hm. i need to know W and S then.


http://i.imgur.com/bjvgH5L.png?1

Offline

Wooted by:

#13 2015-04-23 19:28:09

madiik
Member
From: floor above Yuuta
Joined: 2015-02-26
Posts: 514

Re: [c#] need help with keyboard keys

you toggle quickchat messages by Alt Gr + (amount of quickchat messages), capture them with m.GetString(1)
like, "Hi." == Alt Gr + 1 was pressed


shh i have returned

Offline

Wooted by:

#14 2015-04-23 19:30:23

realmaster42
Formerly marcoantonimsantos
From: ̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍̍
Joined: 2015-02-20
Posts: 1,380
Website

Re: [c#] need help with keyboard keys

but wuts the message for it?


http://i.imgur.com/bjvgH5L.png?1

Offline

Wooted by:

#15 2015-04-23 20:12:22

ZeldaXD
EE Homeboy
From: Cyprus
Joined: 2015-02-15
Posts: 1,539
Website

Re: [c#] need help with keyboard keys

Use quickchat.

    case "autotext":
         switch (m.GetString(1)) {
                 case "Hi.": // Alt + 1
                 // Your code goes here
                 break;
         }
    break;

gLjTZE1.png

Offline

Wooted by:

#16 2015-04-24 10:47:55

DarkDragon4900
Member
Joined: 2015-03-17
Posts: 251

Re: [c#] need help with keyboard keys

capasha@http://capasha.com/notafraud/index.php#mautotext wrote:

# autotext - UserID using the Quickchat, the "chat" for nonchatters.
[0] <Integer> UserID
[1] <String> Text



Sheet-list:
1 = Hi.
2 = Goodbye.
3 = Help me!
4 = Thank you.
5 = Follow me.
6 = Stop!
7 = Yes.
8 = No.
9 = Right.
0 = Left.

Offline

Wooted by:

#17 2015-05-04 11:01:22

mathy
Member
From: Netherlands
Joined: 2015-04-14
Posts: 18

Re: [c#] need help with keyboard keys

marcoantonimsantos wrote:
some people wrote:

some quote

hm. i need to know W and S then.

^ Need this as well.


akXyPnH.pngPWaJiSA.png7Oq4Nl9.png
ERMAHGERD I AM THERE

Offline

#18 2015-05-04 12:40:22, last edited by DarkDragon4900 (2015-05-09 10:30:59)

DarkDragon4900
Member
Joined: 2015-03-17
Posts: 251

Re: [c#] need help with keyboard keys

mathy wrote:
marcoantonimsantos wrote:
some people wrote:

some quote

hm. i need to know W and S then.

^ Need this as well.

# m - UserID is moving around
[0] <Integer> UserID
[1] <Double> PlayerPosX
[2] <Double> PlayerPosY
[3] <Double> SpeedX
[4] <Double> SpeedY
[5] <Integer> ModifierX
[6] <Integer> ModifierY
[7] <Integer> Horizontal
[8] <Integer> Vertical
[9] <Integer> Coins
[10] <Boolean> SpaceDown

enum Direction {None, Down, Left, Right, Up}
Hashtable _keys = new Hashtable();
public static void ChangeState(Direction key, bool state)
    {
        _keys[key] = state;
    }
public static bool IsPressed(Direction key)
{
    if (_keys[key] == null)
        _keys[key] = false;
    return (bool)_keys[key];
}
public static void UpdateKeys(PlayerIOClient.Message e)
{
    switch (e.GetInt(7))
    {
        case -1:
            ChangeState(Direction.Left, true);
            break;
        case 1:
            ChangeState(Direction.Right, true);
            break;
        case 0:
            ChangeState(Direction.Left, false);
            ChangeState(Direction.Right, false);
            break;
    }
    switch (e.GetInt(8))
    {
        case -1:
            ChangeState(Direction.Up, true);
            break;
        case 1:
            ChangeState(Direction.Down, true);
            break;
        case 0:
            ChangeState(Direction.Up, false);
            ChangeState(Direction.Down, false);
            break;
    }
}
// Place UpdateKeys(m); in the OnMessage event handler.
// Usage.
if (IsPressed(Direction.Left) && IsPressed(Direction.Up))
    Console.WriteLine("A + W");

Offline

#19 2015-05-04 13:05:17

madiik
Member
From: floor above Yuuta
Joined: 2015-02-26
Posts: 514

Re: [c#] need help with keyboard keys

@above doesn't work with multiple direction inputs


shh i have returned

Offline

#20 2015-05-04 13:49:09, last edited by den3107 (2015-05-04 13:52:08)

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: [c#] need help with keyboard keys

DarkDragon4900 wrote:
Hidden text

As madiik said, should be improved by making an array of integers with size 2. (one for vertical movement and one for horizontal)

Offline

#21 2015-05-04 23:38:09, last edited by DarkDragon4900 (2015-05-04 23:39:37)

DarkDragon4900
Member
Joined: 2015-03-17
Posts: 251

Re: [c#] need help with keyboard keys

madiik wrote:

@above doesn't work with multiple direction inputs

den3107 wrote:
DarkDragon4900 wrote:
Hidden text

As madiik said, should be improved by making an array of integers with size 2. (one for vertical movement and one for horizontal)

Updated. :p
Except it doesn't use an array but a rather better method.

Offline

DarkDragon49001430779089501426

Board footer

Powered by FluxBB

[ Started around 1732607677.6761 - Generated in 0.258 seconds, 12 queries executed - Memory usage: 1.77 MiB (Peak: 2.03 MiB) ]