BJJ Posted January 10, 2009 Author Posted January 10, 2009 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
Moderators Melba23 Posted January 10, 2009 Moderators Posted January 10, 2009 @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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
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