Jump to content

Monitor maximum x and y value


anixon
 Share

Recommended Posts

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
Link to comment
Share on other sites

Try:

@DesktopWidth

@DesktopHeight

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...