Jump to content

Including image and compile


BJJ
 Share

Recommended Posts

ok i translate your post :)

i change this line

$hPic = GUICtrlCreatePic("", 98, 7, 297, 297)
_ResourceSetImageToCtrl($hPic, "tlox", $RT_BITMAP)

and dont use UPX

after I use reshacker inject bmp pile and all work superbly

Thanks for Greate Help if u wana see i put there YOUR post translated to Polish ;p

CODE
@Quizzy,

pierwszy problem - dlaczego nie dales fotki jak odpalasz skrypy

jesli uzywasz GUICtrlCreatePic("C:\D & S\Prezes\Pulpit\www\AutoIT\tlo.gif", 0, 0, 300, 300) kiedy odpalasz z

SciTe wtedy AutoIt patrzy na .bmp z pliku i pokazuje go

Jeśli dodasz _ResourceSetImageToCtrl($hPic, "MYPIC", $RT_BITMAP) AutoIt prubuje pokazac zrodlo ktore jest

tylko stworzony w kompilacji - wiec konczysz z brakiem fotki , ponieważ tam nie ma zrodla do pokazania

teraz jesli zostawisz .bmp nazwa w GUICtrlCreatePic podczas kompilacji , plik exe prubuje zaladowac

plik z dysku - i tamten prawdopowobnie jest zlt - wiec obrazek nie jest stworzony - i wtedy tam donikad

_ResourceSetImageToCtrl do ustawienia obrazka . Musisz uzyc GUICtrlCreatePic razem z pustym znakiem $ dla

dzialania UDF

podsumowujac:

Do odpalenia z SciTE:

GUICtrlCreatePic("BMP.name",0,0,300,300)

do odpalenia exe:

GUICtrlCreatePic("",0,0,300,300)

_ResourceSetImageToCtrl($hPic, "MYPIC", $RT_BITMAP)

nic innego nie zadziala.

nastepny porblem - dlaczego nie wzioles zrodla w pliku kiedy kompilowales

Masz miejsce w patchu do ResHacker , wiem ze to brzmi dziwnie , ale AutoIT wrapper

nie chce zaakceptowac tej przerwy w #AutoIt3Wrapper_Run_After=M:\Program\ResHacker\ResHacker.exe

linie - to zastanawialo mnie dlugi czas do znalezienia tego poza kiedy zaczolem uzywac zedna's uDF. jesli dodam puste miejsce do mojej lini otrzymam

>Running:M:\Program\Res Hacker\ResHacker.exe -add M:\Program\Au3 Scripts\Test\Quizzy.exe, M:\Program\Au3 Scripts\Test\Quizzy.exe, M:\Program\Au3 Scripts\RandPlayer\Bin\RandPlayer_Play.bmp, bitmap, MYPIC, 0

'M:\Program\Res' is not recognized as an internal or external command,

operable program or batch file.

>M:\Program\Res Hacker\ResHacker.exe -add M:\Program\Au3 Scripts\Test\Quizzy.exe, M:\Program\Au3 Scripts\Test\Quizzy.exe, M:\Program\Au3 Scripts\RandPlayer\Bin\RandPlayer_Play.bmp, bitmap, MYPIC, 0 Ended rc:1

kawalek w srodku wyglada bardzo podobnie do polskiego tekstu ktory masz na screenie

dlatego mysle ze masz bledy z dostaniem zrodla kompilacji . niestety nie moge zobaczyc

odpowiedzi kodu i konca ostatniej linie - mozesz sprawdzic ja mam ec:1 ktory oznacza blad

wiec , przenies reshacker do folderu poza przestzenia sciezki i sprobuj ponownie

Glowny problem - resHacker blednie wczytuje zrodlo

reshacker nie pracuje z plikami spakowanymi przez upx

Over to you to try again - I have compiled your code myself using one of my BMPs and it works perfectly if you do everything I have covered above. I get an exe which shows the BMP when run. But you MUST do everything as I have explained.

Powodzenia - I pytaj ponownie jak bedziesz mial problem

M23

Link to comment
Share on other sites

  • Moderators

@Quizzy,

I am pleased you have got your program to work. Good luck with your future programming, but do not forget your English classes! ;-)

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...