Jump to content

Recommended Posts

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
Posted

Try:

@DesktopWidth

@DesktopHeight

Posted

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

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
×
×
  • Create New...