Binder In Gearswap

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » Windower » Support » Binder in gearswap
Binder in gearswap
 Ragnarok.Zuhra
Offline
サーバ: Ragnarok
Game: FFXI
user: azura84
Posts: 13
By Ragnarok.Zuhra 2019-03-23 14:02:12  
So this may seem obvious to everyone else but using the binder for my G510, would i just place the alias bindings in the function user_setup like this?
Code
function user_setup()

    alias g510_m1g1 input /ja "Provoke" <t>

end


or will there need to be send commands? like
Code
function user_setup()

        send_command('bind g510_m1g1 input /ja "Provoke" <t>')

end


The keyboard is actually in the mail or I would be testing it myself.
 Ragnarok.Blindphleb
Offline
サーバ: Ragnarok
Game: FFXI
Posts: 1432
By Ragnarok.Blindphleb 2019-03-23 14:37:42  
You wouldn't need to put the original alias command in a function. Just listing it as a windower.send_command is enough. To unalias them though you'll want that in a function that gets called when you change jobs.
Code
 windower.send_command('alias g510_m1g1 input /ja "Provoke" <t>')


You would also want to unalias your gkeys when you change jobs.
Code
function user_unload()
    send_command('unalias g510_m1g1')
end


An alternate way of doing it and one that I will probably do is just to execute .txt files that alias and unalias my gkeys. I feel like I can have more control over the process that way and can customize my macro organization based on sub jobs without having to write out code that checks for sub job and loads that specific group of aliases, but that could be done too.
Log in to post.