Sign in to follow this  
Followers 0
anixon

Monitor maximum x and y value

3 posts in this topic

#1 ·  Posted (edited)

I am trying to flash a message on the screen at the same location irrespective of whether the computers screen is 15" , 17" or 22"

CODE
flashaf()

Func flashaf()

while 1

$size = WinGetClientSize("")

$plmaf = @scriptdir & "\logogrn.jpg"

SplashImageOn("", $plmaf,30,30,($size[0]- 60),($size[1] - 20),1)

Sleep(400)

SplashOff()

$plmaf = @scriptdir & "\logoblink.jpg"

SplashImageOn("", $plmaf,30,30,($size[0]- 60),($size[1] - 20),1)

SplashOff()

WEnd

EndFunc

This code does not maintain the flashing message at the same location with different screen sizes. Can anyone help thanks

Ant......

Edited by anixon

Share this post


Link to post
Share on other sites



Try:

@DesktopWidth

@DesktopHeight

Share this post


Link to post
Share on other sites

Try:

@DesktopWidth

@DesktopHeight

Thanks for the very prompt help it was more than appreciated initial tests would indicate that it will solve my issue. Cheers :) Ant..

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0