mjg Posted May 15, 2007 Share Posted May 15, 2007 Hi, I would like to have the splash screen for splashtexton to appear in a small box on in the bottom right of the screen. Several computers will be running this script and all have different resolution. So I'm unsure if doing it by pixel would be proper. Here is what I have currently: Do If WinActivate("TMS_WS", "") Then SplashTextOn ( "CTMS Logout", "You will be logged out of TMS in " & $time & " minutes; please log off now!!!!!") sleep (60000) SplashOff ( ) Else MsgBox(0, "Thank You,", "Thank you for logging off of TMS!" ) Exit EndIf $time = $time - 1 Until $time = 0 $time is specified earlier in the script. -mjg Link to comment Share on other sites More sharing options...
Emperor Posted May 15, 2007 Share Posted May 15, 2007 You could try using @DesktopHeight and @DesktopWidth to calculate how big the users desktop is and formulate some x and y values to position your splash window. Link to comment Share on other sites More sharing options...
November Posted May 15, 2007 Share Posted May 15, 2007 Hi! Try something like this : SplashTextOn ( "CTMS Logout", "You will be logged out of TMS in " & $time & " minutes; please log off now!!!!!",200, 100, @DesktopWidth - 220, @DesktopHeight - 220) sleep (60000) SplashOff ( ) This is an example... you can make it bigger or smaller... hope this helps! Cheers Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font] Link to comment Share on other sites More sharing options...
mjg Posted May 15, 2007 Author Share Posted May 15, 2007 Works perfectly, thanks y'all. -mjg Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now