PornoRalle Posted July 16, 2007 Share Posted July 16, 2007 (edited) Hello again , well i tried to find something via search but i couldn´t find anything what fits for me so.. here´s my question : how can i embed an Image which is saved in a certain folder in my gui. The picture should be displayed with SplashImageOn expandcollapse popup#include <GUIConstants.au3> Opt("GUICoordMode",1) HotKeySet("{F10}", "_Terminate") #region - GUI Create GUICreate('Drunkbot') GUISetBkColor (0x99FFFF) ;controls GUICtrlCreateLabel ("Drunkbot", 30 , 10 ); added for show GUICtrlCreateLabel ("Choose your Type of Alcohol:" , 50 , 70 , 200); choose GUICtrlCreateLabel ("created by Ferdi ©2007" , 275 , 380 , 120); signature GUICtrlCreateLabel ("Version: 0.1" , 10 , 380 , 100); versioninfo $Button_3 = GUICtrlCreateButton ("3Strike Alcohol", 50, 130, 80); 3 Strike Start $Button_4 = GUICtrlCreateButton ("5Strike Alcohol", 50, 160, 80); 5 Strike Start $Button_2 = GUICtrlCreateButton ("Cancel", 250, 300, 80); Cancel Button $Button_1 = GUICtrlCreateButton ("1Strike Alcohol", 50, 100, 80); 1 Strike Start $Button_5 = GUICtrlCreateButton ("Settings", 50 , 300 , 80 ) $Button_6 = GUICtrlCreateButton ("Memorycheck", 50 , 330 , 80) GUISetState(@SW_SHOW) #endregion #region - GUI SelectLoop While 1 $msg = GUIGetMsg(@SW_SHOW) Select Case $msg = $GUI_EVENT_CLOSE; $GUI_EVENT_CLOSE Exit Case $msg = $Button_1; Button Ok starts the bot _A() Case $msg = $Button_2 MsgBox ( 0 , "Ok..." , "Cya Soon :)" ,0) Exit Case $msg = $Button_4 _B() Case $msg = $Button_3 _C() Case $msg = $Button_5 MsgBox ( 0 , "Step 1" , " Make sure you Run the Resolution: 1280x1024" ,0) MsgBox ( 0 , "Step 2" , " Make sure your Interface looks like the attached Screenshot" ,0) MsgBox ( 0 , "Step 3" , " Make sure the alcohol is placed on the right slot as you can see on the screenshot",0) MsgBox ( 0 , "Step 4" , " Choose your type of alcohol and start the Bot , make sure Guild Wars is in Fullscreen and minimized , F10 closes the bot",0) SplashImageOn (" ??????????????????" <<<<<<----------------------------- MsgBox ( 0 , "Step 5" , " You´re ready to go. visit: www.wash-machine.de.vu",0) SoundPlay(@WindowsDir & "\media\tada.wav",1) Case $msg = $Button_6 $mem = MemGetStats() MsgBox(0, "Total physical RAM (KB):", $mem[1]); message box to display findings of the array number 1. EndSelect WEnd #endregion marked my Problem with arrows again . so my precise question is where shall i store my picture and how shall i include it in my Gui? Edited July 16, 2007 by PornoRalle Link to comment Share on other sites More sharing options...
DW1 Posted July 16, 2007 Share Posted July 16, 2007 FileInstall AutoIt3 Online Help Link to comment Share on other sites More sharing options...
PornoRalle Posted July 17, 2007 Author Share Posted July 17, 2007 (edited) i often heard fileinstall before , but could you be more precise and create an easy example for me ? , i got no idea where to put fileinstall. Edited July 17, 2007 by PornoRalle Link to comment Share on other sites More sharing options...
ChrisL Posted July 17, 2007 Share Posted July 17, 2007 Remember with file install the source can not use a variable it has to be a complete path to the source image file The second path where the image will be extracted to can use a variable but the path must exist fileinstall doesn't create folder structures FileInstall("C:\Windows\Winnt.bmp",@desktopDir & "\MyFile.bmp",1) SplashImageOn("Pic",@desktopDir & "\MyFile.bmp",275,174) Sleep (5000) SplashOff() FileDelete(@desktopDir & "\MyFile.bmp") [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
PornoRalle Posted July 17, 2007 Author Share Posted July 17, 2007 (edited) thx , you helped me a lot but i need to include this image in my bot which means i need to save it in a folder something , or directly in my .exe. Is there a special command to do this , or is there no other way as giving the source of the picture on the computer. Often people use different folders so this picture couldn´t be found. FileInstall("F:\Dokumente und Einstellungen\Administrator\Desktop\zombie.gif",@desktopDir & "\zombie.gif",1) Edited July 17, 2007 by PornoRalle Link to comment Share on other sites More sharing options...
ChrisL Posted July 17, 2007 Share Posted July 17, 2007 thx , you helped me a lot but i need to include this image in my bot which means i need to save it in a folder something , or directly in my .exe. Is there a special command to do this , or is there no other way as giving the source of the picture on the computer. Often people use different folders so this picture couldn´t be found. FileInstall("F:\Dokumente und Einstellungen\Administrator\Desktop\zombie.gif",@desktopDir & "\zombie.gif",1) This image F:\Dokumente und Einstellungen\Administrator\Desktop\zombie.gif on your machine will be installed into the executable When the script is ran the image that WAS on your computer will be placed @desktopDir & "\zombie.gif" on the users computer and the splashimage on will open this image @desktopDir & "\zombie.gif" I used @desktopdir as an example you might want to consider using @tempdir & "\zombie.gif" instead [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
PornoRalle Posted July 17, 2007 Author Share Posted July 17, 2007 thx you made my day Link to comment Share on other sites More sharing options...
enaiman Posted July 17, 2007 Share Posted July 17, 2007 Be aware that when using SplashImage if the GUI is moved, the image will remain at its place. You will have to think of some repositioning (or not if you're happy with the result). SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
Skizmata Posted July 20, 2007 Share Posted July 20, 2007 (edited) *Edit*Found my answer Here. Edited July 20, 2007 by Skizmata AutoIt changed my life. Link to comment Share on other sites More sharing options...
chazzmani Posted August 5, 2007 Share Posted August 5, 2007 This image F:\Dokumente und Einstellungen\Administrator\Desktop\zombie.gif on your machine will be installed into the executableWhen the script is ran the image that WAS on your computer will be placed @desktopDir & "\zombie.gif" on the users computer and the splashimage on will open this image @desktopDir & "\zombie.gif"I used @desktopdir as an example you might want to consider using @tempdir & "\zombie.gif" insteadIs there any other way to embed and splash a file without ultimately having to place it on the user's machine? I would hope that since the file is embeded within the executable, it could somehow be called and splashed "internally" without having to load it onto the users machine.Thanks. Link to comment Share on other sites More sharing options...
chazzmani Posted August 6, 2007 Share Posted August 6, 2007 Does anyone have an answer here? Is there any other way to embed and splash a file without ultimately having to place it on the user's machine? I was hoping the executable file would be totally self-contained and that I wouldn't ultimatelyt have to load the embedded file onto a user's machine for it to be splashed. Thanks. 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