Sending Console Exec Commands Via Shortcuts

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » Windower » Support » Sending console exec commands via Shortcuts
Sending console exec commands via Shortcuts
Offline
Posts: 2068
By DirectX 2019-05-19 06:29:52  
Can someone please tell me if this is possible and, if so, how to do it?

I have made a console exec txt file that equips Warp Ring and waits 8 seconds before using it but want to be able to execute it by just typing /wa or something. I can only see in the Shortcuts file how to put spells in there but I want it to do /console exec warp.txt

Thanks.
 Shiva.Paulu
Offline
サーバ: Shiva
Game: FFXI
user: Paulu
Posts: 769
By Shiva.Paulu 2019-05-19 08:25:26  
/con works instead of /console (saved you 4 extra keystrokes) :)

You can set binds, so for example F10 could be set to exec the "/con exec warp.txt"

I'm not super savvy with binds since I play with a controller but I believe you can do that in the Windower4/Scripts/init.txt file or through Gearswap.
[+]
 Asura.Meliorah
Offline
サーバ: Asura
Game: FFXI
user: DatGoose
Posts: 379
By Asura.Meliorah 2019-05-19 08:58:53  
/console send @all /equip lring 'Warp Ring'
Wait.9
/console send @all /item 'Warp Ring' <me>
Wait.1
(Repeate line above for fail safe)

Done.
 Asura.Chaostaru
Offline
サーバ: Asura
Game: FFXI
Posts: 686
By Asura.Chaostaru 2019-05-19 09:49:42  
If you use gearswap Luas, can throw this under where all the normal binds are. Bound to Alt + W.
Code
send_command('bind !w input /equip ring2 "Warp Ring"; /echo Warping; wait 11; input /item "Warp Ring" <me>;')

also can do Alt + Q for Teleholla/dem/mea ring as-well.
Code
send_command('bind !q input /equip ring2 "Dim. Ring (Holla)"; /echo Reisenjima; wait 11; input /item "Dim. Ring (Holla)" <me>;')


of course you can bind it to any key you want, that's just what I use.
[+]
Offline
Posts: 2068
By DirectX 2019-05-19 14:40:19  
Asura.Meliorah said: »
/console send @all /equip lring 'Warp Ring'
Wait.9
/console send @all /item 'Warp Ring' <me>
Wait.1
(Repeate line above for fail safe)

Done.
My question is how can I put this into Shortcuts so that I only have to type /wa (for example). I know how to make a console exec file.
 Asura.Meliorah
Offline
サーバ: Asura
Game: FFXI
user: DatGoose
Posts: 379
By Asura.Meliorah 2019-05-19 15:00:45  
I don't think you can do that with shortcuts but you can do that with gearswap.
Code
function job_self_command(commandArgs, eventArgs)
	if commandArgs:get(1) == 'wr'
		then send_command('input /equip ring1 "Warp Ring"; wait 10; input /item "Warp Ring" <me>')
        add_to_chat(158,'Warp Ring being used.')
	end  
end
[+]
Offline
Posts: 2068
By DirectX 2019-05-19 15:03:22  
That's a shame. Any way to hack it so that it can?
 Asura.Meliorah
Offline
サーバ: Asura
Game: FFXI
user: DatGoose
Posts: 379
By Asura.Meliorah 2019-05-19 15:05:41  
above command works

[+]
 Asura.Chiaia
VIP
Offline
サーバ: Asura
Game: FFXI
user: Demmis
Posts: 995
By Asura.Chiaia 2019-05-19 16:10:30  
DirectX said: »
Asura.Meliorah said: »
/console send @all /equip lring 'Warp Ring'
Wait.9
/console send @all /item 'Warp Ring' <me>
Wait.1
(Repeate line above for fail safe)

Done.
My question is how can I put this into Shortcuts so that I only have to type /wa (for example). I know how to make a console exec file.
DirectX said: »
Asura.Meliorah said: »
/console send @all /equip lring 'Warp Ring'
Wait.9
/console send @all /item 'Warp Ring' <me>
Wait.1
(Repeate line above for fail safe)

Done.
My question is how can I put this into Shortcuts so that I only have to type /wa (for example). I know how to make a console exec file.
There is an addon called MyHome in the launcher that if you type //warp it will try warping via spell if right job -> ring -> scroll -> warp club and a few others. I'd recommend grabbing that and if //warp is to much you could change the addon command to //wa
[+]
Offline
Posts: 2068
By DirectX 2019-05-19 16:33:36  
Thanks Chiaia, I wondered what people were referring to when they mentioned //warp on the forums!
 Valefor.Darvis
Offline
サーバ: Valefor
Game: FFXI
Posts: 27
By Valefor.Darvis 2019-05-19 22:05:48  
Asura.Meliorah said: »
/console send @all /equip lring 'Warp Ring'
Wait.9
/console send @all /item 'Warp Ring' <me>
Wait.1
(Repeate line above for fail safe)

Done.

This is basically what I have in a regular macro. Works fine.
 Phoenix.Esvedium
Offline
サーバ: Phoenix
Game: FFXI
user: Esvedium
Posts: 63
By Phoenix.Esvedium 2019-06-03 09:50:55  
Asura.Meliorah said: »
I don't think you can do that with shortcuts but you can do that with gearswap.
Code
function job_self_command(commandArgs, eventArgs)
	if commandArgs:get(1) == 'wr'
		then send_command('input /equip ring1 "Warp Ring"; wait 10; input /item "Warp Ring" <me>')
        add_to_chat(158,'Warp Ring being used.')
	end  
end

So just "//wr" to fire off this GearSWap command?
 Cerberus.Shadowmeld
Offline
サーバ: Cerberus
Game: FFXI
Posts: 638
By Cerberus.Shadowmeld 2019-06-03 11:20:04  
For yourself it's:

//wr for typed command
/console wr for a macro

For send it would be:
//send @<character name> wr for typed
/console send @<character name> wr for macro
 Phoenix.Esvedium
Offline
サーバ: Phoenix
Game: FFXI
user: Esvedium
Posts: 63
By Phoenix.Esvedium 2019-06-03 20:08:41  
Added that snip of code to the end of what started out as Kinematics .lua, just changed the gear sets to match my garbage gear, tried both "//wr" in the in-game chat, "/console wr" in a macro, and "wr" from the console window, none of them equip the ring, nor add the chat to the game window. Is there a particular spot for this to be placed in the file? I got no errors when reloading with //gs r
 Sylph.Subadai
Offline
サーバ: Sylph
Game: FFXI
user: Subadai
Posts: 179
By Sylph.Subadai 2019-06-03 23:45:24  
I believe the correct command would be //gs c wr or /con gs c wr from a macro. This is the format for Gearswap self-commands.
 Asura.Meliorah
Offline
サーバ: Asura
Game: FFXI
user: DatGoose
Posts: 379
By Asura.Meliorah 2019-06-04 11:22:19  
Sylph.Subadai said: »
I believe the correct command would be //gs c wr or /con gs c wr from a macro. This is the format for Gearswap self-commands.

This is correct and for send //gs c send @all gs c wr

Note that you should add an intentional delay on each character starting at 1s and adding on .4 for each additional character

so main character
Code
then send_command('input /equip ring1 "Warp Ring"; wait 10; input /item "Warp Ring" <me>')


second box
Code
then send_command('input /echo Waiting..;wait 1;/equip ring1 "Warp Ring"; wait 10; input /item "Warp Ring" <me>')


third box
Code
then send_command('input /echo Waiting..;wait 1.4;input /equip ring1 "Warp Ring"; wait 10; input /item "Warp Ring" <me>')


etc, this prevents there being any issues with the commands not going off properly.
Log in to post.