UEZ Posted April 3, 2013 Share Posted April 3, 2013 Somebody knows where Zedna is? Wondering why he is for a long time not online here... Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Zedna Posted May 25, 2013 Author Share Posted May 25, 2013 Somebody knows where Zedna is? Wondering why he is for a long time not online here... Br, UEZ I'm back. Look here for details ... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Zedna Posted May 25, 2013 Author Share Posted May 25, 2013 Does this also works with embedding .DLL into the .EXE? If yes could you give me some example? Notes and links about embedding EXE/DLL files are in the first post in this topic. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Zedna Posted May 25, 2013 Author Share Posted May 25, 2013 I'd like to have embedded icons in my compiled executable, that I can then call in my script to change the tray icon between Do not want to use a temporary folder and do not use any GUI, only a tray icon. How do I add the icons into my file for tray use and how do I call them without saving them temporary on the computer? For this you don't need Resources UDF. Nice similar example is in helpfile for AutoIt3Wrapper: In Scite4AutoIt3 editor pres Ctrl+F1 and go to Extra Utilities/AutoIt3Wrapper/Adding icons to the program resources ; Example 1 #AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\au3.ico #AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\filetype1.ico #AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\filetype2.ico #AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\filetype3.ico #AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\filetype-blank.ico #include <ButtonConstants.au3> GUICreate("Demo resource ICO's") $h_Button1 = GUICtrlCreateButton("my picture button", 10, 20, 40, 40, $BS_ICON) GUISetState() For $x = 0 To 9 $rc = TraySetIcon(@ScriptFullPath, -$x) $rc2 = GUICtrlSetImage($h_Button1, @ScriptFullPath, -$x) If $x < 5 Then TrayTip("Default ico:" & $x, "TraySetIcon rc:" & $rc & @LF & "GUICtrlSetImage rc:" & $rc2, 3) Else TrayTip("New ico:" & $x, "TraySetIcon rc:" & $rc & @LF & "GUICtrlSetImage rc:" & $rc2, 3) EndIf Sleep(2000) Next GUIDelete() Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
bazinga Posted August 21, 2013 Share Posted August 21, 2013 (edited) Hello guys, im not very familiar with autoit. can u guys help me on that one. the background still is black thanks in advance. #AutoIt3Wrapper_Res_File_Add=D:\test.jpg, rt_rcdata, TEST_JPG_1 #include <GuiconstantsEx.au3> #include <WindowsConstants.au3> #include <SendMessage.au3> #include "resources.au3" Global Const $SC_DRAGMOVE = 0xF012 HotKeySet("{F11}", "Close") Func Close() Exit EndFunc $hGUI = GUICreate("X", 300, 300, -1, -1, BitOR($WS_POPUP,$WS_BORDER), $WS_EX_TOPMOST) $Pic = GUICtrlCreatePic("", 0, 0, 300, 300) _ResourceSetImageToCtrl($Pic, "TEST_JPG_1") GUISetState(@SW_SHOW) GUICtrlSetState(-1, $GUI_DISABLE) GUISetBkColor(0x000000, $hGUI) GUICtrlCreateButton("Sample Button", 10, 10, 100, 30) While 1 Switch GUIGetMsg() Case $GUI_EVENT_PRIMARYDOWN _SendMessage($hGUI, $WM_SYSCOMMAND, $SC_DRAGMOVE, 0) EndSwitch WEnd Edited August 21, 2013 by bazinga Link to comment Share on other sites More sharing options...
Developers Jos Posted August 21, 2013 Developers Share Posted August 21, 2013 (edited) Show me the SciTE output pane information when you do an F7-Compile for this script so I can see what is happening. Jos Edited August 21, 2013 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
bazinga Posted August 21, 2013 Share Posted August 21, 2013 (edited) >C:program filesautoit3aut2exeaut2exe.exe /in "C:UsersBazingaDesktoptest.au3" Der Befehl "C:program" ist entweder falsch geschrieben oder konnte nicht gefunden werden. >Exit code: 1 Time: 0.343 in english: The command "C:program" is either wrong or couldnt found. EDIT: its becuz of the space in "C:\Program Files\AutoIt3\Aut2Exe\aut2exe.exe" i guess :s Edited August 22, 2013 by bazinga Link to comment Share on other sites More sharing options...
Zedna Posted August 22, 2013 Author Share Posted August 22, 2013 Can you compile other AU3 projects? Try to reinstall AutoIt and Scite4AutoIt3. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
bazinga Posted August 22, 2013 Share Posted August 22, 2013 i reinstalled autoit to "C:AutoIt" and still same error. i never had problems before. i have absolutely no idea whats going on. maybe theres something wrong in the registry. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 22, 2013 Developers Share Posted August 22, 2013 (edited) What version of AutoIt3 did you install? It seems the double-quotes around the program are missing: "C:\program files\autoit3\aut2exe\aut2exe.exe" /in "C:\Users\Bazinga\Desktop\test.au3" Edited August 22, 2013 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
bazinga Posted August 22, 2013 Share Posted August 22, 2013 version 3.3.8.0 Link to comment Share on other sites More sharing options...
Developers Jos Posted August 22, 2013 Developers Share Posted August 22, 2013 Install the latest production version 3.3.8.1 because I think this was an issue that was fixed in that one. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
bazinga Posted August 23, 2013 Share Posted August 23, 2013 oh yea. its working properly now. version 3.3.8.1 + newest scite editor did it. thanks a million also a big thanks for resource udf <3 Link to comment Share on other sites More sharing options...
GeekIT Posted December 6, 2013 Share Posted December 6, 2013 Can anyone help me with this udf? I follow the examples and it just won't work.. #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Res_File_Add=Phonemes\a.wav, rt_rcdata, A #AutoIt3Wrapper_Res_File_Add=Phonemes\t.wav, rt_rcdata, T #AutoIt3Wrapper_Res_File_Add=Phonemes\k.wav, rt_rcdata, K #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** _ResourcePlaySound("A", 0, 1) Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 6, 2013 Moderators Share Posted December 6, 2013 GeekIT,Firstly, why not save the files as "sound" rather than "rt_rcdata"? That is how Zedna does it in his example in the first post. Secondly, have you actually included the UDF file in that script? I see no sign of it in the snippet you posted. 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 Link to comment Share on other sites More sharing options...
GeekIT Posted December 6, 2013 Share Posted December 6, 2013 (edited) GeekIT, Firstly, why not save the files as "sound" rather than "rt_rcdata"? That is how Zedna does it in his example in the first post. Secondly, have you actually included the UDF file in that script? I see no sign of it in the snippet you posted. M23 http://www.autoitscript.com/site/autoit-script-editor/downloads/ on this link its not an udf, but an exe. so I wasn't shore, I tried both (include and not) here is an example of my code: #include <Resources.au3> #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Res_File_Add=Phonemes\a.wav, rt_rcdata, A #AutoIt3Wrapper_Res_File_Add=Phonemes\t.wav, rt_rcdata, T #AutoIt3Wrapper_Res_File_Add=Phonemes\k.wav, rt_rcdata, K #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** _ResourcePlaySound("A",0,1) Edited December 6, 2013 by GeekIT Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 6, 2013 Moderators Share Posted December 6, 2013 GeekIT,Slow down a bit - you are getting confused with inserting and accessing the resources. You need to download and install the full SciTE4Autoit3 package to which you linked (or strictly speaking the AutoIt3Wrapper utility within it) to insert the resources into the executable, but you also need to #include Zedna's Resources UDF to subsequently access them from within your script. Clearer now? 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 Link to comment Share on other sites More sharing options...
GeekIT Posted December 6, 2013 Share Posted December 6, 2013 GeekIT, Slow down a bit - you are getting confused with inserting and accessing the resources. You need to download and install the full SciTE4Autoit3 package to which you linked (or strictly speaking the AutoIt3Wrapper utility within it) to insert the resources into the executable, but you also need to #include Zedna's Resources UDF to subsequently access them from within your script. Clearer now? M23 ok thanks, it works now, I found out that it only works if its compiled to exe... Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 6, 2013 Moderators Share Posted December 6, 2013 GeekIT, I found out that it only works if its compiled to exe...Perhaps because it is only when compiled that you have a resource table in which to store and subsequently access the files you wish to use? 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 Link to comment Share on other sites More sharing options...
bgn256 Posted December 30, 2013 Share Posted December 30, 2013 Hello,I'm new here!Please answer the question in the code: #AutoIt3Wrapper_Res_File_Add=test.wav, sound, Test #include <resources.au3> HotKeySet("{ESC}","ExitCode") _ResourcePlaySound("Test",1) While 1 ;$SoundSate = Some way to know if the sound is still playing <== How Can i Do this ?? ; if $SoundSate = <Not playing> then ; MsgBox(0,"","Sound Stopped",1) ; ExitLoop ; EndIf Sleep(50) WEnd Func ExitCode() Exit EndFunc Thank you! Link to comment Share on other sites More sharing options...
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