Jump to content



Photo

box on top of time


  • Please log in to reply
11 replies to this topic

#1 mrjoli021

mrjoli021

    Seeker

  • Active Members
  • 44 posts

Posted 06 July 2012 - 02:17 PM

I would like to display a box on top of the time with the computer name and IP address. I would need this for serveral clients so I cant relay on a specific resolution.

splashTextOn would work but again if the resolution changes this wont work. I want it always on and always on and by default on top of the time.





#2 JLogan3o13

JLogan3o13

    Down to 98

  • MVPs
  • 2,094 posts

Posted 06 July 2012 - 02:32 PM

Just a suggestion but why create something that is, as you say, "always on" - thus forcing your users to look at it all the time while they're trying to work? Why not something simple like a Tray Icon they can click on to give you the information if necessary? Something like this can be set as a service and therefore always running, but is only visible when needed.

Plain Text         
#NoTrayIcon #include <GUIConstantsEx.au3> Opt("TrayMenuMode", 3) TrayCreateItem("Account: " & @UserName) TrayCreateItem("Hostname: " & @ComputerName) TrayCreateItem("Domain: " & @LogonDomain) TrayCreateItem("Resolution: " & @DesktopWidth & "x" & @DesktopHeight) TrayCreateItem("IP Address: " & @IPAddress1) TrayCreateItem("") $aboutItem = TrayCreateItem("About") TraySetState() TraySetToolTip("Helpdesk Utility") While 1 $msg = TrayGetMsg()   Select    Case $msg = 0     ContinueLoop    Case $msg = $aboutItem     MsgBox(64, "About", "Helpdesk Tooltip Utility")   EndSelect WEnd

J.I spent 10 minutes reviewing code and thinking "What kind of drugs is this guy on?" before realizing it was something I wrote.My Scripts:Include Source with Compiled Script, Disk Maintenance for Windows XP, "Deal-A-Day" Sites, SCCM 2007 Front End, Windows Firewall UDF

#3 mrjoli021

mrjoli021

    Seeker

  • Active Members
  • 44 posts

Posted 06 July 2012 - 03:00 PM

the problem is that sometime users have a hard time looking for the icon specially in windows7 that not all icon are visible in the taskbar. I would like the same thing but in a box that is set by default on top of the time and if the user wishes he can move it but always visible.

#4 mrjoli021

mrjoli021

    Seeker

  • Active Members
  • 44 posts

Posted 06 July 2012 - 03:15 PM

OK thinking about it your right it is better to have the icon on the taskbar, but is there a way to have the information popup with some key strokes like "ctrl" + "i" or what ever we choose?

#5 BrewManNH

BrewManNH

    באָבקעס מיט קודוצ׳ה

  • MVPs
  • 6,859 posts

Posted 06 July 2012 - 03:44 PM

Use a ToolTip and HotKeySet and you can have it pop up using whatever key(s) you want.

How to ask questions the smart way!

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.

Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.

_FileGetProperty - Retrieve the properties of a file SciTE Toolbar - A toolbar demo for use with the SciTE editorGUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.

GUIToolTip UDF Demo - Demo script to show how to use the GUIToolTip UDF to create and use customized tooltips.

Posted Image


#6 mrjoli021

mrjoli021

    Seeker

  • Active Members
  • 44 posts

Posted 06 July 2012 - 04:52 PM

Plain Text         
$icg = "Desktopicg.ico" $tv = RegRead("HKLMSOFTWAREWow6432NodeTeamViewerVersion7", "ClientId") #NoTrayIcon #include <GUIConstantsEx.au3> Opt("TrayMenuMode", 3) TraySetIcon($icg) TrayCreateItem("Account: " & @LogonDomain&""[email="&@UserName"]&@UserName[/email]) TrayCreateItem("Hostname: " & @ComputerName) TrayCreateItem("TeamViewer No. " & $tv) TrayCreateItem("IP Address: " & @IPAddress1) TrayCreateItem("") $aboutItem = TrayCreateItem("About") TraySetState() TraySetToolTip("ICG Support") ToolTip("Account: " & @LogonDomain&""[email="&@UserName"]&@UserName[/email] & @CRLF & "Hostname: " & @ComputerName & @CRLF & "TeamViewer No. " & $tv & @CRLF & "IP Address: " & @IPAddress1,0, 0,"Support Info:") Sleep(1000) While 1 $msg = TrayGetMsg()   Select    Case $msg = 0     ContinueLoop    Case $msg = $aboutItem     MsgBox(64, "About", "For Support Please contact 888-823-5975")   EndSelect WEnd

I would like for the icon $icg to show up instead of the autoit icon. Also the tooltip does not close.

#7 BrewManNH

BrewManNH

    באָבקעס מיט קודוצ׳ה

  • MVPs
  • 6,859 posts

Posted 06 July 2012 - 05:01 PM

You
^------>Help File

How to ask questions the smart way!

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.

Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.

_FileGetProperty - Retrieve the properties of a file SciTE Toolbar - A toolbar demo for use with the SciTE editorGUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.

GUIToolTip UDF Demo - Demo script to show how to use the GUIToolTip UDF to create and use customized tooltips.

Posted Image


#8 JLogan3o13

JLogan3o13

    Down to 98

  • MVPs
  • 2,094 posts

Posted 06 July 2012 - 05:04 PM

For the icon, you need to change this:

$icg = "Desktopicg.ico"


to this:

$icg = @DesktopDir & "icg.ico"

J.I spent 10 minutes reviewing code and thinking "What kind of drugs is this guy on?" before realizing it was something I wrote.My Scripts:Include Source with Compiled Script, Disk Maintenance for Windows XP, "Deal-A-Day" Sites, SCCM 2007 Front End, Windows Firewall UDF

#9 mrjoli021

mrjoli021

    Seeker

  • Active Members
  • 44 posts

Posted 06 July 2012 - 05:16 PM

that worked but what about getting the tooltip to close automatically.

#10 JLogan3o13

JLogan3o13

    Down to 98

  • MVPs
  • 2,094 posts

Posted 06 July 2012 - 05:30 PM

As BrewManNH suggested, it is time to start seeing your own efforts. Check out the help file for both ToolTip and HotKeySet; the answer is there.
J.I spent 10 minutes reviewing code and thinking "What kind of drugs is this guy on?" before realizing it was something I wrote.My Scripts:Include Source with Compiled Script, Disk Maintenance for Windows XP, "Deal-A-Day" Sites, SCCM 2007 Front End, Windows Firewall UDF

#11 mrjoli021

mrjoli021

    Seeker

  • Active Members
  • 44 posts

Posted 06 July 2012 - 05:41 PM

I did read the tooltip help and the example says it is the command and after the sleep timer. Which is what I have done but it does not close.

#12 mrjoli021

mrjoli021

    Seeker

  • Active Members
  • 44 posts

Posted 06 July 2012 - 05:56 PM

I figured it out.
thx




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users