magri972011 Posted February 24, 2012 Share Posted February 24, 2012 (edited) Putting an image into a button with the command " FileInstall " ??? P.S : Sorry for English tragedy xD I'm Italian.... Edited February 24, 2012 by magri972011 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 24, 2012 Moderators Share Posted February 24, 2012 magri972011,Welcome to the AutoIt forum. Please use Google Translate because that post is unintelligible. M23P.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 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...
Kyan Posted February 24, 2012 Share Posted February 24, 2012 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 Link to comment Share on other sites More sharing options...
magri972011 Posted February 24, 2012 Author Share Posted February 24, 2012 magri972011,Welcome to the AutoIt forum. Please use Google Translate because that post is unintelligible. M23P.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 ? Link to comment Share on other sites More sharing options...
JohnQSmith Posted February 24, 2012 Share Posted February 24, 2012 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". Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 24, 2012 Moderators Share Posted February 24, 2012 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 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...
magri972011 Posted February 24, 2012 Author Share Posted February 24, 2012 Grazie mille Melba23 preciso e istantaneo xD 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