Valuater Posted November 7, 2008 Share Posted November 7, 2008 (edited) for pictures, files and etc, I always use FileInstall()... see help $My_pic = @TempDir & "\XPClean.jpg" FileInstall("C:\Program Files\AutoIt3\Examples\AutoIt-123\Images\XPClean.jpg", $My_pic) 8) Edited November 7, 2008 by Valuater Link to comment Share on other sites More sharing options...
Marcdk Posted November 9, 2008 Author Share Posted November 9, 2008 for pictures, files and etc, I always use FileInstall()... see help $My_pic = @TempDir & "\XPClean.jpg" FileInstall("C:\Program Files\AutoIt3\Examples\AutoIt-123\Images\XPClean.jpg", $My_pic) 8) Doesns't work for me I have to following source: #include <ButtonConstants.au3> #include <ComboConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include "resources.au3" $My_pic = @TempDir & "\Grafik.jpg" FileInstall("C:\Users\Marc\Desktop\Ny_mappe\Grafik.jpg", $My_pic) $realm = IniRead("config.ini", "Gametool", "realm", "0") $account = IniRead("config.ini", "Gametool", "account", "0") $link1 = IniRead("config.ini", "Gametool", "link1", "0") $link2 = IniRead("config.ini", "Gametool", "link2", "0") $browser = IniRead("config.ini", "Gametool", "browser", "0") $broswerexe = IniRead("config.ini", "Gametool", "browserexe", "0") $hotkey = IniRead("config.ini", "Gametool", "hotkey", "0") $Form1 = GUICreate("Marcdk's Profile Viewer", 377, 185, 193, 125) $Label1 = GUICtrlCreateLabel("Insert the username into the first textfield, and select your realm in the second one ", 5, 40, 360, 19) GUICtrlSetFont(-1, 7, 400, 0, "Comic Sans MS") $edit_field2 = GUICtrlCreateInput($account, 10, 70, 200, 21) $edit_field1 = GUICtrlCreateInput($realm, 10, 100, 200, 21) $Lookup = GUICtrlCreateButton("Check player profile", 237, 75, 115, 33, 0) $Pic1 = GUICtrlCreatePic("C:\Users\Marc\Desktop\Ny_Mappe\Grafik.jpg", 0, 0, 377, 193, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) GUISetState(@SW_SHOW) While 1 $msg= GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $Lookup $input1 = GUICtrlRead($edit_field1) $input2 = GUICtrlRead($edit_field2) website() ;If _IsPressed($hotkey) Then ;WinMinimizeALL() ;WinActivate("Profile Tool") ;EndIf EndSwitch WEnd Func website() Run($browser) Sleep(1200) Send("{F6}") Send("{BACKSPACE}") Send("{END}") Send($link1) Send($input1) Send($link2) Send($input2) Send("{ENTER}") EndFunc //////////////////////////////////////////////////////// In the same folder as i have this script i have the following files: Grafik.jpg Resources.au3 When i compile it, everything seems right, but when i remove the: Grafik.jpg from the folder and opens the exe, the picture isn't "installed" into the bot.. Link to comment Share on other sites More sharing options...
Zedna Posted November 9, 2008 Share Posted November 9, 2008 $Pic1 = GUICtrlCreatePic($My_pic, 0, 0, 377, 193, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) You don't need Resources.au3 when you use FileInstall() Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Marcdk Posted November 9, 2008 Author Share Posted November 9, 2008 $Pic1 = GUICtrlCreatePic($My_pic, 0, 0, 377, 193, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))You don't need Resources.au3 when you use FileInstall()Thank you!! Works now Link to comment Share on other sites More sharing options...
Valuater Posted November 9, 2008 Share Posted November 9, 2008 (edited) Thank you!! Works now Glad you got it... This can seem a little frustrating at times... ( it was to me (( an still is )))... but that's why we are here in the forums to helpWelcome to the Autoit forums8) Edited November 9, 2008 by Valuater Link to comment Share on other sites More sharing options...
Marcdk Posted November 9, 2008 Author Share Posted November 9, 2008 Glad you got it... This can seem a little frustrating at times... ( it was to me (( an still is )))... but that's why we are here in the forums to helpWelcome to the Autoit forums8)Hehe, yeah, was a little tricky, thanks again for the help 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