Help Binding A Send Function To Init.txt

Language: JP EN DE FR
New Items
2023-11-19
users online
Forum » Windower » Support » help binding a send function to init.txt
help binding a send function to init.txt
 Leviathan.Frotaut
Offline
Server: Leviathan
Game: FFXI
user: Frotaut2
Posts: 281
By Leviathan.Frotaut 2017-10-26 20:18:42
Link | Quote | Reply
 
so i'm trying to set a perm. key bind using the send command for mule to be able to start autora. in game i can just type //send mulesname ara start and it works fine but how would i go about keybinding this in the init.txt file at loadup.

bind f12 showfps
bind sysrq screenshot png hide
bind ^v paste
bind !, /input send imwthstupd ara start
echo Toggle Lighting = F11 (Bump mapping must be off to work properly)
echo Toggle FPS = F12

currently tried this added console but i'm not great at this any help would rock. tyia
 Ragnarok.Martel
Offline
Server: Ragnarok
Game: FFXI
Posts: 2899
By Ragnarok.Martel 2017-10-26 20:21:57
Link | Quote | Reply
 
Well, since you've made another thread... I'll repost here.

basically, you just need to leave out the //

Inside of a script(or in the console), // indicates a commment. And everything on the line past the // is ignored.

So with the // out of the way, you just mimic the other bind commands, but use yours and the main part. kinda like this.

bind F11 send mulesname ara start
 
Offline
Posts:
By 2017-10-26 20:47:22
 Undelete | Edit  | Link | Quote | Reply
 
Post deleted by User.
 Ragnarok.Martel
Offline
Server: Ragnarok
Game: FFXI
Posts: 2899
By Ragnarok.Martel 2017-10-26 21:01:12
Link | Quote | Reply
 
I actually didn't know about the @ for windows key bit. that's potentially useful. Thanks.
 Lakshmi.Elidyr
Offline
Server: Lakshmi
Game: FFXI
user: elii
Posts: 911
By Lakshmi.Elidyr 2017-10-26 22:08:31
Link | Quote | Reply
 
If you want you could go a step further and only do it to jobs you want to have that feature, and also so it keeps your binds open for other things for other jobs. You could add this in to GearSwap get_sets(): (Assuming you are using it.)
Code
function get_sets()
    
    -- Load common keybinds.
    send_command('bind @1 send mulesname ara start)    -- Auto Ranged.
    
    -- Unload Key Settings.
    function file_unload()
    
        send_command('unbind @1')
    
    end
    
end


Now only works for those specific jobs that need Auto RA, and will unload when the file runs the unload.
 Shiva.Arislan
Offline
Server: Shiva
Game: FFXI
user: Arislan
Posts: 1052
By Shiva.Arislan 2017-10-26 22:48:43
Link | Quote | Reply
 
Ragnarok.Martel said: »
I actually didn't know about the @ for windows key bit. that's potentially useful. Thanks.

# for application/menu key, too.
Log in to post.