STEAM 组
Steam Remote Play homestream
STEAM 组
Steam Remote Play homestream
1,875
游戏中
29,314
在线
成立于
2013 年 11 月 7 日
所有讨论 > General Discussion > 主题详情
MasterMind 2015 年 11 月 8 日 下午 10:03
AHK DESKTOP STREAMING
CLEAN STREAMING - No taskbar buttons or system tray icons when streaming.
UNMUTE HOST ON STARTUP - Optionally unmute the host on startup.
CHANGE RESOLUTION ON STARTUP - Change the hosts resolution on startup.
VOLUME CONTROL OF HOST - Volume up, down, mute/unmute the host.
QUICKLY END STREAMING - End stream and revert resolution with hotkey.
HOTKEY MENU - Press Ctrl+Alt+X to list all available hotkeys.
STARTUP & GAME FREEZE FIX - Refocus in situations where it can become unfocused.

INSTRUCTIONS:
1. Download and install AutoHotkey on the host(needed to compile the script).
2. Copy the code and paste it into a new txt file and rename it to 1-DESKTOP.AHK
3. Right click the file and select compile. A new .exe will be created in the same location.
4. Add the .exe to the host pc's Add a non-steam game section.
5. Stream 1-DESKTOP from client which will be at the top of your library.

I recommend running both steams on client and host as admin as well as the games your playing, this tends to fix input and certain types of black screen issues. Also running the games windowed on the host can help as well...for the steamlink obviously this isn't possible so I don't know what will happen if running steam as admin, I don't have a steamlink but it should work.

Also quite possibly this could be an older script I posted from my dropbox if it is I will check my current file to see what i've added or updated...but ultimately let me know it still works...

|AHK DESKTOP LINK| ---> http://pastebin.com/t2Kggs1x <---|AHK DESKTOP LINK|

More Features & Bug Fixes Upon Request...
Big Picture Mode Coming Soon As Well...
最后由 MasterMind 编辑于; 2016 年 7 月 16 日 下午 6:09
< >
正在显示第 46 - 60 条,共 98 条留言
SnakeEyes 2016 年 3 月 9 日 下午 11:08 
I just wanted to say thank you very much for this and all your work MasterMind. I'm actually really surprised by how few people seem to know about your script considering how well this works. I've been testing out different streaming solutions for a remote desktop build I have in the works and so far out of MULTIPLE different software packages, Steam In-Home Streaming combined with your script/exe is the only one that does the majority of what I need it to do, reliably and cleanly. Awesome job, please keep up the good work!!

I know you've been working on different aspects of the project and some features come and go, but I wanted to let you know my experiences so far as of today 3/10/2016(JST). Please keep in mind that my experience with AHK is literally only what I've done while playing with your script, lol.

I am running win10 pro 64 on the host computer, and vista 32 on the client. This is not what my final build will be, but what I am using for testing at the moment.

----

ALT+Shift seems to work for me without any issues streaming in either direction (must truly be a win8 issue).

Win + Alt + X seems to do nothing on either machine from what I could tell.

I don’t know if this is by design, but the hotkeys list won’t go away, mouse clicking it just makes windows beep. I ended up ; that whole portion out as it was blocking the middle of the screen and wouldn’t disappear for me.

The biggest issue that I’m struggling with is that when the win10 Task Manager is opened from the Vista client, you lose I/O to the host with the mouse and keyboard. Sure, you can move the mouse around on the client, but it has no effect on the host machine. That is, until you use the Host pc’s mouse or keyboard to select the desktop or another window. I had no such issues when the Win10 machine was used as the client accessing Vista task manager.

Oddly enough, the game Lineage 2 also does this when opened on the client. Everything remains streamed from the host, you can play it from the host, but only watch it on the client. Just like with the task manager, it’s like the L2 launcher and the game itself pull the I/O focus back to the host machine for some reason. Again, (on the host machine) if you click the desktop, Alt+Tab to another window, click anything outside the game/launcher window, it returns to working as normal on the client. As such, it makes you unable to use the Task manager or play Lineage 2 from the client. Any help on this would be greatly appreciated.
MasterMind 2016 年 3 月 10 日 上午 7:15 
No problem, thanks for the praise...It bugged the crap out of me no one built anything like this and with the amount of things you can do with AHK it only made sense I take full advantage of it. Now currently as is the script is flawed, I ripped it apart to rewrite a few things and didn't reimplement everything that was originally in it. And I haven't fully tested it either, I did know the Hotkey menu was popping up at the start of the stream, which was not my intention and it obviously broke the hotkey. I'll fix that asap. About Win 8 Alt Tab not working this is because the programmer for autohotkey Lexikos hasn't implemented a proper fix for it and most likely never will, I discussed it with him thoroughly. He told me there was a hack you could do on win 8 that would kinda fix it, which was unacceptable for something others would want to use...I actually figured out how to fix it with about 10 simple lines of code in AHK, which was a pain to troubleshoot but it works. Problem is whenever I implemented it to my script it would never work properly and I gave up on it, eventually win 8 will fade like the rest. Now the input issues your having are troublesome. Usually I get a black screen along with input loss from the client, I created this script to deal with exactly that, I'll do some more thorough testing today and see if I can't correct a few things, I don't have an issue with task manager. Are you opening task manager with ctrl alt del from Lineage? You still have video yet input stops working completely from the host? does clicking off task manager and onto the desktop on the host correct the input problem on the client(If so I should be able to easily fix that)...Actually now that I think about it. Is steam or the game lineage 2 running as admin?
MasterMind 2016 年 3 月 10 日 上午 7:43 
On a side note if your interested in learning more about AHK goto the ahk forums. There very helpful there and there are literally hundreds, maybe even thousands of scripts there to use as examples. What i've done with this script is tried to keep it as simple as possible for people that don't know much about it.
MasterMind 2016 年 3 月 10 日 下午 1:34 
I'll be rewriting the script again, possibly alittle differently. Using labels in hotkeys seems to be causing an issue with the script and on top of that the resolution auto change at startup doesn't seem to be working right...
SnakeEyes 2016 年 3 月 13 日 上午 5:24 
Sorry it took so long to reply, but I wanted to get back to you on this. Let me reply to the first portion.

Q: Are you opening task manager with ctrl alt del from Lineage?
A: From the client, I can try to open Task Manager using any method (right click taskbar, CtrlAltDel, etc.) and the client will loose the ability to click or type. The only thing you can do from the client at this point is move the mouse around. However, this movement is only seen on the client PC and not the host. Lineage II is mentioned as it reacts in the exact same manner as the task manager for some reason.

Q: You still have video yet input stops working completely from the host?
A: The client still receives video, and any action taken on the host is seen on the client. Inputs on the host work as normal with no issues.

Q: does clicking off task manager and onto the desktop on the host correct the input problem on the client(If so I should be able to easily fix that)...
A: Yes

Q: Actually now that I think about it. Is steam or the game lineage 2 running as admin?
A: L2 is being run as admin, no sure about steam (default)
SnakeEyes 2016 年 3 月 13 日 上午 5:33 
引用自 MasterMind
I also removed the resolution changing feature mainly because I can no longer get it to work in Win 10, eventually I will fix it. Any requests or bugs your still having let me know...

This is just a temporary build of the script until I can implement some new features and re add old ones, getting them all to work properly, which will take some time....

Weird, I didn't have any issues with the resolution changer once I set it to the right resolutions streaming in either direction VistaHome32<=>Win10Pro64. Granted, I haven't tried the script in a few days since I've been busy. I'll take a look at the scripting that you've changed and if I get access to that other computer tonight, I'll try it out! Thanks
Trivorx 2016 年 3 月 13 日 上午 6:00 
Hey, it's me again, the guy who basically revived this thread. I'd like to provide some feedback as well since you've restarted work on the script. For reference, I'm using Windows 8.1.

Alt-tab indeed doesn't work. Streaming the desktop however works great, switching monitors too. However, I've noticed that trying to play any game while using the script is very laggy, compared to smooth 1080p60FPS stream if I just start the game stream. I use borderless window for 95% of my games so either way( desktop stream or game stream) there should be no difference but I've noticed that "Desktop window manager" is taking up 35-45% of my CPU in task manager whenever I try to play any game through your script.

I've had trouble with DWM CPU usage before when I had 1 monitors plugged into my GPU and one into my iGPU on the motherboard, but now I have them both plugged into the GPU.

Any idea why it's causing such huge CPU usage? Anyone else can verify if it happens to them as well or is it just an issue on my side?
MasterMind 2016 年 3 月 13 日 上午 8:36 
引用自 Rynvar
Hey, it's me again, the guy who basically revived this thread. I'd like to provide some feedback as well since you've restarted work on the script. For reference, I'm using Windows 8.1.

Alt-tab indeed doesn't work. Streaming the desktop however works great, switching monitors too. However, I've noticed that trying to play any game while using the script is very laggy, compared to smooth 1080p60FPS stream if I just start the game stream. I use borderless window for 95% of my games so either way( desktop stream or game stream) there should be no difference but I've noticed that "Desktop window manager" is taking up 35-45% of my CPU in task manager whenever I try to play any game through your script.

I've had trouble with DWM CPU usage before when I had 1 monitors plugged into my GPU and one into my iGPU on the motherboard, but now I have them both plugged into the GPU.

Any idea why it's causing such huge CPU usage? Anyone else can verify if it happens to them as well or is it just an issue on my side?

I experienced a similar issue awhile back, 2 things you can try, use the new script i've put in my previous post, thats if your using the old one, any features that are missing and you want i'll reimplement immediately. Secondly make sure your steam on both moachines is either up to date or run the beta update on both and get back to me...It could also be one of the autoexec commands in the script causing the problem, but thats not something I can test because i'm not having the issue, I do know that if you enable detect hidden windows in the script it gets all screwy, if it works at all...
最后由 MasterMind 编辑于; 2016 年 3 月 13 日 上午 8:56
MasterMind 2016 年 3 月 13 日 上午 8:37 
引用自 SnakeEyes
引用自 MasterMind
I also removed the resolution changing feature mainly because I can no longer get it to work in Win 10, eventually I will fix it. Any requests or bugs your still having let me know...

This is just a temporary build of the script until I can implement some new features and re add old ones, getting them all to work properly, which will take some time....

Weird, I didn't have any issues with the resolution changer once I set it to the right resolutions streaming in either direction VistaHome32<=>Win10Pro64. Granted, I haven't tried the script in a few days since I've been busy. I'll take a look at the scripting that you've changed and if I get access to that other computer tonight, I'll try it out! Thanks

No problem what so ever on Win 10 x64??? hmm that tells me my system might be screwed up...wouldn't be the first time lol...
MasterMind 2016 年 3 月 13 日 上午 8:42 
引用自 SnakeEyes
Sorry it took so long to reply, but I wanted to get back to you on this. Let me reply to the first portion.

Q: Are you opening task manager with ctrl alt del from Lineage?
A: From the client, I can try to open Task Manager using any method (right click taskbar, CtrlAltDel, etc.) and the client will loose the ability to click or type. The only thing you can do from the client at this point is move the mouse around. However, this movement is only seen on the client PC and not the host. Lineage II is mentioned as it reacts in the exact same manner as the task manager for some reason.

Q: You still have video yet input stops working completely from the host?
A: The client still receives video, and any action taken on the host is seen on the client. Inputs on the host work as normal with no issues.

Q: does clicking off task manager and onto the desktop on the host correct the input problem on the client(If so I should be able to easily fix that)...
A: Yes

Q: Actually now that I think about it. Is steam or the game lineage 2 running as admin?
A: L2 is being run as admin, no sure about steam (default)

What i'll do to start is create a Hotkey for you to toggle task manager open and closed and we'll see if the problem persists, if it does then what i'll have to do is basically design the script to detect when Task Manager is open and pull focus away and back to it again, just like I did with the stream fix but no black box...now as far as lineage running as admin I suspect its having trouble with the script because its not running as admin, I will correct that specifically for you, now the thing with that is you will also have to run steam as admin as well, it may harp at ya and say its not a good idea but just ignore it, i've been running steam as admin forever to fix input issues in steam games I run through streaming, hopefully that will fix your Lineage 2 issues...Actually now that I think of it running the script as Admin may fix the task manager issue as well, had that problem before I think when I created a hotkey to toggle it open and closed, but i'll add a hotkey for it anyway...
最后由 MasterMind 编辑于; 2016 年 3 月 13 日 上午 8:52
MasterMind 2016 年 3 月 13 日 上午 8:54 
@SnakeEyes uncomment the following in the script to make it run as admin automatically....

;UNCOMMENT THIS IF YOU RUN STEAM OR ANY GAME AS ADMIN
;if not A_IsAdmin
;{
; Run *RunAs "%A_ScriptFullPath%"
; ExitApp
;}

So it looks like...

;UNCOMMENT THIS IF YOU RUN STEAM OR ANY GAME AS ADMIN
if not A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%"
ExitApp
}

then recompile it...

And also in compatibility tab for the steam shortcut on both host and client, check run as admin...that should fix your problems, let me know...
最后由 MasterMind 编辑于; 2016 年 3 月 13 日 上午 8:54
MasterMind 2016 年 3 月 13 日 上午 8:59 
引用自 Rynvar
Hey, it's me again, the guy who basically revived this thread. I'd like to provide some feedback as well since you've restarted work on the script. For reference, I'm using Windows 8.1.

Alt-tab indeed doesn't work. Streaming the desktop however works great, switching monitors too. However, I've noticed that trying to play any game while using the script is very laggy, compared to smooth 1080p60FPS stream if I just start the game stream. I use borderless window for 95% of my games so either way( desktop stream or game stream) there should be no difference but I've noticed that "Desktop window manager" is taking up 35-45% of my CPU in task manager whenever I try to play any game through your script.

I've had trouble with DWM CPU usage before when I had 1 monitors plugged into my GPU and one into my iGPU on the motherboard, but now I have them both plugged into the GPU.

Any idea why it's causing such huge CPU usage? Anyone else can verify if it happens to them as well or is it just an issue on my side?

Alt tab won't work on Win 8.1, i've extensively tried to get it working, I even created a fix for it here... https://autohotkey.com/boards/viewtopic.php?t=10535

Problem is I tried to implement it into the Desktop script but could never get it to work properly, it would behave differently in the script than it would if just ran seperately in another script...
最后由 MasterMind 编辑于; 2016 年 3 月 13 日 上午 8:59
MasterMind 2016 年 3 月 13 日 上午 9:08 
@SnakeEyes I have confirmed running the script, and both steams as admin has fixed the taskmanager issue, it should also fix Lineage 2, let me know
MasterMind 2016 年 3 月 13 日 上午 9:32 
First post updated with the new script, task manager toggle implemented as well as Resolution Change reimplemented, let me know if the resolution change works ok, it's not working at all on my Win 10 x64...
MasterMind 2016 年 3 月 13 日 下午 3:35 
Posted a new updated link, I spent the past few hours today working out what bugs I could and optimizing the script...Let me know if there are still issues...
< >
正在显示第 46 - 60 条,共 98 条留言
每页显示数: 1530 50

所有讨论 > General Discussion > 主题详情
发帖日期: 2015 年 11 月 8 日 下午 10:03
回复数: 98