My use-case: powershell-menu to choose 1 out of multiple MQ2Autologin.ini before starting EQ
Many times ago I got MQ2Autologin to run with my setup (IS-Boxer) creating a MQ2Autologin.ini using a guide I found somewhere here. In the meantime, there are better ways to create different settings of teams to be started with MQ2Autologin.
I tried it but have been too lazy to get it running, so I created different versions of my MQ2Autologin.ini and since I copy the content of the "right" mq2autologinXXXX.ini into mq2autologin.ini before launching EQ.
As in the last weeks somehow the problems to reach "char-select" from an already logged-in char, in order to swap i.e. from my "main"-toons to my "bazaar"-toons increased, I wanted to have it done automatic.
There are different possibillities to create a "batch"-file in order to get this task done without the risk to fail and maybe copy the content in the "wrong" direction. My choise was to create a powershell-script.
Copy the following source into a file like "LogBaz.ps1". Attn: the right extension for a powershell source-file is ".ps1".
source:
if you right-click this file and choose "Run with powershell" you should see the following result:
now you can either direkt click <enter> or else choose the option you like by typing the number and <enter>
in order to create a hot-button onto your desktop use the following syntax for your Link:
which creates a launch-button on your desktop like the following:
Result: you can double-click your "Hot-Button" in order to copy the right version of your "source"-ini into the "target"-ini.
Many times ago I got MQ2Autologin to run with my setup (IS-Boxer) creating a MQ2Autologin.ini using a guide I found somewhere here. In the meantime, there are better ways to create different settings of teams to be started with MQ2Autologin.
I tried it but have been too lazy to get it running, so I created different versions of my MQ2Autologin.ini and since I copy the content of the "right" mq2autologinXXXX.ini into mq2autologin.ini before launching EQ.
As in the last weeks somehow the problems to reach "char-select" from an already logged-in char, in order to swap i.e. from my "main"-toons to my "bazaar"-toons increased, I wanted to have it done automatic.
There are different possibillities to create a "batch"-file in order to get this task done without the risk to fail and maybe copy the content in the "wrong" direction. My choise was to create a powershell-script.
Copy the following source into a file like "LogBaz.ps1". Attn: the right extension for a powershell source-file is ".ps1".
source:
Attn: the processing part is the block: "switch" here you need to modify the filenames you are using.$default = New-Object System.Management.Automation.Host.ChoiceDescription '&0-default', 'Launch default Crew'
$over = New-Object System.Management.Automation.Host.ChoiceDescription '&1-over', 'Launch over Crew'
$bazaar = New-Object System.Management.Automation.Host.ChoiceDescription '&2-bazaar', 'Launch bazaar Crew'
$options = [System.Management.Automation.Host.ChoiceDescription[]]($default, $over, $bazaar)
$title = 'Crewselector'
$message = 'What should be your todays crew?'
$result = $host.ui.PromptForChoice($title, $message, $options, 0)
switch ($result)
{
0 { Copy-Item "D:\EQ\MQNext\config\mq2autologinDefault.ini" -Destination "D:\EQ\MQNext\config\mq2autologin.ini" }
1 { Copy-Item "D:\EQ\MQNext\config\mq2autologinOver.ini" -Destination "D:\EQ\MQNext\config\mq2autologin.ini" }
2 { Copy-Item "D:\EQ\MQNext\config\mq2autologinBazaar.ini" -Destination "D:\EQ\MQNext\config\mq2autologin.ini" }
}
[Environment]::Exit(0)
if you right-click this file and choose "Run with powershell" you should see the following result:
now you can either direkt click <enter> or else choose the option you like by typing the number and <enter>
in order to create a hot-button onto your desktop use the following syntax for your Link:
Where "D:\EQ\PS\LogBaz.ps1" is the name and path of the source-file you created.C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -ExecutionPolicy Bypass -File D:\EQ\PS\LogBaz.ps1
which creates a launch-button on your desktop like the following:
Result: you can double-click your "Hot-Button" in order to copy the right version of your "source"-ini into the "target"-ini.
Last edited: