Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updater doesnt select the srcds window to input the warning text. #10

Open
lithium720 opened this issue Apr 11, 2016 · 4 comments
Open

Comments

@lithium720
Copy link

Windows Server 2012 R2

What seems to happen is when there is a detected update, it fails to select the srcds window and sometimes selects stuff on the desktop and opens them.
I did not edit below your line, in fact I changed as little number of settings as i could to get it to work. This is for the non-curl version.

@C0nw0nk
Copy link
Owner

C0nw0nk commented Apr 12, 2016

It is vbscript so it should open the srcds window or goto the srcds window and type into it using vbscripts send keys command.

"say Server is shutting down to install updates, Goodbye!"

@lithium720
Copy link
Author

Right, and what I'm basically trying to say is that rather than doing that, it fails to select the srcds window and opens somthing random on the desktop and then starts typing. I had notepad open at one point, and it started typing stuff into the notepad like
"say Server is shutting down to install updates, Goodbye!"

Rather than typing it into the srcds window.

The script works for me otherwise though. It's odd and I cant figure out why its doing that

@C0nw0nk
Copy link
Owner

C0nw0nk commented Apr 12, 2016

Do you run multiple servers concurrently ?

I did replicate it once but only when running multiple instances of srcds I was going to add a simple true false if check to allow people to disable the server shutting down for updates announcement. But due to the way the script works there is not going to be much of a way around it typing into the srcds window without diving into C++.

PS : If someone does come up with plain text solution to keep it in scripted format on command line just make a pull request and i will push it to the main branch.

@lithium720
Copy link
Author

No I do not run multiple servers concurrently. Just one.
Yeah that's okay, I just cut out all of the notification stuff and it works great, I guess there just won't be any warning when the sever needs to update. shrugs

And maybe it has something to do with the fact that I manage my server Via RDP, I haven't tested it with anything other than RDP. I am aware that RDP does some weird ass shit, so I will try VNC I suppose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants