Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

PNG as GUI, drop shadows, curved edges, you name it


  • Please log in to reply
148 replies to this topic

#1 lod3n

lod3n

    Another day, another mind-boggling adventure!

  • Active Members
  • PipPipPipPipPipPip
  • 874 posts

Posted 14 June 2007 - 08:20 AM

I was trying to get UpdateLayeredWindow to work with PaulIA's GDI functions in his Auto3Lib library, but I didn't have the skillset required to see it through to the end. I sent PaulIA the source code I was trying to convert and he not only whipped up a solution in a matter of hours, he went ahead and baked in support for it in Auto3Lib! (Which has since been rolled into AutoIt)

Also, this only works with XP and above, as it uses GDI+. You might be able to get it working if you are running an earlier version if you install the GDI+ Dll from Microsoft, but I'm not familiar with that.

Take a look at the screenshot below. I've written a simple desktop item launcher using a PNG skin based on the one that comes with a program called Launchy. Of course, you could use any PNG you want, so long as it has an alpha channel. That drop shadow is not the result of a gui effect in Vista - this is running in XP, and the drop shadow is defined in the PNG itself, and applied to the GUI. Imagine the possibilities. Goodbye ugly Regions, hello 32 bit Alpha Transparency.

All credit goes to PaulIA, I'm just the messenger. :rolleyes:

Update (5/28/08): I've re-uploaded the demo with GaryFrosts fixes for making this work with AutoIt v3.2.12.0. Thanks Gary!

Attached Thumbnails

  • PngGuiScreenshot.PNG

Attached Files


Edited by lod3n, 28 May 2008 - 11:42 PM.








#2 Sn0opy

Sn0opy

    Wayfarer

  • Active Members
  • Pip
  • 62 posts

Posted 14 June 2007 - 09:17 AM

Awesome idea!

#3 Kreatorul

Kreatorul

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 357 posts

Posted 14 June 2007 - 11:43 AM

OMG this is so cool... :rambo: screw vista :x xp can do the same thing :rolleyes:)
10x for sharing this

#4 James

James

    Universalist

  • MVPs
  • 10,294 posts

Posted 14 June 2007 - 11:45 AM

OMG! :rolleyes: :rambo: :x

That is awesome. Defintley going into my next GUI!

Maybe, you should make some sort of sidebar tool like Vista using this.

#5 Kreatorul

Kreatorul

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 357 posts

Posted 14 June 2007 - 01:22 PM

I'm like a kid with a new toy :rolleyes: this is so cool
I made a good looking clock out of it :rambo: it's more like an example of how cool guis can get with this udf :x



#6 star2

star2

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 461 posts

Posted 14 June 2007 - 02:42 PM

1000 %
nice and inspiring

Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams

.............................................................................AUTOIT

#7 RazerM

RazerM

    cowinkeedenky - coincidence?

  • Active Members
  • PipPipPipPipPipPip
  • 1,246 posts

Posted 14 June 2007 - 03:43 PM

This is very nice! Should help make great GUI's
My Programs:AInstall - Create a standalone installer for your programUnit Converter - Converts Length, Area, Volume, Weight, Temperature and Pressure to different unitsBinary Clock - Hours, minutes and seconds have 10 columns each to display timeAutoIt Editor - Code Editor with Syntax Highlighting.Laserix Editor & Player - Create, Edit and Play Laserix LevelsLyric Syncer - Create and use Synchronised Lyrics.Connect 4 - 2 Player Connect 4 Game (Local or Online!, Formatted Chat!!)MD5, SHA-1, SHA-256, Tiger and Whirlpool Hash Finder - Dictionary and Brute Force FindCool Text Client - Create Rendered ImageMy UDF's:GUI Enhance - Enhance your GUIs visually.IDEA File Encryption - Encrypt and decrypt files easily! File Rename - Rename files easilyRC4 Text Encryption - Encrypt text using the RC4 AlgorithmPrime Number - Check if a number is primeString Remove - remove lots of strings at onceProgress Bar - made easySound UDF - Play, Pause, Resume, Seek and Stop.

#8 Josbe

Josbe

    Infrequent ghost ☺

  • Active Members
  • PipPipPipPipPipPip
  • 1,585 posts

Posted 14 June 2007 - 06:54 PM

Very very nice. Yeah, the same effect used with Launchy.
Thanks PaulIA and lod3n.

#9 Mr. Zero

Mr. Zero

    Polymath

  • Active Members
  • PipPipPipPip
  • 240 posts

Posted 14 June 2007 - 10:28 PM

Finally! Support the .png format!

Thank you, PaulIA and lod3n.

There is truly a god... or two :rolleyes:

#10 Dhilip89

Dhilip89

    Insane AutoIt Coder

  • Active Members
  • PipPipPipPipPipPip
  • 360 posts

Posted 15 June 2007 - 12:34 AM

Wow!
finally PNG support.
I liked it very much. :rolleyes:
My Projects:General:WinShell (Version 1.6)YouTube Video Downloader Core (Version 2.0)Periodic Table Of Chemical Elements (Version 1.0)Web-Based:Directory Listing Script Written In AutoIt3 (Version 1.9 RC1)UDFs:UnicodeURL UDFHTML Entity UDFMy Website:http://dhilip89.hopto.org/Closed Sources:YouTube Video Downloader (Version 1.3)

If 1 + 1 = 10, then 1 + 1 ≠ 2


#11 PaulIA

PaulIA

    API Extremist

  • MVPs
  • 1,201 posts

Posted 15 June 2007 - 04:40 PM

Very nice. :rolleyes:
Auto3Lib: A library of over 1200 functions for AutoIt

#12 i542

i542

    Captain on the Bridge.

  • Active Members
  • PipPipPipPipPipPip
  • 1,821 posts

Posted 15 June 2007 - 05:00 PM

Extra-Super-Duper-Great script!
I can do signature me.

#13 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,573 posts

Posted 15 June 2007 - 11:26 PM

Great work!

I was playing around with tranparency levels to get this effect now I can ignore that.
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#14 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 16 June 2007 - 01:28 AM

I normally don't play around with graphics, but this was pretty easy.

I just quickly modified the script from the 1st post, and changed the png file to one from the net.
Several versions of the png file, was playing with effects.

logo_ps.PNG

Attached File  logos_ps.ZIP   725.59KB   2148 downloads

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.


#15 BrettF

BrettF

    My Drunk Monkey Guerilla is gonna getcha!

  • MVPs
  • 7,662 posts

Posted 16 June 2007 - 02:18 AM

This wayyyy too cool. :rolleyes: :rambo:

#16 MrCreatoR

MrCreatoR

    Must AutoIt!

  • MVPs
  • 3,251 posts

Posted 16 June 2007 - 03:12 AM

Sounds nice...

But where can i get the file A3LGDIPlus.au3?
I have installed A3Lib but the file is not there :rolleyes:

Somone can upload this file please?
Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

Posted Image AutoIt Russian CommunityPosted Image Projects: ATT - Application Translate Tool [new] | BlockIt - Block files & folders [new] | SIP - Selected Image Preview [new] | SISCABMAN - SciTE Abbreviations Manager [new] | AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramPosted Image UDFs: OnAutoItErrorRegister - Handle AutoIt critical errors [new] | AutoIt Syntax Highlight [new] | Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDFPosted Image Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation DemoLike the examples/UDFs? Please rate the topic (up-right corner of the post header: Rating Posted Image)* === My topics === *

==========================================================Posted Image==========================================================

AutoIt is simple, subtle, elegant. © AutoIt Team


#17 zfisherdrums

zfisherdrums

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 391 posts

Posted 16 June 2007 - 05:53 AM

Sounds nice...

But where can i get the file A3LGDIPlus.au3?
I have installed A3Lib but the file is not there :rolleyes:

Somone can upload this file please?


I'm sorry to hear you're missing the file. I had the same problem and downloaded A3Lib again tonight. The file was included in that installation.

Edited by zfisherdrums, 16 June 2007 - 05:54 AM.


#18 Mr. Zero

Mr. Zero

    Polymath

  • Active Members
  • PipPipPipPip
  • 240 posts

Posted 16 June 2007 - 06:56 AM

Sounds nice...

But where can i get the file A3LGDIPlus.au3?
I have installed A3Lib but the file is not there :rolleyes:

Somone can upload this file please?


Wow nice gafrost.

Edit: Sorry. Attachment Removed.

Edited by Mr. Zero, 16 June 2007 - 07:16 PM.


#19 i542

i542

    Captain on the Bridge.

  • Active Members
  • PipPipPipPipPipPip
  • 1,821 posts

Posted 16 June 2007 - 07:16 AM

it needs two more :rambo: whatever :rolleyes: as far as I can imagine, nice Alpha Clock
I can do signature me.

#20 PaulIA

PaulIA

    API Extremist

  • MVPs
  • 1,201 posts

Posted 16 June 2007 - 01:54 PM

Just in case:

Wow nice gafrost.

Do not, under any circumstances, post parts of Auto3Lib like this! There are changes to several modules in the library that need to be downloaded to make the PNG scripts work! If people would take the time to READ, you'd see that the instructions tell you to download the latest version of Auto3Lib from the download section.
Auto3Lib: A library of over 1200 functions for AutoIt




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users