LithiumLi Posted January 22, 2009 Posted January 22, 2009 (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 January 22, 2009 by LithiumLi
FireFox Posted January 22, 2009 Posted January 22, 2009 @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.
LithiumLi Posted January 22, 2009 Author Posted January 22, 2009 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now