Jump to content

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


lod3n
 Share

Recommended Posts

  • Replies 148
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

yes, but only as a png. i would have to try and cut it out and all other things. I was going to try and make a gui, but of larger size, and wanted to implement some sort of transparent border like that. But i don't know how to make that in PS

Link to comment
Share on other sites

When I try to run lod3n launcher.au3 I get this error:

---------------------------

AutoIt Error

---------------------------

Line 2321 (File "C:\Program Files\AutoIt3\Include\A3LGDIPlus.au3"):

Return $aResult[0] <> 0

Return $aResult^ ERROR

Error: Subscript used with non-Array variable.

---------------------------

OK

---------------------------

I have Autoit v3.2.4.9 and the latest version of Auto3Lib (Downloaded July 3rd). Anybody knows whats wrong?

Thanks.

Olivier.

Link to comment
Share on other sites

Looks like a new bug in Auto3Lib. Report it here:

http://www.autoitscript.com/forum/index.php?showtopic=33677

Edit: Not a bug in Auto3Lib! This is what happens when you try and run this on a pre-WinXp machine.

Edited by lod3n

[font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]

Link to comment
Share on other sites

When I try to run lod3n launcher.au3 I get this error:

---------------------------

AutoIt Error

---------------------------

Line 2321 (File "C:\Program Files\AutoIt3\Include\A3LGDIPlus.au3"):

Return $aResult[0] <> 0

Return $aResult^ ERROR

Error: Subscript used with non-Array variable.

---------------------------

OK

---------------------------

I have Autoit v3.2.4.9 and the latest version of Auto3Lib (Downloaded July 3rd). Anybody knows whats wrong?

Thanks.

Olivier.

I know what's wrong. You can't read. The Auto3Lib documentation clearly says that GDI+ is only native to XP/2003. It has to be downloaded from MSDN for other OS.
Auto3Lib: A library of over 1200 functions for AutoIt
Link to comment
Share on other sites

Wow your snippy today.

Nope, just fed up with people who lurk around until they think someone is gone and then decide they have an opinion. If you thought Auto3Lib was a piece of junk, you had plenty of time to express that view when you thought I was still here.
Auto3Lib: A library of over 1200 functions for AutoIt
Link to comment
Share on other sites

Nope, just fed up with people who lurk around until they think someone is gone and then decide they have an opinion. If you thought Auto3Lib was a piece of junk, you had plenty of time to express that view when you thought I was still here.

I just want to agree with message of Zedna:

http://www.autoitscript.com/forum/index.ph...0&start=750

"

I wish you good luck in your non Autoit life

"

and to add the following:

Don't fight windmills.

More details, see here:

http://www.valentine.gr/articles_en.htm

Thanx,

Valery

The point of world view

Link to comment
Share on other sites

Thanks gents, good work!

Lod3n, between this and your Flash stuff you're really hooking a brutha up. Have you been dabbling in any AutoIt/Flash combos since CS3 hit? I was really getting into it but had to pry myself away long enough to revive my ailing business. I'm jonsing here.

Link to comment
Share on other sites

Thanks!

I haven't yet been able to convince any of my superiors that I really need the upgrade, and so I remain, languishing in the dark realms of CS1. I'm supposed to be working on architecture anyway, not front ends.

[font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]

Link to comment
Share on other sites

anyone know where I can get a good free editor that can edit PNG's without messing them up totally like paint does?

Edited by Kickassjoe

What goes around comes around... Payback's a bitch.

Link to comment
Share on other sites

  • 2 weeks later...

Is there any/easy way to resize an image as to setting either a pic or gui to any size doesn't resize the image...using the gdi+??

Thanks....

I don't understand the question because if I resize a pic then the image resizes as well, you don't need gdi+.

Anyway, these questions should be in a help forum not in example scripts, so I suggest you post a question there.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Hello

We dont mean a pict createt with GuiCtrlCreateImage. We mean a PNG picture.. if you resize the GUI the PNG will not go bigger / smaler :)

Mfg /Best Regards Spiuder

I see.

With png you can do it like this, which is a slight change to the showpng.au3 example in Auto3Lib\GDI+

#include <A3LGDIPlus.au3>

Opt("MustDeclareVars", 1)

; ====================================================================================================

===========================
; Description ...: Shows how to display a PNG image
; Author ........: Paul Campbell (PaulIA)
; Notes .........:
; ====================================================================================================

===========================

; ====================================================================================================

===========================
; Global variables
; ====================================================================================================

===========================
Global $hGUI, $hImage, $hGraphic,$h,$w

; Create GUI
$hGUI = GUICreate("Show PNG", 600, 600)

GUISetState()

; Load PNG image
_GDIP_StartUp()
$hImage   = _GDIP_ImageLoadFromFile(_Lib_AutoItDir() & "\Auto3Lib\Images\Torus.png")
$h = _GDIP_ImageGetWidth($hImage)
$w = _GDIP_ImageGetHeight($hImage)

; Draw PNG image
$hGraphic = _GDIP_GraphicsCreateFromHWND($hGUI)
 _GDIP_GraphicsDrawImageRectRect($hGraphic, $hImage, 0, 0, $w, $h, 0,0, 590, 590)

; Loop until user exits
do
until GUIGetMsg() = $GUI_EVENT_CLOSE

; Clean up resources
_GDIP_GraphicsDispose($hGraphic)
_GDIP_ImageDispose($hImage)
_GDIP_ShutDown()
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...