Sign in to follow this  
Followers 0
CodyBarrett

converting .bmp to graphic possible?

10 posts in this topic

yeah i want to make a .bmp i have PERMENANTLY on the gui BUT i want the gui to make it everytime it loads. can i do this?

Share this post


Link to post
Share on other sites



so your saying... fileinstall will have the specified file on my comp loaded into the exe, and when some one else runs it on their computer it would copy on their computer to be used?

Share this post


Link to post
Share on other sites

yes!

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

ill post my script later on today.... and when i tried file install it didnt load on a seperate computer..

Share this post


Link to post
Share on other sites

here is the script.. how would i put file install in?

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
#include <StaticConstants.au3>

DirCreate ( "C:\Utilitarian\" )
FileInstall ( "C:\Utilitarian\Kluarph.bmp", "C:\Utilitarian\Kluarph.bmp" ,1 )
FileInstall ( "C:\Utilitarian\1597532846.INI","C:\Utilitarian\1597532846.INI" ,1 )

If FileExists("C:\Utilitarian\1597532846.INI") Then
Else
    IniWrite("c:\Utilitarian\1597532846.INI","PASS","USER","PASSWORD")
    IniWrite("c:\Utilitarian\1597532846.INI","PASS","ADMIN","TBHOEB")
    
EndIf

FileSetAttrib("C:\Utilitarian\1597532846.INI","+H")



$GUI = GUICreate("Utilitarian",500,190)
GUISetBkColor(0X000000)
$Pic1 = GUICtrlCreatePic("C:\Utilitarian\Kluarph.bmp", 380, 0, 145, 233, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))


$HIDE = GUICtrlCreateButton("HIDE",320,10,70,20)
$INPUT = GUICtrlCreateInput("C:\directory\file.extension",10,10,300,20)

$UNHIDE = GUICtrlCreateButton("UNHIDE",320,40,70,20)
$INPUT2 = GUICtrlCreateInput("C:\directory\file.extension",10,40,300,20)

$READ =GUICtrlCreateButton("READ",320,70,70,20)
$INPUT3 = GUICtrlCreateInput("C:\directory\file.extension",10,70,300,20)

$WRITE =GUICtrlCreateButton("WRITE",320,100,70,20)
$INPUT4 = GUICtrlCreateInput("C:\directory\file.extension",10,100,300,20)

$INPUT5 = GUICtrlCreateInput("PASSWORD",10,130,140,20, $ES_PASSWORD)
$UNLOCK = GUICtrlCreateButton("UNLOCK",160,130,70,20)

$INPUT6 = GUICtrlCreateInput("PASSWORD",10,160,140,20, $ES_PASSWORD)
$BACKUP = GUICtrlCreateButton("BACKUP",160,160,70,20)

$LOCK = GUICtrlCreateButton("LOCK",240,130,70,20)
$CHANGE = GUICtrlCreateButton("CHANGE",320,130,70,20)

$NOTEPAD = GUICtrlCreateButton("RUN NOTEPAD",240,160,150,20)


GUISetState() 



GUICtrlSetState($HIDE ,$GUI_DISABLE)
GUICtrlSetState($UNHIDE ,$GUI_DISABLE)
GUICtrlSetState($READ ,$GUI_DISABLE)
GUICtrlSetState($WRITE ,$GUI_DISABLE)
GUICtrlSetState($INPUT ,$GUI_DISABLE)
GUICtrlSetState($INPUT2 ,$GUI_DISABLE)
GUICtrlSetState($INPUT3 ,$GUI_DISABLE)
GUICtrlSetState($INPUT4 ,$GUI_DISABLE)
GUICtrlSetState($CHANGE ,$GUI_DISABLE)
GUICtrlSetState($INPUT6 ,$GUI_DISABLE)
GUICtrlSetState($BACKUP ,$GUI_DISABLE)


    While 1
        $msg = GUIGetMsg()
        Select
            Case $msg = $GUI_EVENT_CLOSE
                Exit
            Case $msg = $UNLOCK
                If  GUICtrlRead($INPUT5) = IniRead("C:\1597532846.INI","PASS","USER","")  Then
                GUICtrlSetState($HIDE ,$GUI_ENABLE)
                GUICtrlSetState($UNHIDE ,$GUI_ENABLE)
                GUICtrlSetState($READ ,$GUI_ENABLE)
                GUICtrlSetState($WRITE ,$GUI_ENABLE)
                GUICtrlSetState($INPUT ,$GUI_ENABLE)
                GUICtrlSetState($INPUT2 ,$GUI_ENABLE)
                GUICtrlSetState($INPUT3 ,$GUI_ENABLE)
                GUICtrlSetState($INPUT4 ,$GUI_ENABLE)
                GUICtrlSetState($CHANGE ,$GUI_ENABLE)
                GUICtrlSetState($INPUT6 ,$GUI_DISABLE)
                GUICtrlSetState($BACKUP ,$GUI_DISABLE)
            Else
                GUICtrlSetState($INPUT6 ,$GUI_ENABLE)
                GUICtrlSetState($BACKUP ,$GUI_ENABLE)
                EndIf
            Case $msg = $BACKUP
                If  GUICtrlRead($INPUT6) = IniRead("C:\1597532846.INI","PASS","ADMIN","")  Then
                GUICtrlSetState($HIDE ,$GUI_ENABLE)
                GUICtrlSetState($UNHIDE ,$GUI_ENABLE)
                GUICtrlSetState($READ ,$GUI_ENABLE)
                GUICtrlSetState($WRITE ,$GUI_ENABLE)
                GUICtrlSetState($INPUT ,$GUI_ENABLE)
                GUICtrlSetState($INPUT2 ,$GUI_ENABLE)
                GUICtrlSetState($INPUT3 ,$GUI_ENABLE)
                GUICtrlSetState($INPUT4 ,$GUI_ENABLE)
                GUICtrlSetState($CHANGE ,$GUI_ENABLE)
                GUICtrlSetState($INPUT6 ,$GUI_DISABLE)
                GUICtrlSetState($BACKUP ,$GUI_DISABLE)
            Else
                GUICtrlSetState($INPUT6 ,$GUI_ENABLE)
                GUICtrlSetState($BACKUP ,$GUI_ENABLE)
                EndIf
            Case $msg = $LOCK
                GUICtrlSetState($HIDE ,$GUI_DISABLE)
                GUICtrlSetState($UNHIDE ,$GUI_DISABLE)
                GUICtrlSetState($READ ,$GUI_DISABLE)
                GUICtrlSetState($WRITE ,$GUI_DISABLE)
                GUICtrlSetState($INPUT ,$GUI_DISABLE)
                GUICtrlSetState($INPUT2 ,$GUI_DISABLE)
                GUICtrlSetState($INPUT3 ,$GUI_DISABLE)
                GUICtrlSetState($INPUT4 ,$GUI_DISABLE)
                GUICtrlSetState($CHANGE ,$GUI_DISABLE)
            Case $msg = $CHANGE
                IniWrite("C:\1597532846.INI","PASS","USER",GUICtrlRead($INPUT5))
            Case $msg = $HIDE
                FileSetAttrib(GUICtrlRead($INPUT), "+H" )
            Case $msg = $UNHIDE
                FileSetAttrib(GUICtrlRead($INPUT2), "-H" )
            Case $msg = $READ
                FileSetAttrib(GUICtrlRead($INPUT3), "+R" )
            Case $msg = $WRITE
                FileSetAttrib(GUICtrlRead($INPUT4), "-R" )
            Case $msg = $NOTEPAD
                Run("NOTEPAD.EXE")
            
        EndSelect
    WEnd

Share this post


Link to post
Share on other sites

you need to compile for fileinstall to include the bmp in the compiled exe so it can install it when ran.

Share this post


Link to post
Share on other sites

how do i compile it? like make into exe? i tried that and nothing, the help file doesnt metion anything that i can see, maybe im not looking in the right placves, what do i do to compile?

Share this post


Link to post
Share on other sites

how do i compile it? like make into exe? i tried that and nothing, the help file doesnt metion anything that i can see, maybe im not looking in the right placves, what do i do to compile?

Example

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

wow thanks i think i got it now... il get back on this topic if i gots another question(if it doesnt work) :)

EDIT

<Doesnt show picture on GUI>

well i dont understand FILEINSTALL could someone explain how it compiles and extracts upon runing script? or maybe how to compile my picture to it. i dunno

Edited by bob00037

Share this post


Link to post
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
Sign in to follow this  
Followers 0