News:

HOT TIP! Enable the History Window in the main UI when trying to problem solve. It provides a handy log of what is happening. Roll over lines in the History to get more details.

Main Menu

Launch Video games

Started by NightSpeed, July 31, 2016, 03:38:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NightSpeed

Hi guys I have recently fell in love with blizzards game Overwatch and made a little code that will launch it for you. I ran into some issues that if you are to launch from blizzards "incertgamehere.exe" it fails to remember your un and password and when I put it in got me a failed attempt. So what I did was launch blizzards launcher then put in a wait (for launcher to pop up) and then put the mouse over the button and click for you. you might have to resize the window or change where the mouse needs to click the play button because every monitor is different. If anyone has a more efficient way of doing this please let me know :D

<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.7-->
<commandGroup open="True" name="Launch Overwatch" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="489" name="Launch Overwatch" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Launch</cmdType>
      <params>
        <param>C:\Program Files (x86)\Overwatch\Overwatch Launcher.exe</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Starting Overwatch</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>VC.Pause</cmdType>
      <params>
        <param>15000</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Mouse.MoveAbsolute</cmdType>
      <params>
        <param>280,480</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Mouse.LeftClick</cmdType>
      <params />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Launch Overwatch,Play Overwatch,I want to play overwatch</phrase>
  </command>
</commandGroup>

jitterjames

I don't have that game so I can't be sure how it works but sometimes it is possible to press the tab key to select a new field or button. If the game allows it that would probably be preferable to using the mouse.

The other thing is that if you are going to use VC.Pause for more than a second or two it is often a good idea to prefix the command name with ++ so that it runs the command in its own thread and does not freeze VC.

NightSpeed

Thank you for the tip. unfortunately tab dose not do anything but I will add the ++ to the front of the pause thanks for the heads up :D

jitterjames

OK but remember to put the ++ at the beginning of the command name.