Author Topic: Launch Video games  (Read 1678 times)

0 Members and 1 Guest are viewing this topic.

NightSpeed

  • Jr. Member
  • **
  • Posts: 35
  • Karma: 0
    • View Profile
Launch Video games
« on: July 31, 2016, 03:38:35 PM »
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

Code: [Select]
<?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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Launch Video games
« Reply #1 on: August 01, 2016, 12:48:06 PM »
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

  • Jr. Member
  • **
  • Posts: 35
  • Karma: 0
    • View Profile
Re: Launch Video games
« Reply #2 on: August 01, 2016, 01:56:08 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Launch Video games
« Reply #3 on: August 01, 2016, 02:37:16 PM »
OK but remember to put the ++ at the beginning of the command name.