Thread Tools Display Modes
10-26-10, 06:33 AM   #1
Fhait
A Cliff Giant
Join Date: Dec 2006
Posts: 76
Autoexec

I believe the autoexec script can be used to change key/mouse bindings based on class ?

I would like to be able to do this if possible for my healing mod.

ie. left-click : FLASH HEAL when on my priest
left-click : CHAIN HEAL when on my shaman

Can somebody elaborate on this procedure ?

Thanks,

= F
  Reply With Quote
10-26-10, 07:00 AM   #2
Kcori
A Black Drake
Join Date: Apr 2009
Posts: 80
My main is a Shadow Priest, but I have many different classes. This is how i solved my mouse bindings, I setup a symlink and sorted it by class. I then made 10 different mouse bindings files. You then link each of the files to the appropriate class in the symlink. This way what ever toon I log on to, it will have the corresponding mouse bindings. I hope this helps
  Reply With Quote
10-26-10, 08:34 AM   #3
Fhait
A Cliff Giant
Join Date: Dec 2006
Posts: 76
Symlinks for Class bindings

OK I think I grasp what you are getting at.

I know what a symlink is in the Unix world, so I think I've got enough of a grasp from there to muddle through.

It sounds like my window will use a symlink to point to the mouse-binding file for example, and that RDX will sort out which file is the right one behind the scenes every time I log in the appropriate class ?

To be more concise, the window will always point to the same mouse-binding 'file' , but that file is actually a symlink to the appropriate file based on class ?

= F
  Reply With Quote
10-26-10, 09:05 AM   #4
Kcori
A Black Drake
Join Date: Apr 2009
Posts: 80
Exactly =)
  Reply With Quote
10-26-10, 10:36 AM   #5
Narinka
A Chromatic Dragonspawn
Join Date: Oct 2008
Posts: 165
Not sure what your problem is, but atm RDX creates specific character bindings on auto, isn't it?
They are placed in "default" package for me. And because character = class in some way it should work for you also.

Long time ago I had script like this for similar purpose. Maybe it will help you somehow, not sure if it works now.
(c) By Sigg if I'm correct, just changed to my specific "Nari" UI, so replace it with yours.
Code:
RDX.AddQuickDesktop("Nari_UI:desktop"); 

local tpdefault = RDXDB.GetOrCreatePackage("Nari_bindings");

-- Create player-specific bindings status for windows if they don't exist
mbo = RDXDB.TouchObject("Nari_bindings:bindings_status_" .. RDX.pspace);
if not mbo.data then
     mbo.data = {
                ["1"] = {
                    ["action"] = "target",
                },
                ["2"] = {
                    ["action"] = "menu",
                },
     };
     mbo.ty = "MouseBindings";
     mbo.version = 1;
end
-- Create symlink if it doesn't exist
mbsl = RDXDB.TouchObject("Nari_bindings:bindings_status");
if not mbsl.data then
      mbsl.ty = "SymLink"; mbsl.version = 1; mbsl.data = "";
end
-- Repoint symlink
RDXDB.SetSymLinkTarget("Nari_bindings:bindings_status", "Nari_bindings:bindings_status_" .. RDX.pspace);
ps: But better use default ones :P
  Reply With Quote
10-26-10, 12:55 PM   #6
sigg
Featured Artist
 
sigg's Avatar
Featured
Join Date: Aug 2008
Posts: 1,251
the new symlink object do not need to have an autoexec script anymore.

this is automatic.
  Reply With Quote

WoWInterface » Featured Projects » OpenRDX » OpenRDX Community » OpenRDX: Community Chat » Autoexec


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off