masvil Posted February 3, 2008 Share Posted February 3, 2008 (edited) I need something like SplashImageOn without title and border (as opt = 1, but without thin border). I have just to make an image appear/disappear in a specified position.As alternative I tested GUICreate/GUICtrlCreatePic but I can't get rid of border even using $WS_POPUPWINDOW,$WS_EX_TOOLWINDOW styles.Any help? Edited February 3, 2008 by masvil Link to comment Share on other sites More sharing options...
masvil Posted February 3, 2008 Author Share Posted February 3, 2008 AutoHotKey SplashImage func support borderless viewing, but I still hope someone of you have an AutoIT solution (AHK is a useless tool for me). Link to comment Share on other sites More sharing options...
BigDod Posted February 3, 2008 Share Posted February 3, 2008 Is this anything like what you want #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 633, 438, 193, 115, BitOR($WS_SYSMENU,$WS_DLGFRAME,$WS_POPUP,$WS_CLIPSIBLINGS,$DS_MODALFRAME), 0) $Pic1 = GUICtrlCreatePic("d:\My Documents\My Pictures\topost\3d0d50cb8cbee152056da07040fc9eebd231eb36.jpg", 0, 0, 633, 454, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) GUICtrlSetState(-1, $GUI_DISABLE) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
masvil Posted February 3, 2008 Author Share Posted February 3, 2008 Is this anything like what you wantIt still has a border :-( Link to comment Share on other sites More sharing options...
BigDod Posted February 3, 2008 Share Posted February 3, 2008 Here you go, pic must be a bmp and have a 1 pixel white border #include <GUIConstants.au3> HotKeySet("{ESC}", "Terminate") Func Terminate() GUIDelete($gui) Exit EndFunc ;==>Terminate Func SetWindowRgn($h_win, $rgn) DllCall("user32.dll", "long", "SetWindowRgn", "hwnd", $h_win, "long", $rgn, "int", 1) EndFunc ;==>SetWindowRgn $gui = GUICreate("", 397, 427, -1, -1, $WS_POPUP) GUICtrlCreatePic(".\test.bmp", 0, 0, 397, 427) $a = DllCall(".\BMP2RGN.dll", "int", "BMP2RGN", _ "str", ".\test.bmp", _ "int", 255, _ "int", 255, _ "int", 255) SetWindowRgn($gui, $a[0]) GUISetState(@SW_SHOW, $gui) While 1 Sleep(50) WEnd Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
masvil Posted February 3, 2008 Author Share Posted February 3, 2008 Here you go, pic must be a bmp and have a 1 pixel white borderThanx for effort, but ATM I really need no border at all because of particular desktop visual effects I'm working on.If so I'll post on Feature Requests section. Link to comment Share on other sites More sharing options...
Valik Posted February 3, 2008 Share Posted February 3, 2008 Remove the $WS_DLGFRAME and $DS_MODALFRAME styles and your problem solved. Please learn how things work before you make feature requests. Link to comment Share on other sites More sharing options...
masvil Posted February 3, 2008 Author Share Posted February 3, 2008 You're right. Thanx for past, present and future support to this growing community. Link to comment Share on other sites More sharing options...
Valeriy Posted June 22, 2009 Share Posted June 22, 2009 (edited) How to remove border in SplashImageOn function? Edited June 22, 2009 by Valeriy Link to comment Share on other sites More sharing options...
cobaek Posted July 24, 2018 Share Posted July 24, 2018 On 6/22/2009 at 5:28 PM, Valeriy said: How to remove border in SplashImageOn function? sorry , maybe this old post (maybe necro post), but maybe my info can help the other in help file SplashImageOn("", $sDestination, 500, 500, -1, -1, 1) value last parameter give value "1", this will make SplashImageOn in borderless (almost border-less, having a one pixel width (thin) border.) thanks 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