Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Number keys


Dawntide
 Share

Recommended Posts

hello,

i changed the source code so i can you number and f keys:

```

' hotbar

For i = 1 To MAX_HOTBAR

' Number keys

If KeyCode = 48 + i Then

SendHotbarUse i

' F keys

ElseIf KeyCode = 111 + i Then

SendHotbarUse i

End If

Next

```

The f keys are working fine, but the number keys only work from 1 to 9, what are the other 3 keys for the f10 f11 and f12 spells in the hotbar? how to change them so it uses 1-9, 0, ? and ´
Link to comment
Share on other sites

```

'hotbar'

for i = 1 to MAX_HOTBAR

'Number keys'

if keycode = 111 + i then

SendHotbarUse i

ElseIf i < 10 and keycode = 48 + i then

SendHotbarUse i

ElseIf i = 10 and keycode = 48 then

SendHotbarUse i

End If

next

```

with this code you can use 0 instead of F10 i cant find the key codes for ? and ' though
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...