Jump to content



Photo

Help me FileInstall () !!!!


  • Please log in to reply
6 replies to this topic

#1 magri972011

magri972011

    Seeker

  • Active Members
  • 7 posts

Posted 24 February 2012 - 09:15 PM

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



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

Edited by magri972011, 24 February 2012 - 09:21 PM.






#2 Melba23

Melba23

    Yes, me!

  • Moderators
  • 15,374 posts

Posted 24 February 2012 - 09:21 PM

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! ;)
StringSize - Automatically size controls to fit text - ExtMsgBox - A user customisable replacement for MsgBox

Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs

Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames

GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes

ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display

RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options

GUIListViewEx - Insert, delete, move, drag and sort ListView items


#3 DiOgO

DiOgO

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 331 posts

Posted 24 February 2012 - 09:21 PM

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


#4 magri972011

magri972011

    Seeker

  • Active Members
  • 7 posts

Posted 24 February 2012 - 09:33 PM

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 ?

#5 JohnQSmith

JohnQSmith

    Polymath

  • Active Members
  • PipPipPipPip
  • 226 posts

Posted 24 February 2012 - 09:46 PM

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?



#6 Melba23

Melba23

    Yes, me!

  • Moderators
  • 15,374 posts

Posted 24 February 2012 - 09:50 PM

magri972011,

Understood this time! ;)

And here is how you do it: ;)
AutoIt         
#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
StringSize - Automatically size controls to fit text - ExtMsgBox - A user customisable replacement for MsgBox

Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs

Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames

GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes

ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display

RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options

GUIListViewEx - Insert, delete, move, drag and sort ListView items


#7 magri972011

magri972011

    Seeker

  • Active Members
  • 7 posts

Posted 24 February 2012 - 09:56 PM

Grazie mille Melba23 :) preciso e istantaneo xD




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users