Sign in to follow this  
Followers 0
LithiumLi

Dll Call

4 posts in this topic

#1 ·  Posted (edited)

I think I am not going to get much of a response to this post since I don't even know if this is possible :)

The reason I want to call the files from a Dll file is because it's a lot neater and organized and it saves from having to use the function "FileInstall" a lot of times if your dealing with tons of graphical files.

What I am hoping is that a "DllCall" can be made to pull the icon, cursor and pictures and embed it into my GUI.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Pic = DllCall("Call Pic")
$Icon = DllCall("Call Icon")
$Cursor = DllCall("Call Cursor")

GUICreate("Test", 250, 250)
GUICtrlCreatePic($Pic , 0 , 0 , 250 , 200)
GUICtrlCreateButton("" , 0 , 0 , 250 , 50)
GUICtrlSetImage(-1 , "Test.dll" , "Icon\50\0") ;Icon is a folder and 50 is a sub folder and 0 is the icon name but doesn't work?
GUISetIcon($Icon)
GUISetCursor($Cursor)
GUISetState(@SW_SHOW)

While 1
    $Msg = GUIGetMsg()
    Switch $Msg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd
Edited by LithiumLi

Share this post


Link to post
Share on other sites



@LithiumLi

You dont have to use dllcall ...

GuiCtrlSetIcon('yourdll.dll', 'index of icon (-1)', ...)

You can get index of icon with iconator or other extract / show icon stuff

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

Have you looked? :)

Great!, for some reason I didn't stumble upon this example, although it seems really confusing at first glance but I am guessing this is as much help with this as I am going to get, since nobody is going to write me a script to do what I need lol.

Any Tips that I should know when using this example.

Share this post


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
Sign in to follow this  
Followers 0