Jump to content

Recommended Posts

Posted

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 : B)

Posted (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 by AndreasVliegen
Posted (edited)

Turn it to a .bmp and try this

GUICtrlCreatePic(@ScriptDir & "\axp.bmp", 0, 0, 333, 125)
Edited 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?
Posted (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 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.

 

Posted (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 by AndreasVliegen
Posted (edited)

Fix it like i did my post above.

Ermm,

:o , 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 B) (idiot)..

Maybe, I don't explain very well what I'm trying to make :graduated:....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 by AndreasVliegen
Posted

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

Posted

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! :oB)

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
  • Recently Browsing   0 members

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