ReticentRobot 2015 年 7 月 30 日 上午 10:38
Stream Xbox One Games from Big Picture Mode?
Anybody know if it would somehow be possible to start Xbox One game streaming (power on, power down, stream) from within Steam using command line, powershell, scripting of some sort?
< >
正在显示第 1 - 9 条,共 9 条留言
Bizzquik 2015 年 8 月 30 日 下午 8:35 
I would love this as well.

I am building my own Windows 10 PC for gaming exclusively and it'd be neat to get straight into a Xbox One exclusive title from within Big Picture.
Bizzquik 2015 年 9 月 9 日 上午 9:31 
Thanks for looking into and letting me know.
Bizzquik 2015 年 9 月 9 日 下午 4:37 
ReticentRobot 2015 年 9 月 10 日 上午 8:20 
Ah cool, looks like he is launching the xbox app and then games from there (link above was for launching minecraft directly). I haven't tried launching the xbox app first like that (though it will require a mouse/keyboard or something like xpadder until the Steam controller comes out since the xbox app doesn't support gamepads). I'll give this a try, thanks!
Bizzquik 2015 年 9 月 10 日 上午 10:13 
Below are his notes to me.
I'm not able to understand much of this, but hopefully it'll be of use to you.

___________________________________________________


Really not that complex at all. It's just a giant macro-driven batch file. First, I launch the xbox streaming application on windows 10, using the following command: start xbox

next, I launch a program from the batch file called AutoSizer, this lets me save the position and size of the Xbox Streaming window so buttons will be in the same place every time. I have autosizer automatically make the xbox streaming app full screen then close.

Next, I launch an autohotkey script that uses MouseMove to move the position of the mouse and send mouse clicks. (EDIT: One tip - when you do this, use CoordMode to make the XY coordinate you feed your mouse relative to the entire screen, not just active window. This way, even if you lose focus of the xbox streaming window as the batch files open and close, it'll still be clicking in the correct spot of the screen.) I just figured out where the "Xbox streaming" button was, moved the mouse to that button, then clicked, then moved to the "turn on Xbox" button and clicked that, then moved to the "stream" button and clicked that. I saved my autohotkey script as an executable and launch it from my batch file after resizing the xbox streaming application with AutoSizer.

After all that, I took my batch file, and using an online batch to exe converter (like this one: http://www.f2ko.de/en/ob2e.php) turned it into an executable, added it as a non-steam game, then gave it a custom steam banner.

Voila, one click xbox one streaming. I can go from playing a steam game to playing an Xbox One game without ever putting down the controller or changing the channel.
___________________________________________________


MouseMove is a command in autohotkey. I have autohotkey set to start when windows starts, because I use it and eventghost to remap some buttons on my MCE remote. I just send it scripts to execute when I need to. However you can use autohotkey in a variety of ways - it's a very powerful windows macro and remapping tool. You can create macros that themselves compile into executables that you can open from your batchfile if you don't want to keep autohotkey running at all times. In that case, once the macro finishes executing, the autohotkey program closes. Autosizer is installed on the system, the batch file that I turn into an executable opens and closes it as necessary.

I use the following commands pretty extensively, they are very useful for controlling windows through batch files:

Taskkill - Lets you end programs in windows from a command.

Start - lets you run and execute programs from a command line, very useful. You need to properly set up the command, point to the correct startup folder with the /D flag. You can use /wait to make the batch file halt until the started task has ended, which is useful if you want to make sure something finishes before moving on.

within autohotkey, I use the following commands:

MouseMove - moves the mouse cursor to specific locations on an active window or the entire screen. I use CoordMode to make sure the mouse locations I am sending are relative to the entire screen, not a particular window. The command can be instant - i.e. the mouse cursor moves instantly to the desired location, or you can set a movement speed. Using the movement speed is handy if you want to delay an action. Example - because it can take time to connect or turn on my xbox one, I will move the mouse slowly from button to button, exceeding the timeout period, so that the correct actions will be complete by the time I am ready to move on.

MouseClick - This clicks at a specified location relative to either a window or the entire screen. This is the command I use to click buttons on the Xbox One streaming app. A general tip - if you launch the Xbox One streaming app from steam, it'll appear for a moment, then you'll return to the steam interface. This is because what you are actually launching is an executable that is sending batch commands, not the xbox one streaming app itself. When the executable is done sending it's commands, steam thinks the program has ended and returns you to the menu. You can get around this by sending a mouse click command to an area of the screen where the Xbox One streaming app appears, so that it steals focus away from steam. This way, when the command line executable program ends, the Xbox One streaming app still has focus.

In the end, everything is activated from one executable, which I add into steam. If I open the shortcut in steam labeled "Xbox One" it'll run my batch file to open the xbox streaming app, open the streaming tab, turn on my xbox, and set the client to start streaming.
___________________________________________________


Honestly, a lot of this autohotkey stuff won't be necessary in about a month once steam controllers arrive. At that point, controlling your mouse from your couch with a controller becomes trivial. The xbox one streaming app is completely navigable with a steam controller, meaning all you have to do is create a batch file that launches the streaming app and nothing more. Sure you'd have to put down your steam controller and pick up an xbox one controller but that's just a minor inconvenience if you can't be bothered to do what I describe above. I have my PS4 running to an ExtremeCap U3 so I can stream my PS4 to my PC as well, and basically play my entire library from one device without ever changing the channel, but I have to switch controllers in that case. So having to switch to the xbox one controller isn't a big deal for me.

You can use the method I described, however, to add all sorts of things to steam. It's really useful if you want to add, say, netflix or hulu or any other type of website-based streaming content to steam through an actual shortcut in your games list. That's how I have the ESPN3 shortcut in the image I posted earlier.
JapaMTS 2015 年 9 月 10 日 上午 10:15 
every body is gay
Bizzquik 2015 年 9 月 10 日 上午 10:33 
"Honestly, a lot of this autohotkey stuff won't be necessary in about a month once steam controllers arrive. At that point, controlling your mouse from your couch with a controller becomes trivial. The xbox one streaming app is completely navigable with a steam controller, meaning all you have to do is create a batch file that launches the streaming app and nothing more."
________

I think Controller Companion can accomplish much of that already.
http://psteamproxy.yuanyoumao.com/app/367670
ReticentRobot 2015 年 9 月 10 日 下午 4:00 
引用自 Bizzquik
"Honestly, a lot of this autohotkey stuff won't be necessary in about a month once steam controllers arrive. At that point, controlling your mouse from your couch with a controller becomes trivial. The xbox one streaming app is completely navigable with a steam controller, meaning all you have to do is create a batch file that launches the streaming app and nothing more."
________

I think Controller Companion can accomplish much of that already.
http://psteamproxy.yuanyoumao.com/app/367670


Unfortunately it looks like it doesn't work on the Windows login screen so I can't login with a gamepad, guess I will have to wait for the Steam Controller before Windows 10 will work (sort of) well as a TV machine.
< >
正在显示第 1 - 9 条,共 9 条留言
每页显示数: 1530 50

发帖日期: 2015 年 7 月 30 日 上午 10:38
回复数: 9