Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

SC 2.0 sc_20.ini and Wallpaper

Single Click discussions / bugs
Post Reply
draddy
Posts: 1
Joined: 2024-03-12 07:10

SC 2.0 sc_20.ini and Wallpaper

Post by draddy »

Hi all,

my last SC version is from 2021 - now i plan to "refresh" it and see "new look" and its calles SCII (SC 2.0)

first: basic is working - i can connect, like the ability to Keyboard controll the sc.exe and the connect button, nice for users with dobbleclick problems!

some questions:
1. i didn't find a documentaion for the sc_20.ini ?
2. the old version alway removed the remote Wallpaper - the new dose not - is there a setting for this (maybe in the sc_20.ini? :D)

thx
User avatar
rvk
8
8
Posts: 8
Joined: 2022-06-23 08:49

Re: SC 2.0 sc_20.ini and Wallpaper

Post by rvk »

Same here.

The wallpaper stays visible when connecting.
Also... the red frame on the client can't be removed.

I tried adding

Code: Select all

[admin]
Frame=0
RemoveWallpaper=1
to SC_20.ini but that didn't work.

Did you ever find a solution?

Edit:
O, that's unfortunate... It seems the SC doesn't read the [admin] section at all. So WallPaper and Frame get their default values.
And the default value for RemoveWallPaper has changed to FALSE :(

From UltraVNC/winvnc/winvnc/SettingsManager.cpp

Code: Select all

void SettingsManager::load()
{
#ifndef SC_20
  <SNIP>
	m_pref_RemoveWallpaper = myIniFile.ReadInt("admin", "RemoveWallpaper", m_pref_RemoveWallpaper);
  <SNIP>
	m_pref_Frame = myIniFile.ReadInt("admin", "Frame", m_pref_Frame);
  <SNIP>
#endif // SC_20
	m_pref_TurboMode = myIniFile.ReadInt("poll", "TurboMode", m_pref_TurboMode);
	m_pref_PollUnderCursor = myIniFile.ReadInt("poll", "PollUnderCursor", m_pref_PollUnderCursor);
	m_pref_PollForeground = myIniFile.ReadInt("poll", "PollForeground", m_pref_PollForeground);
	m_pref_PollFullScreen = myIniFile.ReadInt("poll", "PollFullScreen", m_pref_PollFullScreen);
	m_pref_PollConsoleOnly = myIniFile.ReadInt("poll", "OnlyPollConsole", m_pref_PollConsoleOnly);
	m_pref_PollOnEventOnly = myIniFile.ReadInt("poll", "OnlyPollOnEvent", m_pref_PollOnEventOnly);
	m_pref_MaxCpu = myIniFile.ReadInt("poll", "MaxCpu2", m_pref_MaxCpu);
	if (m_pref_MaxCpu == 0)
		m_pref_MaxCpu = 100;
	m_pref_MaxFPS = myIniFile.ReadInt("poll", "MaxFPS", m_pref_MaxFPS);
	m_pref_Driver = myIniFile.ReadInt("poll", "EnableDriver", m_pref_Driver);
	if (m_pref_Driver)
		m_pref_Driver = CheckVideoDriver(0);
	m_pref_Hook = myIniFile.ReadInt("poll", "EnableHook", m_pref_Hook);
	m_pref_Virtual = myIniFile.ReadInt("poll", "EnableVirtual", m_pref_Virtual);
	m_pref_autocapt = myIniFile.ReadInt("poll", "autocapt", m_pref_autocapt);
}
Last edited by rvk on 2024-10-01 09:10, edited 1 time in total.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6867
Joined: 2004-04-23 10:21
Contact:

Re: SC 2.0 sc_20.ini and Wallpaper

Post by Rudi De Vos »

Looks like small changes...
What would be the best behaviour?
User avatar
rvk
8
8
Posts: 8
Joined: 2022-06-23 08:49

Re: SC 2.0 sc_20.ini and Wallpaper

Post by rvk »

Rudi De Vos wrote: 2024-10-06 17:51 Looks like small changes...
What would be the best behaviour?
At least the removewallpaper should default to yes in SC.
This was always the case but somehow isn't anymore with the new version.

The [admin] settings for Frame and RemoveWallpaper could be moved outside the ifndef sc_20 in the UltraVNC/winvnc/winvnc/SettingsManager.cpp but I'm not sure if those settings then will actually work in the program itself. In that case it could be controlled via the SC_20.ini in SC.

But if that's too difficult... the default for removewallpaper should at least be restored. (It was also possible to add wallpaper again with [WALLPAPER] in helpdesk.txt. I'm not sure if that setting is still there. A lot has changed since the source of SC has merged with UltraVnc server itself.

Ps. I also opened an issue for this topic...
https://github.com/ultravnc/UltraVNC/issues/223
Last edited by rvk on 2024-10-06 18:09, edited 1 time in total.
Post Reply