Sending Console Exec Commands Via Shortcuts

Eorzea Time
 
 
 
Language: JP EN FR DE
Version 3.1
New Items
users online
Forum » Windower » Support » Sending console exec commands via Shortcuts
Sending console exec commands via Shortcuts
 
Offline
Posts:
By 2019-05-19 06:29:52
| Edit  | Link | Quote | Reply
 
Post deleted by User.
 Shiva.Paulu
Offline
Server: Shiva
Game: FFXI
user: Paulu
Posts: 776
By Shiva.Paulu 2019-05-19 08:25:26
Link | Quote | Reply
 
/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
Server: Asura
Game: FFXI
user: DatGoose
Posts: 576
By Asura.Meliorah 2019-05-19 08:58:53
Link | Quote | Reply
 
/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
Server: Asura
Game: FFXI
Posts: 695
By Asura.Chaostaru 2019-05-19 09:49:42
Link | Quote | Reply
 
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:
By 2019-05-19 14:40:19
 Undelete | Edit  | Link | Quote | Reply
 
Post deleted by User.
 Asura.Meliorah
Offline
Server: Asura
Game: FFXI
user: DatGoose
Posts: 576
By Asura.Meliorah 2019-05-19 15:00:45
Link | Quote | Reply
 
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:
By 2019-05-19 15:03:22
 Undelete | Edit  | Link | Quote | Reply
 
Post deleted by User.
 Asura.Meliorah
Offline
Server: Asura
Game: FFXI
user: DatGoose
Posts: 576
By Asura.Meliorah 2019-05-19 15:05:41
Link | Quote | Reply
 
above command works

 Asura.Chiaia
VIP
Offline
Server: Asura
Game: FFXI
user: Demmis
Posts: 1652
By Asura.Chiaia 2019-05-19 16:10:30
Link | Quote | Reply
 
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:
By 2019-05-19 16:33:36
 Undelete | Edit  | Link | Quote | Reply
 
Post deleted by User.
 Valefor.Darvis
Offline
Server: Valefor
Game: FFXI
Posts: 30
By Valefor.Darvis 2019-05-19 22:05:48
Link | Quote | Reply
 
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
Server: Phoenix
Game: FFXI
user: Esvedium
Posts: 73
By Phoenix.Esvedium 2019-06-03 09:50:55
Link | Quote | Reply
 
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
Server: Cerberus
Game: FFXI
Posts: 1649
By Cerberus.Shadowmeld 2019-06-03 11:20:04
Link | Quote | Reply
 
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
Server: Phoenix
Game: FFXI
user: Esvedium
Posts: 73
By Phoenix.Esvedium 2019-06-03 20:08:41
Link | Quote | Reply
 
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
Server: Sylph
Game: FFXI
user: Subadai
Posts: 184
By Sylph.Subadai 2019-06-03 23:45:24
Link | Quote | Reply
 
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
Server: Asura
Game: FFXI
user: DatGoose
Posts: 576
By Asura.Meliorah 2019-06-04 11:22:19
Link | Quote | Reply
 
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.