Jump to content
Sign in to follow this  
CryHero

Icon

Recommended Posts

CryHero

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

Share this post


Link to post
Share on other sites
CryHero

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 by CryHero

Share this post


Link to post
Share on other sites
CryHero

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

Share this post


Link to post
Share on other sites
Zedna

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!

Share this post


Link to post
Share on other sites
Zedna

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 by Zedna

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  

×