Jump to content
Sign in to follow this  
magri972011

Help me FileInstall () !!!!

Recommended Posts

magri972011

Putting an image into a button with the command " FileInstall " ???

P.S : Sorry for English tragedy xD I'm Italian.... :)

Edited by magri972011

Share this post


Link to post
Share on other sites
Melba23

magri972011,

Welcome to the AutoIt forum. :)

Please use Google Translate because that post is unintelligible. ;)

M23

P.S. If that was from Google Translate then post in Italian! ;)


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Kyan

what have the kids to do with fileInstall?

Can you write your doubt in Italian or without any translator?

props


Heroes, there is no such thing

One day I'll discover what IE.au3 has of special for so many users using it.
C'mon there's InetRead and WinHTTP, way better
happy.png

Share this post


Link to post
Share on other sites
magri972011

magri972011,

Welcome to the AutoIt forum. :)

Please use Google Translate because that post is unintelligible. ;)

M23

P.S. If that was from Google Translate then post in Italian! ;)

Ciao ... comunque scusa, non pensavo di fare tanto casino per una cosa del genere.... Passando a noi, vorrei creare un bottone con l'immagine e con il comando " FIleInstall " (lo so fare ma non con fileinstall ) così che quando vado ad aprire il file.exe non ho bisogno dell'immagine per forza.

Come si fa ?

Share this post


Link to post
Share on other sites
JohnQSmith

Here's Google...

Hello ... However, sorry, I did not think to do so much fuss over such a thing .... Turning to us, I would create a button with the image and with the command "FIleInstall" (I know I do but not with fileinstall) so that when I go to open the exe file does not necessarily need the image.

How it works?


Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Share this post


Link to post
Share on other sites
Melba23

magri972011,

Understood this time! ;)

And here is how you do it: ;)

#include <GUIConstantsEx.au3>
#include <GuiImageList.au3>
#include <GuiButton.au3>

; Load image
FileInstall("Full_Image_Path_Goes_Here", @ScriptDir & "Image.bmp")

$hGUI = GUICreate("Test", 500, 500)

; Button with image and text
$cButton_1 = GUICtrlCreateButton("Press Me!", 30, 30, 90, 40)
$hImage = _GUIImageList_Create(32, 32, 5, 3)
_GUIImageList_AddBitmap($hImage, "Image.bmp")
_GUICtrlButton_SetImageList($cButton_1, $hImage)

; Button with image only
$cButton_2 = GUICtrlCreateButton("", 30, 110, 90, 40, $BS_BITMAP)
GUICtrlSetImage(-1, "Image.bmp")

GUISetState()

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            ; Delete image
            FileDelete( @ScriptDir & "Image.bmp")
            Exit
        Case $cButton_1
            MsgBox(0, "Hi", "Button 1 Pressed")
        Case $cButton_2
            MsgBox(0, "Hi", "Button 2 Pressed")
    EndSwitch
WEnd

All clear? :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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  

×