AutoIT Koda Form Designer

02/19/2011 21:08 xXMetin2HacksXx#1
hi,

Ich habe eine Frage ich habe hier mal einen skript erstellt:

Quote:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
GUICreate("BildTest", 507, 397, 192, 124)
;erstellt ein GUI indem man das Bild sehen soll
$Button1 = GUICtrlCreateButton("Elitepvpers", 136, 40, 217, 41, 0)
;Erstellt einen Button
GUICtrlSetBkColor(-1, 0x008080)
;Farbe des Buttons
GUICtrlSetCursor (-1, 0)
;Finger als Cursor
GUICtrlCreatePic(@ScriptDir & "\Bild.jpg", 0, 0, 505, 393, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
;GUICtrlCreatePic ist der GUIbefehl für ein Bild. Mit @ScriptDir drückst du aus, dass das Bild in dem Ordner ist indem auch der Script bzw. nachher die .exe ist.
GUISetState(@SW_SHOW)

#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

Case $Button1
ShellExecute("http://www.elitepvpers.com")

EndSwitch
WEnd
wie kann ich das jetzt so machen das das bild.jpeg nichtüber die ganse form ist sondern nur an einer bestimmten stelle ist also zb. in einem button?
02/20/2011 10:11 Flοw#2
Du musst dem Bild die selbe "length" und "hight" wie dem Button zuordnen (manuell im Script, nicht in Koda)

Das nächste mal fragen bitte in die Autoit Sektion.
02/20/2011 10:15 banjo1#3
*moved