Jump to content

Recommended Posts

  • Replies 152
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

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

Posted

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.

Posted

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
Posted

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
Posted

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

Posted

Just tried this for the first time. Works perfect, it looks awesome and my photo editing skills are of very low quality. Defiantly going to have fun with this for a while...

Posted

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.

Posted (edited)

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.

  • 2 weeks later...
Posted

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....

Posted

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.
Posted

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

www.AutoIt.de - Moderator of the German AutoIt Forum

 

Posted

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.
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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