BBot - The best bot of the world
VirtualKeyCode - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Support (https://forums.bmega.net/forum-6.html)
+--- Forum: Support & Help (https://forums.bmega.net/forum-8.html)
+--- Thread: VirtualKeyCode (/thread-19044.html)



VirtualKeyCode - Catar - 12-29-2015

If i would like to use Tibia.SendKey(VirtualKeyCode) with Shift + F...

How will the code look like?


Also, do I use: name VK_RSHIFT or hex value 0xA1 or decimal value 161?


RE: VirtualKeyCode - MegaNo0body - 12-29-2015

Only decimal values, hex values are not supported.


RE: VirtualKeyCode - Dexter - 12-29-2015

http://wiki.bmega.net/doku.php?id=virtual_key_codes


RE: VirtualKeyCode - Catar - 12-29-2015

Still i didnt get my answer, how do i combine keys?

If I want bbot to use hotkey that is for example under for Shift + F8 ?


RE: VirtualKeyCode - MegaNo0body - 12-29-2015

No way to send key with modifier at the moment Sad


RE: VirtualKeyCode - Catar - 12-29-2015

can u add it to trello then? ;D


RE: VirtualKeyCode - damiansnk - 12-30-2015

I guess it isn't priority I made houndreds of script and never was in needed it


RE: VirtualKeyCode - Catar - 12-30-2015

(12-30-2015, 01:49 AM)damiansnk Wrote: I guess it isn't priority I made houndreds of script and never was in needed it



I guess ur not planning on making any more advanced scripts then Tongue
Using Equip on hotkeys is far better than Self.Equip. because it always works instantly.
But number of F hotkeys is kind of limited thats why key modifiers would be usefull


RE: VirtualKeyCode - damiansnk - 12-30-2015

I made like 2k chars on blood herb quest picking eq from floor equip later unequip drop eq get dawnport eq equip them and I never had problem like bot didnt wear them


RE: VirtualKeyCode - Catar - 12-30-2015

making 8 lvls to do some quests and pickup, drop some stuff is childs play...

Try this:

Full afk oramond RP sewers,
Try to make macro that will equip prismatic ring and gill amulet instantly and not studder if u have 4 reapers 3 torturers and some other shit beside
and recieve heavy loads of damage
It wont do it instantly, unless u use hotkey. It will take him about 3 or 4 seconds, and it doesnt matter if u put macro on 500 ms refresh or more / less.
But if u use hotkey key to equip it, it will always success..
except i dont want to use any of F1-12 hotkeys for that.. because theyre not enough
2 different amulets, 2 rings, 2 weapons, shield, its already 7 hotkeys.
I rather have them for things i use myself just in case of some emergency

Another thing , if u want to equip two handead weapon when u have One handed and shield already on,
u have to first take one of this items off, oitherwise it won't equip.
Bot will make one action at the time, which is taking off one item and then he will put the 2 hand on

But if u use equip in hotkey, it will instantly equip 2 hand weapon, ignoring fact u already have both hands equipped


Bbot is great bot, i love it so far, but it lacks some functionality and fluenty of its actions, thats why little changes like that virtual key modifiers are great improvements


RE: VirtualKeyCode - MegaNo0body - 12-30-2015

It will be added to Trello, however, there's probably better solutions for what you need, for example: upgrading the BBot internal engine to use what the hotkeys use, allowing instant actions.


RE: VirtualKeyCode - Catar - 12-30-2015

looking forward for it then


RE: VirtualKeyCode - Catar - 03-04-2016

Any progress Mega??


RE: VirtualKeyCode - MegaNo0body - 03-04-2016

Not yet, this week was a very tiring week. I'll work on cavebot/killer this weekend, I will probably work with SendKeys next week.