Jump to content

Recommended Posts

  • Replies 72
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

LAST VERSION - 1.8 02-Nov-09 Deprecated. The library contains three basic functions. I always use these functions and decided to share them with the community. I hope that to some of you they will b

oh my GOD ! 😱   

Just checked the links and they seem to working again.

I get nothing from [link]http://autoit.rv.ua/files/Pictures/icons_ex_back.jpg[/link]
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 post
Share on other sites
  • 8 months later...

Hi, I have some icons embedded in my exe and I want display them in my GUI.

Originally I used function GUICtrlSetImage, but icons are displayed blurry, so I tried use your function instead.

But it seems like function _SetIcon can't handle @ScriptFullPath as $sIcon parameter.

$Icon1 = GUICtrlCreateIcon("", -1, 24, 32, 48, 48)

GUICtrlSetImage($Icon1, @ScriptFullPath, -5) ; my original command (icon is displayed, but it's blurry)
_SetIcon($Icon1, "F:\Ico\iconfile.ico", -5, 48, 48) ; example for non-embedded icon (works well, even index is not set correctly)
_SetIcon($Icon2, @ScriptFullPath, -5, 48, 48) ; display nothing...

Do you know how to solve it ?

Link to post
Share on other sites
  • 1 month later...
  • 8 months later...

run demo on SciTE error

D:DownloadsCompressedIcons_HoverUDFsGUICtrlSetOnHover.au3(15,107) : ERROR: Opt() called with illegal argument 1: "OnExitFunc".

Global $__GUICtrl_SetOnHover_sOriginal_OnExitFunc = Opt("OnExitFunc", "__GUICtrl_SetOnHover_OnAutoItExit")

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

D:DownloadsCompressedIcons_Hoverdemo2.au3 - 1 error(s), 0 warning(s)

!>07:49:54 AU3Check ended. Press F4 to jump to next error.rc:2

Link to post
Share on other sites
  • 8 years later...
line 625 : $Ret = DllCall($ghGDIPDll, 'int', 'GdipCreateBitmapFromHICON', 'ptr', $hIcon, 'ptr*', 0)

"C:\Users\...\Icons.au3"(625,28) : warning: $ghGDIPDll: possibly used before declaration.
        $Ret = DllCall($ghGDIPDll,
"C:\Users\...\Icons.au3"(625,28) : error: $ghGDIPDll: undeclared global variable.
        $Ret = DllCall($ghGDIPDll,


Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...