Macro under hotkey. - Printable Version +- BBot - The best bot of the world (https://forums.bmega.net) +-- Forum: Support (https://forums.bmega.net/forum-6.html) +--- Forum: Tutorials & Related (https://forums.bmega.net/forum-26.html) +--- Thread: Macro under hotkey. (/thread-18326.html) |
Macro under hotkey. - ericporto - 08-04-2015 Hi guys i'm here to explain how to make bbot activate macros under specific keyboard keys. First you have to create a macro with this comand before any other: Tibia.IsKeyDown(VirtualKeyCode)==1 Ex: 1000 {Drop Vial} Tibia.IsKeyDown(VirtualKeyCode)==1 Y:=Self.Y X:=Self.X Z:=Self.Z Map.Thrown(285, 100, !X!, !Y!, !Z!) (1) Delay can't be 0. (2) It doesn't work without tibia selected. ------------------------------------------------------------------------------------------------- VirtualKeyCode: It's one hexadecimal number or keyword that's assigned to an specific keyboard key, Here is the Codes. http://wiki.bmega.net/doku.php?id=virtual_key_codes So if I want to drop vial with del key the macro will be like this: 1000 {Drop Vial} Tibia.IsKeyDown(46)==1 Y:=Self.Y X:=Self.X Z:=Self.Z Map.Thrown(285, 100, !X!, !Y!, !Z!) RE: Macro under hotkey. - nosbor00 - 08-05-2015 interessante...I will test later ... |