AndreasVliegen Posted November 28, 2005 Share Posted November 28, 2005 Hello, I wanted to show a picture in my program, that works, the picture is in the same map...But when I move the program it doesn't show the picture, is it possible to include the picture in the program? This is my script: ;#include <GuiConstants.au3> ; GUI GuiCreate("Made by SteeloXP", 333, 225) GuiSetIcon(@SystemDir & "\mspaint.exe", 0) ; PIC GuiCtrlCreatePic("axp.jpg",0,0, 333,125) ; BUTTON $about = GuiCtrlCreateButton("About", 90, 150, 60, 30) $afsluiten = GuiCtrlCreateButton("Close", 180, 150, 60, 30) GuiSetState() While 1 $msg = GuiGetMsg() If $msg = $about Then MsgBox(64,"About & Credits","Made by Andreas Vliegen") If $msg = -3 Then ExitLoop If $msg = $afsluiten Then ExitLoop WEnd I hope you guys understand me and can help me, greetings, SteeloXP : Link to comment Share on other sites More sharing options...
GaryFrost Posted November 28, 2005 Share Posted November 28, 2005 you need to do a FileInstall, look it up in the help SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
AndreasVliegen Posted November 28, 2005 Author Share Posted November 28, 2005 (edited) you need to do a FileInstall, look it up in the help This is wat I used, but that doesn't work... FileInstall("C:\Documents and Settings\Beheerder\Bureaublad\Andreas\Custom Cracks\Customcrack.au3", "D:\School\Customcrack.au3") This my image: C:\Documents and Settings\Beheerder\Bureaublad\Andreas\Custom Cracks\axp.jpg This my script: C:\Documents and Settings\Beheerder\Bureaublad\Andreas\Custom Cracks\Customcrack.au3 Greetings, SteeloXP Edited November 28, 2005 by AndreasVliegen Link to comment Share on other sites More sharing options...
Snipz Posted November 28, 2005 Share Posted November 28, 2005 (edited) Turn it to a .bmp and try this GUICtrlCreatePic(@ScriptDir & "\axp.bmp", 0, 0, 333, 125) Edited November 28, 2005 by Snipz Once my friend told me that he had found Jesus. I thought to myself, "Woohoo, we're rich!" It turns out he meant something different.Sometimes I just like to lay in my bed and look up at the stars and wonder..where the hell did my roof go? Link to comment Share on other sites More sharing options...
GaryFrost Posted November 28, 2005 Share Posted November 28, 2005 (edited) Turn it to a .bmp and try this GUICtrlCreatePic(@ScriptDir & "\axp.bmp", 0, 0, 333, 125) Will still need to do for example: FileInstall("C:\Documents and Settings\Beheerder\Bureaublad\Andreas\Custom Cracks\axp.jpg", "D:\School\axp.jpg") Edited November 28, 2005 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
AndreasVliegen Posted November 28, 2005 Author Share Posted November 28, 2005 Turn it to a .bmp and try this GUICtrlCreatePic(@ScriptDir & "\axp.bmp", 0, 0, 333, 125) Nope, doesn't work for me either... Link to comment Share on other sites More sharing options...
AndreasVliegen Posted November 28, 2005 Author Share Posted November 28, 2005 (edited) Will still need to do for example: FileInstall("C:\Documents and Settings\Beheerder\Bureaublad\Andreas\Custom Cracks\axp.jpg", @ScriptDir & "\axp.jpg) It gives an error, missing quote... Edited November 28, 2005 by AndreasVliegen Link to comment Share on other sites More sharing options...
GaryFrost Posted November 28, 2005 Share Posted November 28, 2005 It gives an error, missing quote... Fix it like i did my post above. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
AndreasVliegen Posted November 28, 2005 Author Share Posted November 28, 2005 (edited) Fix it like i did my post above. Ermm, , now I don't understand it anymore... Should I do this or what? FileInstall("C:\Documents and Settings\Beheerder\Bureaublad\Andreas\Custom Cracks\axp.jpg", "D:\School\axp.jpg") Sorry if I'm being such an (idiot).. Maybe, I don't explain very well what I'm trying to make ....I just want 1 (one) executable, that includes the picture, so when the picture (axp.jpg) isn't in the same folder/map, it does show the picture...is that possible? Edited November 28, 2005 by AndreasVliegen Link to comment Share on other sites More sharing options...
BigDod Posted November 28, 2005 Share Posted November 28, 2005 Here it is ;#include <GuiConstants.au3> ; GUI GuiCreate("Made by SteeloXP", 333, 225) GuiSetIcon(@SystemDir & "\mspaint.exe", 0) FileInstall("axp.jpg", @TempDir & "\axp.jpg") ; PIC GuiCtrlCreatePic(@TempDir & "\axp.jpg",0,0, 333,125) ; BUTTON $about = GuiCtrlCreateButton("About", 90, 150, 60, 30) $afsluiten = GuiCtrlCreateButton("Close", 180, 150, 60, 30) GuiSetState() While 1 $msg = GuiGetMsg() If $msg = $about Then MsgBox(64,"About & Credits","Made by Andreas Vliegen") If $msg = -3 Then ExitLoop If $msg = $afsluiten Then ExitLoop WEnd Compile it and you can run it from anywhere. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
AndreasVliegen Posted November 29, 2005 Author Share Posted November 29, 2005 Here it is ;#include <GuiConstants.au3> ; GUI GuiCreate("Made by SteeloXP", 333, 225) GuiSetIcon(@SystemDir & "\mspaint.exe", 0) FileInstall("axp.jpg", @TempDir & "\axp.jpg") ; PIC GuiCtrlCreatePic(@TempDir & "\axp.jpg",0,0, 333,125) ; BUTTON $about = GuiCtrlCreateButton("About", 90, 150, 60, 30) $afsluiten = GuiCtrlCreateButton("Close", 180, 150, 60, 30) GuiSetState() While 1 $msg = GuiGetMsg() If $msg = $about Then MsgBox(64,"About & Credits","Made by Andreas Vliegen") If $msg = -3 Then ExitLoop If $msg = $afsluiten Then ExitLoop WEnd Compile it and you can run it from anywhere. Thanks! I works great! And I mean...GREAT! 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