PHAK Posted October 17, 2020 Share Posted October 17, 2020 (edited) 111 Edited December 15, 2020 by PHAK Link to comment Share on other sites More sharing options...
PHAK Posted October 17, 2020 Author Share Posted October 17, 2020 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. Link to comment Share on other sites More sharing options...
Subz Posted October 17, 2020 Share Posted October 17, 2020 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 PHAK 1 Link to comment Share on other sites More sharing options...
PHAK Posted October 17, 2020 Author Share Posted October 17, 2020 That's what I've been doing. But on another computer it changes I did at ToolTip Link to comment Share on other sites More sharing options...
Subz Posted October 17, 2020 Share Posted October 17, 2020 Please post your code, alternatively have a look at Melba23 Toast udf: PHAK 1 Link to comment Share on other sites More sharing options...
PHAK Posted October 17, 2020 Author Share Posted October 17, 2020 I don't have a code. I know it's in ToolTip. I have something like that, Not good Need to be rebuilt Melba23 Toast Not good Should as in the picture TrayTip111.au3 Link to comment Share on other sites More sharing options...
Subz Posted October 18, 2020 Share Posted October 18, 2020 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) PHAK 1 Link to comment Share on other sites More sharing options...
PHAK Posted October 18, 2020 Author Share Posted October 18, 2020 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. Link to comment Share on other sites More sharing options...
Subz Posted October 18, 2020 Share Posted October 18, 2020 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/ PHAK 1 Link to comment Share on other sites More sharing options...
PHAK Posted October 18, 2020 Author Share Posted October 18, 2020 Worked. Amazing Thank you very much. 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