Zedna Posted October 30, 2009 Author Posted October 30, 2009 Embedding AVI into the resource.Thanks for sharing!!I will add this to my first post and I also add example for it to my resources examples. Resources UDF ResourcesEx UDF AutoIt Forum Search
Vadersapien Posted November 17, 2009 Posted November 17, 2009 Not working for me... Try Pacfox, my Firefox theme.Try Power Eject, my windows gadget that allows you to eject most drives.Using AutoIt 3.3.4.0, Windows 7 Premium, Intel Core 2 Quad CPU @ 2.66ghz, 4gb RAM, Nvidia GeForce 9500GT Graphics Card & Samsung 22" Monitor.
Zedna Posted November 17, 2009 Author Posted November 17, 2009 Not working for me...For me it works fine. Resources UDF ResourcesEx UDF AutoIt Forum Search
Vadersapien Posted November 18, 2009 Posted November 18, 2009 Info on my problem is here. Try Pacfox, my Firefox theme.Try Power Eject, my windows gadget that allows you to eject most drives.Using AutoIt 3.3.4.0, Windows 7 Premium, Intel Core 2 Quad CPU @ 2.66ghz, 4gb RAM, Nvidia GeForce 9500GT Graphics Card & Samsung 22" Monitor.
CosmicDan Posted December 12, 2009 Posted December 12, 2009 (edited) Well, nearly a year since I last replied...@Yashied, That was the only thing I was going to post about today but find it's already fixed - thanks for that!@Melba23, Thanks again for the improvements...@WebRaider, use Eval() to build variable names on-the-fly and have them evaluated/substituted at once e.g:Local $myvar = "Hello World!" ConsoleWrite(Eval("my" & "var") & @CRLF) ; Outputs "Hello World!" to STDOUTSo _ResourceSetImageToCtrl($Block[$bCountX][$bCountY],Eval(Picture[$rd])) should work.... never tried it but I def. will have to one day.@leuce, it can easily do what you want although nothing stops other users from exploring your EXE with ResHacker to take the file! If that's a concern you could write custom (de)obfuscation or (d)ecryption code, and/or pack the Gold release with something better than UPX.@Zedna, my miniature idol embued with your glorious brilliance in mad skripting skillz sends his regards. Edited December 12, 2009 by DanielC CosmicDan.com
Zedna Posted January 7, 2010 Author Posted January 7, 2010 (edited) does anyone have any examples of how to add a .exe file as a resource??There is a solution for executing EXE directly from memory (or resources) but it's not simple.Look at "Run binary (executing from memory)" example from trancexxhttp://www.autoitscript.com/forum/index....owtopic=99412&st=0&p=713513&#entry713513Just to be complete, there is also solution for calling DLL functions from memrory (or resources)Embed DLLs in script and call functions from memory - Pure AutoIt script (Now worked under Vista) from Ward#560708***Later I will add these links also to my first post.EDIT: fixed broken links Edited January 7, 2010 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Zedna Posted January 7, 2010 Author Posted January 7, 2010 @Zedna, my miniature idol embued with your glorious brilliance in mad skripting skillz sends his regards.Hehe Thanks Resources UDF ResourcesEx UDF AutoIt Forum Search
James Posted January 31, 2010 Posted January 31, 2010 All,I'm having a problem with a script I'm currently writing and so I was hoping someone here could help.I have GIF resource, which must be a GIF due to transparency (no, I'm not messing with PNG):#AutoIt3Wrapper_Run_After=ResHacker.exe -add %out%, %out%, res\tweetBird.gif, rcdata, TWEET_GIF_1, 0I'm also using a slightly modified version of Melba23's Toast UDF. I changed line 406:If $iIcon_Reduction Then GUICtrlCreateIcon($sDLL, $iIcon_Style, 10, 10 + $iTitle_Height)to:If $iIcon_Reduction Then GUICtrlCreatePic($iIcon_Style, 10, 10 + $iTitle_Height)So that I could use the GIF resource.For my script I also made a little function to prep and create the toast window:Func _Toast($ioMsg) Local $aColor[3] = [0x97D9F5, 0xe9eff5, False] _Toast_Set(0, $aColor, 0x000000, 0xe9eff5, 0x000000, 11, "Arial") $aRet = _Toast_Show(_ResourceGet("TWEET_GIF_1"), $strAppName, $ioMsg, 5) _Toast_Hide() EndFuncMy problem is setting the icon in the _Toast_Show() function. I've tried all different combinations trying to get the data from the resource into the control but alas no luck.So, could anyone please show me how to get the image file into the picture control without using _ResourceSetImageToCtrl() as that would require more editing of the Toast UDF.Thanks,James Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
Moderators Melba23 Posted January 31, 2010 Moderators Posted January 31, 2010 James,Pop over to the Toast topic and I have a solution for you with only a very slight modification to the Toast UDF itself - which does not break any other Toast functionality.It does use _ResourceSetImageToCtrl from Zedna's Resources UDF, but I am not reinventing that particular wheel today!Hope to see you there! M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
James Posted January 31, 2010 Posted January 31, 2010 (edited) Melba,Thank you very much for taking the time to add this! I was hoping there would have been a simpler way, but as it's fixed, thanks!Edit: Where is the solution? Or is it not posted quite yet? If I know I must use the SetImageToCtrl() function, I could probably go about this myself.James Edited January 31, 2010 by JamesBrooks Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
PhilipG Posted February 2, 2010 Posted February 2, 2010 (edited) Been trying to use this UDF for awhile, but i can't seem to get it to work. But i don't think there's any problem with my code. cause not even the examples runs. Probably missed something. To run the examples. Iv'e downloaded and extracted the resource files, the data files. And compiled using SciTE4AutoIt3. Any one that know what i've could missed? EDIT: Spelling Edited February 2, 2010 by PhilipG
Zedna Posted February 2, 2010 Author Posted February 2, 2010 (edited) Been trying to use this UDF for awhile, but i can't seem to get it to work. But i don't think there's any problem with my code. cause not even the examples runs. Probably missed something.To run the examples. Iv'e downloaded and extracted the resource files, the data files. And compiled using SciTE4AutoIt3. Any one that know what i've could missed?Reread whole first post, especiallyNotes:* to compile all script examples you must have installed Scite4AutoIt3 also with reshacker.exe/upx.exe in "Windows search path" or script directory -> you must compile script by F7 from full Scite...Also what Autoit/Scite4Autoit3 version do you have? What OS? I didn't test my UDF on Vista or Win7Firstly try minimal example resource_test_min1.au3 Edited February 2, 2010 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
PhilipG Posted February 2, 2010 Posted February 2, 2010 Reread whole first post, especiallyNotes:* to compile all script examples you must have installed Scite4AutoIt3 also with reshacker.exe/upx.exe in "Windows search path" or script directory -> you must compile script by F7 from full Scite...Also what Autoit/Scite4Autoit3 version do you have? What OS? I didn't test my UDF on Vista or Win7Firstly try minimal example resource_test_min1.au3I tried that small one. But i think i'm missing Reshacker, where do i find it?
PhilipG Posted February 2, 2010 Posted February 2, 2010 i found reshacker and placed it in the script dir. Still not working though... I'm using win xp. autoit v3.3.0.0
Zedna Posted February 2, 2010 Author Posted February 2, 2010 But i think i'm missing Reshacker, where do i find it?Ask your best friend Google ;-) Resources UDF ResourcesEx UDF AutoIt Forum Search
Zedna Posted February 2, 2010 Author Posted February 2, 2010 (edited) i found reshacker and placed it in the script dir. Still not working though...I'm using win xp. autoit v3.3.0.0Try to put reshacker to directory which is included in "Windows search path"or into Autoit3Wrapper directory:"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\" Edited February 2, 2010 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Zedna Posted February 2, 2010 Author Posted February 2, 2010 (edited) Tried that, still no success...Then what exactly is your problem?Try to look at your compiled EXE by reshacker if resources are there or not.Also try to use absolute path to reshacker in #AutoIt3Wrapper_run_after=ResHacker.exe -add ... Edited February 2, 2010 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
wraithdu Posted February 2, 2010 Posted February 2, 2010 Go grab the new AutoIt3Wrapper beta if you can't figure out ResHacker. I've worked with Jos to majorly upgrade the resource addition capabilities of AutoIt3Wrapper so ResHacker is not needed.
PhilipG Posted February 2, 2010 Posted February 2, 2010 I've never used resource files so i don't no what to look for, but when i open the file in ResHack it showed a folder tree
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