Jump to content

Problem with custom icon for compiled exe


Recommended Posts

i really hate to bring up old topics but im having the same problem. i tried edit using the resource hacker and it still doesnt work.  this is my code im trying to compile. not sure why it wont work :(  i also attached the icon i want

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=C:\Users\Kid Reborn\Desktop\New folder\icons
#AutoIt3Wrapper_Res_Comment=C:\Users\**your username**\Documents\my games\runic games\torchlight 2\SaveFilesBackup
#AutoIt3Wrapper_Res_Description=Simple program to backup your Torchlight 2 save. (Makes a backup folder where the saves are)
#AutoIt3Wrapper_Res_Fileversion=1.0.0.0
#AutoIt3Wrapper_Res_LegalCopyright=Raymond Smith
#AutoIt3Wrapper_Res_requestedExecutionLevel=None
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.9.13 (Beta)
 Author:         Raymond Smith

 Script Function:
    Simple program to backup your Torchlight 2 save. (Makes a backup folder where the saves are)

#ce ----------------------------------------------------------------------------

Global $scrdir = @UserProfileDir & "\Documents\my games\runic games\torchlight 2\"
Global $filedes = $scrdir & "\SaveFilesBackup\" & @MON & "-" & @MDAY & "-" & @YEAR
If FileExists($scrdir) = 1 And FileExists($filedes) = 1  Then
    MsgBox(4096, "Can not Copy", "Folder already exists")
ElseIf FileExists($scrdir) = 1 And FileExists($filedes) = 0  Then
    Global $file1 = DirCopy($scrdir & "save", $filedes & "\save", 8)
    Global $file2 = DirCopy($scrdir & "modsave", $filedes & "\modsave", 8)

    If $file1 = 1 AND  $file2 = 1 Then
        MsgBox(4096, "Success", "Saves Backed up Successfully")
    Else
        MsgBox(4096, "Error", "Can Not Copy")
    EndIf
Else
    MsgBox(4096, "Can not Copy", "Folder does NOT exists")
EndIf
 

.

 

edit: seems like i cant get the .ico to upload.  its the default ico for torchlight 2

or if i can get this as the icon

torchlight_ii_by_regisztralt-d57kx51.png

Edited by Golbez
Link to comment
Share on other sites

  • Moderators

Golbez,

Are you defining an icon file? What you have in that snippet looks more like a folder to me. :huh:

#AutoIt3Wrapper_Icon=C:\Users\Kid Reborn\Desktop\New folder\icons
M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
Share on other sites

Golbez,

Are you defining an icon file? What you have in that snippet looks more like a folder to me. :huh:

#AutoIt3Wrapper_Icon=C:\Users\Kid Reborn\Desktop\New folder\icons
M23

 

#AutoIt3Wrapper_Icon=C:UsersKid RebornDesktopNew foldericonsIcon_1.ico

i forgot i didnt try it again when i copied it,  still doesnt work; just shows the defualt windows icon.

 

edit:  got my icons uploaded this time :P

icons.zip

Edited by Golbez
Link to comment
Share on other sites

  • Moderators

Golbez,

Can you post the icon in question so I can try it with your code. The directive certainly does work when I use one of my icons in your script. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
Share on other sites

Golbez,

Can you post the icon in question so I can try it with your code. The directive certainly does work when I use one of my icons in your script. :)

M23

 

there all the same i think :P

if it matters anything. i lifted the icon off the torchlight2.exe with the resource hacker. then i changed the name cause i thought it might be that xD (dumb reason i know, but im out of ideas why its not working)

tl2.ico

Edited by Golbez
Link to comment
Share on other sites

  • Moderators

Golbez,

The icon file appeared to have some corrupted images inside it. I have cleared them out and left a single 32x32 256-colour image - that compiles without problem. See if it does for you:

M23

Edited by Melba23
File removed

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
Share on other sites

Golbez,

The icon file appeared to have some corrupted images inside it. I have cleared them out and left a single 32x32 256-colour image - that compiles without problem. See if it does for you:

attachicon.giftl2.ico

M23

 

tytyty  it worked :)

edit: that icon looks good as a small icon, but bad as a large icon. xD guess ima have to go find a new one

Edited by Golbez
Link to comment
Share on other sites

  • Moderators

Golbez,

In future when you reply, please use the "Reply to this topic" button at the top of the thread or the "Reply to this topic" editor at the bottom rather than the "Quote" button - I know what I wrote and it just pads the thread unneccessarily. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...