Jump to content

Embed Pictures with SplashImageOn


Recommended Posts

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

#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 by PornoRalle
Link to comment
Share on other sites

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")
Link to comment
Share on other sites

thx , you helped me a lot :whistle:

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 by PornoRalle
Link to comment
Share on other sites

thx , you helped me a lot :whistle:

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

Link to comment
Share on other sites

  • 3 weeks later...

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

Is 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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...