CryHero Posted June 14, 2012 Share Posted June 14, 2012 How make icon show when open my program i no wanna Write Name Folder the icon can help me Guys? Code is #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> ToolTip("C:\Users\Hero\Desktop\aa.ico" ,500,300) sleep(500) $Form2 = GUICreate("Form2", 405, 296, 518, 267) $Pic1 = GUICtrlCreatePic("G:\Picture\An-Picture\aa.jpg", 16, 48, 348, 100) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Link to comment Share on other sites More sharing options...
Zedna Posted June 14, 2012 Share Posted June 14, 2012 Look at FileInstall() or my Resources UDF (link in my signature). Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
CryHero Posted June 15, 2012 Author Share Posted June 15, 2012 (edited) Look at FileInstall() or my Resources UDF (link in my signature). No work too #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> FileInstall("C:UsersHeroDesktops.bmp", "D:s.bmp") $Form2 = GUICreate("Form2", 405, 296, 518, 267) $Pic1 = GUICtrlCreatePic("G:PictureAn-Pictureaa.jpg", 16, 48, 348, 100) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Edited June 15, 2012 by CryHero Link to comment Share on other sites More sharing options...
Zedna Posted June 15, 2012 Share Posted June 15, 2012 FileInstall("C:UsersHeroDesktops.bmp", @ScriptDir & "s.bmp") $Form2 = GUICreate("Form2", 405, 296, 518, 267) $Pic1 = GUICtrlCreatePic(@ScriptDir & "s.bmp", 16, 48, 348, 100) Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
abberration Posted June 15, 2012 Share Posted June 15, 2012 (edited) I misunderstood. Ignore this post. Edited June 15, 2012 by abberration Easy MP3 | Software Installer | Password Manager Link to comment Share on other sites More sharing options...
CryHero Posted June 15, 2012 Author Share Posted June 15, 2012 FileInstall("C:UsersHeroDesktops.bmp", @ScriptDir & "s.bmp") $Form2 = GUICreate("Form2", 405, 296, 518, 267) $Pic1 = GUICtrlCreatePic(@ScriptDir & "s.bmp", 16, 48, 348, 100) not too all say >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:UsersHeroDesktopNew AutoIt v3 Script.au3" /UserParams +>18:22:15 Starting AutoIt3Wrapper v.2.1.0.33 Environment(Language:0409 Keyboard:00000409 OS:WIN_7/ CPU:X64 OS:X64) >Running AU3Check (1.54.22.0) from:C:Program Files (x86)AutoIt3 +>18:22:15 AU3Check ended.rc:0 >Running:(3.3.8.1):C:Program Files (x86)AutoIt3autoit3.exe "C:UsersHeroDesktopNew AutoIt v3 Script.au3" --> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop +>18:22:16 AutoIT3.exe ended.rc:0 >Exit code: 0 Time: 2.333 Link to comment Share on other sites More sharing options...
Zedna Posted June 15, 2012 Share Posted June 15, 2012 It was just snippet for you not complete script. You must incorporate it to your script and acomodate to your needs. If you don't understand these basic things then you need to spare some time by reading AutoIt's helpfile! Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Zedna Posted June 15, 2012 Share Posted June 15, 2012 (edited) If you talked about application's default icon then add this at top of your script and compile your script from full Scite4AutoIt3 (by F7) #AutoIt3Wrapper_icon=your_icon.ico Note: your_icon.ico must be in script directory at compile time. Edited June 15, 2012 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search 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