Crome_BAD Posted January 28, 2005 Share Posted January 28, 2005 Would it be possible to use a Picture as a gui? i wana create buttons and everything within the picture, if u need more info, ill post the pic Peace Crome_BAD Link to comment Share on other sites More sharing options...
layer Posted January 28, 2005 Share Posted January 28, 2005 ummm... why not just make the gui a tool window style, and make it the size of the picture and make the picture the size of the whole GUI and then just put controls on top... Functions Needed (main ones at least): GUICreateGUICtrlCreateButton (whatever controls u want)GUICtrlCreatePicpost if u need help FootbaG Link to comment Share on other sites More sharing options...
therks Posted January 28, 2005 Share Posted January 28, 2005 I made a quick hack of a Winamp skin (even made the skin changeable).Check out this thread. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Crome_BAD Posted January 28, 2005 Author Share Posted January 28, 2005 Ok, heres a new question, lol. How would u make the gui have a transparent background, i can post the picture. Im using photoshop. Peace Crome_BAD Link to comment Share on other sites More sharing options...
Nova Posted January 28, 2005 Share Posted January 28, 2005 (edited) Do a winset trans before guisetstate Im in a rush and dont have the correct syntax with me but here a basic example fo what you need to do. $trans = 150 $gui = Guicreate winsettrans ($gui, $trans) If you still cant get it working, ill post real code when I get home. Nova Edited January 28, 2005 by Nova Link to comment Share on other sites More sharing options...
therks Posted January 28, 2005 Share Posted January 28, 2005 I think he's looking to have the GUI have regions of transparency, like a mask, like what Winamp can do, which unfortunately, is not available. If however, you want the whole GUI to be evenly partially transparent, then, like Nova pointed out, WinSetTrans() is the function to use. Some actual working code (not to be offensive): #include <GuiConstants.au3> $gui = GuiCreate('Window') WinSetTrans($gui, '', 128) GuiSetState() Do $m = GuiGetMsg() Until $m = $GUI_EVENT_CLOSE My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Crome_BAD Posted January 28, 2005 Author Share Posted January 28, 2005 Well, ya, lol. I have a picture i made, and i want everything around it to be transparent, lol im trying to figure it out through adobe if there is a way to make the outside AROUND the picture to be invisible, i can post the code and pic if u guys need? Crome_BAD Link to comment Share on other sites More sharing options...
therks Posted January 28, 2005 Share Posted January 28, 2005 Sorry, it can't be done, not with AutoIt. The GUI features aren't that elaborate right now. Photoshop has nothing to do with it, it's a limitation of AutoIt. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
zcoacoaz Posted January 29, 2005 Share Posted January 29, 2005 if you mean a background pic you have to make it before everything else and disable it like this $background = GUICtrlCreatePic( "background.bmp", 0, 0, window's width,window's height) GUICtrlSetState($background, 128) [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
therks Posted January 29, 2005 Share Posted January 29, 2005 (edited) Or if you give it a style of 0 (zero) it will act the same as being disabled. Like in the script that I linked to.GuiCtrlCreatePic('default.gif', 0, 0, 275, 116, 0)Xenogis: you should really use the GUI constants for things like GuiCtrlSetState. It makes for more readable code.GuiCtrlSetState($background, $GUI_DISABLE)Not many people know what "128" by itself does. Also, I think he's looking more for something like this:Note: That's a Winamp 5 skin. Definitely not AutoIt, just so I don't get any requests for my "special version of AutoIt that does transparent windows" Edited January 29, 2005 by Saunders My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
this-is-me Posted January 29, 2005 Share Posted January 29, 2005 Someone could whip up a dll to do that... Who else would I be? Link to comment Share on other sites More sharing options...
SlimShady Posted January 29, 2005 Share Posted January 29, 2005 Someone could whip up a dll to do that...<{POST_SNAPBACK}>Would be great! Link to comment Share on other sites More sharing options...
Crome_BAD Posted January 30, 2005 Author Share Posted January 30, 2005 I would love that dll, but i dont have the programs/expierience to EVEN think about doing it. Lol Thank You Guys For The Posts! Peace, Crome_BAD Link to comment Share on other sites More sharing options...
this-is-me Posted January 30, 2005 Share Posted January 30, 2005 Unfortunately my main experience in programming is in Visual Basic 6.0 (cruddy if I've ever seen it). I am working my way slowly into c++, so I may be able to come up with something in the future. If you have Windows 2000/XP only, this becomes much easier since there is an API call (something like SetLayeredWindowAttributes or something) that will do this for you (maybe even using DllCall). Who else would I be? 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