Jump to content
PHAK

How do I position a Splash on the screen (bottom right)?

Recommended Posts

כאשר ההתזה נפתחת, אני רוצה אותו ממוקם למטה מימין.

אני חדשה .
ואני לא מבין הרבה.

רוצה כמו
בתמונה רק בפינה הימנית התחתונה.

תודה.

1 (2).png

Share this post


Link to post
Share on other sites

When the Splash opens, I want it positioned bottom right.

I'm new.
And I don't understand much.

Want as in the picture
Just on the bottom right.

thanks.

Share this post


Link to post
Share on other sites

Just calculate the desktop width/height minus the window size.  For example:

#include <Array.au3>
#include <AutoItConstants.au3>

;~ Example 1
Local $aTrayPos = WinGetPos("", "[CLASS: Shell_TrayWnd]")
$sMessage = ""
SplashTextOn("TitleFoo", $sMessage, 300, 50, $aTrayPos[2] - 325, $aTrayPos[3] - 100, $DLG_TEXTLEFT, "")
For $i = 1 To 20
    $sMessage = $sMessage & $i & @CRLF
    ControlSetText("TitleFoo", "", "Static1", $sMessage)
    Sleep(100)
Next
SplashOff()

;~ Example 2
$sMessage = ""
SplashTextOn("TitleFoo", $sMessage, 300, 50, @DesktopWidth - 305, @DesktopHeight - 125, $DLG_TEXTLEFT, "")
For $i = 1 To 20
    $sMessage = $sMessage & $i & @CRLF
    ControlSetText("TitleFoo", "", "Static1", $sMessage)
    Sleep(100)
Next

 

Share this post


Link to post
Share on other sites

Couldn't see the image, this works for me:

#include <Array.au3>
#include <StringSize.au3> ;~ https://www.autoitscript.com/forum/topic/114034-stringsize-m23-new-version-16-aug-11/

Local $sGuiTitle = '11111111111111111111111111111'
Local $aStringSize = _StringSize($sGuiTitle)
ToolTip ( '1111111111111111111111111' & @Crlf, @DesktopWidth - $aStringSize[2], @DesktopHeight - (60 + $aStringSize[3]), $sGuiTitle, 0, 4 )
Sleep(3000)

 

Share this post


Link to post
Share on other sites
12 hours ago, Subz said:

לא יכולתי לראות את התמונה, זה עובד בשבילי:

#include <Array.au3>
#include <StringSize.au3> ;~ https://www.autoitscript.com/forum/topic/114034-stringsize-m23-new-version-16-aug-11/

Local $sGuiTitle = '11111111111111111111111111111'
Local $aStringSize = _StringSize($sGuiTitle)
ToolTip ( '1111111111111111111111111' & @Crlf, @DesktopWidth - $aStringSize[2], @DesktopHeight - (60 + $aStringSize[3]), $sGuiTitle, 0, 4 )
Sleep(3000)

 

Thanks for your help.

Error 
>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\PC\Desktop\1.au3"    
C:\Users\PC\Desktop\1.au3 (2) : ==> Error opening the file.: 
#include <StringSize.au3> 

>Exit code: 1    Time: 0.1016

Delete the picture,
I don't need the picture.
only Splash. 
That there always will be 
On the bottom right
apologetic
I didn't make it.

Share this post


Link to post
Share on other sites

The url for StringSize.au3 is in the code above, you need to download the file first to use the code above.

https://www.autoitscript.com/forum/topic/114034-stringsize-m23-new-version-16-aug-11/

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...