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
- 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

Changing the Connection ID text color and background?

Simple, Free, Open Source UltraVNC Wrapper Supporting Windows and Mac OSX
Post Reply
ljac
8
8
Posts: 9
Joined: 2010-08-16 04:27

Changing the Connection ID text color and background?

Post by ljac »

On the current release (3.1) is there a way to change the Connection ID text background?

Thanks in advance.

L!ac.
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Changing the Connection ID text color and background?

Post by supercoe »

Lines 41-47 of the file SRC\InstantSupport.au3 customize the GUI.

I recommend using the AutoIt Script Editor editor (SciTE) from the AutoIT package: http://www.autoitscript.com/autoit3/downloads.shtml

Code: Select all

; Create the GUI.
$InstantSupport = GUICreate( "Instant Support", 450, 200, -1, -1, BitOR( $WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_BORDER,$WS_CLIPSIBLINGS,$WS_MINIMIZEBOX ) )
GUISetBkColor( 0xFFFFFF )
$Label2 = GUICtrlCreateLabel( $RandomNumber, 0, 100, 450, 100, $SS_CENTER )
GUICtrlSetFont( -1, 50, 800, 0, "Arial Black" )
$Pic1 = GUICtrlCreatePic( $TempPath & "\logo.jpg", 0, 0, 450, 90, BitOR( $SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS ) )
GUISetState( @SW_SHOW )
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
ljac
8
8
Posts: 9
Joined: 2010-08-16 04:27

Re: Changing the Connection ID text color and background?

Post by ljac »

Thanks Supercoe! I can see where to change the background color but not the Font color.

I'm guessing is somewhere around line 45:

GUICtrlSetFont( -1, 50, 800, 0, "Arial Black" )
Last edited by ljac on 2010-10-21 19:19, edited 1 time in total.
User avatar
supercoe
400
400
Posts: 1732
Joined: 2009-07-20 21:27
Location: Walker, MN
Contact:

Re: Changing the Connection ID text color and background?

Post by supercoe »

Sorry about that, I forgot that the color wasn't in those variables.

You'll want to add this line below GUICtrlSetFont....

Code: Select all

GUICtrlSetColor(-1, 0xff0000)   ; Red
Change the color based on the second variable (hex value).

Here is the first hex based color wheel I found on google: http://www.allprofitallfree.com/color-wheel2.html
http://www.chunkvnc.com - ChunkVNC - Free PC Remote control with the Open Source UltraVNC wrapper InstantSupport!
ljac
8
8
Posts: 9
Joined: 2010-08-16 04:27

Re: Changing the Connection ID text color and background?

Post by ljac »

Thanks! works great!
Post Reply