View Full Version : Script to change keybinds
Coca Cola Injection
02-20-2009, 02:43 PM
does anyone know a script that can change the bindings of keys.
when i say change the bindings of keys im refering to lets say changing the function of the delete key from whatever it was.
To, binding it to the walk backwards button. And also changing what slot the key is bound to on an action bar.
so not only is it set to the secondary key to the backwards movment button it will also set the delete button to be the key bound to lets say slot 1 of the bottom right action bar.
If this is at all confusion to someone who thinks they can help just say something and ill try to figure a better way out to ask what im looking for. :pinch:
Yo-Yo Freak
02-20-2009, 03:05 PM
if i understand you right are you asking how you can bind 1 key press, lets say "F", to 2 buttons like "F"+"G" or like "1"+"2". if this is kind of what you mean then i think i remember reading on here about an addon that let you do that but i have no clue at all what it is or if it has died out. however, i think HKN can do this. you could also use a /click macro i think to do what you are wanting, unless it involves movement, then idk if it can be done. maybe there is a way to make like move backward or strafe right/left into a macro, don't think there is though.
hope this helped some, if not then sorry i couldn't help ^_^
~YYF
Coca Cola Injection
02-20-2009, 04:05 PM
ok you sort of where on the right track but at teh same time no.
The macro/script thing needs to change the key bindings. so like i said, lets say befor the Insert key was bound to make my toon jump. i need the script/macro thing to remove its binding to the jump ability and then bind it to the move backwards feature. then on top of that, bind the insert key to lets say slot 1 of my bottom left action bar.
if this isnt possable then oh well. just to be blunt, im in the process of designing a very simple yet complex set focus-follow focus/spread out/fall back into follow macro system only using 3 keys. 1 key to set focus and make it follow the focus. second key to spread the toons out allways in the same order and position no matter what toon ur using as your main. then key 3 to make them all refollow the focus and fall back into teh standard FTL system. That my friends is what im doing. a 1 key spread out system that dosnt matter who is the leader and always sets up the same. Its gunna be hard, and i will make it work, and once i do. i can confidently say every multiboxer who uses spreading macros will be using it. Thats my goal to help the multiboxing comunity.
Owltoid
02-20-2009, 04:24 PM
I'm sure you can do something similar using HKN and toggles, but I look forward to seeing what you come up with!
Coca Cola Injection
02-20-2009, 04:28 PM
ha ha im looking forwards to what i come up with too! a 1 key spread system that you just hold down till the toons line up would make life sooo much easier instead of having to use 2-3-4 keys like they do now =] i hate using modifiers
oh and i use keyclone so using HKN well thats just not when i want to use lol. i dont see why it wouldnt work tho for both
Coca Cola Injection
02-20-2009, 05:54 PM
From the ass crack of God himself, I descovered on of my co-workers (who happens to be a good familey friend of mine) has a friend who lives in California who is a "Programming Genious" as so stated by some technology magazine thats fairly popular in England. No idea what its called my friend said its like fewren or something idk.
But it turns out like i said he is a massive programming freakazoid who is willing to help me with this script im attempting to deisgn. While i was talking with him via E-mail i learned he has some friends/connections in Blizzards programming departments. Ya i know whats the fucking chances of that!?!? :thumbsup:
Well anyways after giving him a very detailed explination of what im trying to do and the macros-scripts i have have already designed along with a fairly decent amount of examples of different types of macros and scripts along with the codes and programming of a few addons he belives that this is totally doable. He will see what he can come up with on his own and get back to me. Then we will see what works and dosn't, followed by a E-mail to his "blizzard conatacts" with copies of of programs to see what they can do in reguards to correcting or altering the codes to make them work perfectly with wow system.
AKA blizzard would have their very own hands in the creation of this fap tasticle script/macro in otherwords. Once its made, if we get banned/suspended for using it which i dont think we would. We can very come back with the simple proff of that they themselves halp devlopit in personaly meaning it must be 100% allowed in the game.
How about them apples! pew pew WIN WIN FOR MULTI-BOXERS!!! :thumbsup: :thumbsup: :thumbsup:
Yo-Yo Freak
02-20-2009, 08:23 PM
no offense cola, but this sounds a lot like something Evilseed did... said he had "connections" with blizz, developing some awesome AoE targeting script or something like that. turned out he was full of bull $#!% and his "program"actually was against the ToS. he also did a ton of other stuff to try and undermine the comunity but its not my place to say anything on what he did.
honestly i HOPE this is for real, but untill you can show some form of legit proof, i have my doughts. again, i hope you are telling the truth so i will give you the benifite of the dought, hope it works out. keep us updated if/when you get this done. :thumbup:
~YYF
Coca Cola Injection
02-20-2009, 08:37 PM
Yo-Yo Freak,
=] As i stated i personaly dont have the connections with blizz. The programmer whome I was introduced to is the one who clamed had connections to the blizzard programming department. To be honist I have no way shape or form of an ability to tell if he is telling the truth or not. All I do know is this programer is very skilled at what he does, and he said that should the two of us not be able to create this script. He would contact his "contacts" who apperently work for Blizzard, and ask for help. Weither or not they would help us, there is no garantee. But I can say this, should the Blizzard programer(s) decide to help it would be resonable to say that they would only help if they think/know that this script would not violate the ToU. Why would a Blizzard programer help create a script that works in WoW if it is against the very ToU for the programs that they design. And I'm sure that when they/if they work on it, they would confirm with superiors as to its legaility with the ToU. If they decide it is against the ToU, I'm sure they would just delete any script they made.
But also I will state this so i dont look like a fool. Should me and this programer get this script made on or own I assure you befor I begin using the script and sharing it with others. I will contact Blizzard, and show them this script to get it approved/rejected. When it gets to that point, I promise everyone here that I will link any E-mails/chat logs and so on to prove the existance of this script. Should it get rejected ;( , so be it. Back to the drawing board for new ideas. :P
Yo-Yo Freak
02-20-2009, 09:00 PM
I am sorry if i offended you in any way, i did not want to nor mean to. i was only stating that it sounded a lot like something a previous poster on these forums has done, not exactly the same but similar.
i honestly hope this all works out and i look forward to seeing what you guys/gals come up with! even if it does get rejected its always fun too see how inventive people can be. and who knows, maybe if it doesn't work out it will help somebody else figure out something along the lines of what you are trying to accomplish that isn't against the ToS. i hope i did not offend you or anything of the sort, if i did so then i apologize.
~YYF
emesis
02-20-2009, 09:00 PM
It's still not really clear to me what this script/tool is supposed to do.
It's already relatively simple to setup FTL formations using Keyclone with a single key to spread and a single key to follow regardless of which WoW window has focus. This involves the single key on master translating to a single real-time single key press on slaves principle which I personally think is important to follow.
Granted, if you want to have a single spread key, you are limited to simple formations such as a cross, instead of a line. For me a cross works very well for basically everything and has the advantage of being the most efficient way to maximize inter-slave distance for AoE type effects not to stack.
I have my keymaps such that my spread button always sets up a cross with the active toon character in the middle. The active toon then runs forward to engage if needed.
Briefly, I have some additional keys bound to movement. I use WASD with keyclone set not to pass and arrow keys ,which do pass, to move all 5 toons. My third binding set is "[" forward, "]" back, "{" strafe left, "}" strafe right on all toons. In Keyclone, I have keymaps set up so that the ` key (my spread key) sends a forward, back, left, and strafe to each of the non-dominant toons. For instance:
Toon A map:
`-> SpreadA
[ -> SpreadB
] -> SpreadC
{ -> SpreadD
} -> SpreadE
Toon B map:
} -> SpreadA
`-> SpreadB
[ -> SpreadC
] -> SpreadD
{ -> SpreadE
Toon C map:
{ -> SpreadA
} -> SpreadB
`-> SpreadC
[ -> SpreadD
] -> SpreadE
... and so on ...
I manage my DPS with focus, just use FTL for formations.
While smexier formations are certainly doable, I don't really see the point. Is there some problem you're actually trying to solve here?
Coca Cola Injection
02-20-2009, 11:21 PM
lol i already knew how to do the cross thing, the macro/script that im trying to make will allow a line formation
Coca Cola Injection
02-20-2009, 11:22 PM
I am sorry if i offended you in any way, i did not want to nor mean to. i was only stating that it sounded a lot like something a previous poster on these forums has done, not exactly the same but similar.
i honestly hope this all works out and i look forward to seeing what you guys/gals come up with! even if it does get rejected its always fun too see how inventive people can be. and who knows, maybe if it doesn't work out it will help somebody else figure out something along the lines of what you are trying to accomplish that isn't against the ToS. i hope i did not offend you or anything of the sort, if i did so then i apologize.
~YYF
I wasnt offended at all i knew exactly where you where coming fom
Freddie
02-21-2009, 04:33 PM
does anyone know a script that can change the bindings of keys.
I know very little about WoW so I should probably keep quiet and let somebody else answer. But I've read that WoW's script language includes the following commands, and they look like they do what you want:
/script SetBindingMacro("KEY", "macroname")
/script SaveBindings(GetCurrentBindingSet())
aboron
02-21-2009, 04:45 PM
That looks like it will bind a key to a macro, I think he's looking for for a way to change the key bindings for general things like movement, which might be this:
From wowwiki:
SetBinding("key"[, "command"]) - Sets or unsets key bindings. (2.0 - Can not be used in combat.)
Arguments
(String key, String command)
key
(string) Key name of the key to bind (e.g. W, CTRL-F, BUTTON2). As of 1.6 there is now error checking on this value so random strings for key names won't work anymore.
command
(string) Command name to execute when the key is pressed (e.g. MOVEFORWARD, TOGGLECHARACTER0). This argument is optional. If not included, the function will un-bind the key argument. Also, using an invalid command will also un-bind the key specified.
I'm thinking the main problem with this one would be the "Can not be used in combat." part.
Coca Cola Injection
02-23-2009, 01:32 PM
freddie, Aboron
Thanks for those script codes I'll take a deeper look into them to see if we can use them. But as you said Aboron the out of combat part will casuse a problem. Should it turn out we cant get one to work while in combat so be it, but who knows! =]
anyone know if while using this script supplied by freddie if we can alter it as ill show below the script.
/script SetBindingMacro("KEY", "macroname")
/script SaveBindings(GetCurrentBindingSet())
the altered script
/script SetBinding("KEY", "name of movement function here")
/script SaveBindings(GetCurrentBindingSet())
as you can see i removed the word macro fomr the original script and ovbiously where i put name of function here put in the technical language for the movement function where i dindicated I.E. like "Strafe Left" or "Strafe Right" and "Backwards" but im sure there is a code written in.
When you go to your key bindings area, the bindings are split in sections i think some of them are named litterly Movement and some other things.
ATM im at work can someoen rip open there wow and list the names of the segments in the key bindings area. each section is cut off with a line if i remember correctly. The only ones i belive i would need if you do this, are the names of the segments that strafe left/right/ backwards. Along with the name of the segment that the key bindings for i think its specified as Right Action Bar 2 and 1. No one needs to do this if you have any extra time it would be much appreciated. :thumbsup:
Section name for movement keys
Specific name for strafe left/right and move backwards
Specific name for action bar key bindings segment.
specific name for the Action bars 1-2 that are on the right side going vertical on the screen.
i think its "Side Action Bar 1/Side Action Bar 2"
BTW all who contribute to this project would just like to say thanks. =] ;)
Coca Cola Injection
02-23-2009, 01:47 PM
Thanks to a person named Junx at dual-boxing.com
I found this post by that player while searching for information on google. Thank you google for reading this site like i could not =] and thank you also Junx
------------------------------------
You can use the various SetBinding() functions in a script to set keys to macros or commands.
It has three versions SetBinding, SetBindingSpell and SetBindingMacro with each variation taking two arguments: the keyboard or mouse button you want to bind to and the action, spell or macro you want bound.
Examples:
[code:1]/run SetBinding("F1","MOVEFORWARD"); [/code:1]
For a list of all the available actions open your Bindings-cache.wtf file in a text editor.
[code:1]/run SetBindingMacro("ALT-F1","NameOfYourMacro");[/code:1]
pretty self-explanatory. Bind any macro to a key. Does not take up a space on your default 120 buttons.
[code:1]/run SetBindingSpell("CTL-F1","SpellName");[/code:1]
Let's you set any spell in your spell book to to a key. You do not need to include the rank(although you can for things like rank 1 Arcane Explosion or Moonfire) and it will uprank as you level and downrank healing spells on lowbies correctly.
You need to run the following after you use SetBinding or your changes will be lost.
[code:1]/run SaveBindings(2)[/code:1]
The argument is 1 if you want to save these changes to your account-wide keybinding set or 2 if you want to save it to your character specific keybinding set.
Full example:
[code:1]/run SetBindingMacro("F1","MyTotemMacro");
/run SaveBindings(2);[/code:1]
This is the basis for how all the mods that give you hidden keybinds like Clique, Bindpad and so on work. If you are going to be doing a ton of modifying using one of those mods is easiest. For a quick bind here and there you can use the scripts above.
---------------------
If anyone could clearify to me the end of Junx's post where the discussion of saving from account to character comes to play. i would be greatful. I cant seem to decide what part of that code that he/she gave as an example indicates as to save to the toon specificly or to the account. :pinch:
vBulletin® v4.2.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.