LeHuynhNam Posted December 3, 2008 Share Posted December 3, 2008 (edited) Hello I'm beginner of Autoit and i have some problems! Please Help me! I'm have some beautiful icons and picture, and i added them to my gui but when i compiled it to .exe and the URL of this icons + picture changed, All the icons + pics disappear! what should i do? Help me! i don't know how to use Autoitwraperr_gui.exe Somebody can teach me to use it? thx so much! Edited December 3, 2008 by LeHuynhNam Link to comment Share on other sites More sharing options...
SoftVoile Posted December 3, 2008 Share Posted December 3, 2008 hi, Welcome to the AutoIt forums. (A great place to learn and share) 1- search the forum (this question is many times asked) 2- use the FileInstall() to paste your resources to @TempDir and then use them in your GUI. 3- seach the 'example scripts' for Zedna's Resources UDF. bye Unresolved topics:1- Please help me in Editing or replacing a page in FireFox and IE.Please have a look at them. Link to comment Share on other sites More sharing options...
Zedna Posted December 3, 2008 Share Posted December 3, 2008 (edited) Here is link to my Resources UDF:http://www.autoitscript.com/forum/index.php?showtopic=51103Here is description how to work with AutoIt3Wrapper:http://www.autoitscript.com/autoit3/scite/...oIt3Wrapper.htm Edited December 3, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
flxfxp Posted December 3, 2008 Share Posted December 3, 2008 Is there also a possibility to click on the image so it will take you to a website? FLX Link to comment Share on other sites More sharing options...
Zedna Posted December 3, 2008 Share Posted December 3, 2008 Is there also a possibility to click on the image so it will take you to a website? FLX Yes. #include <GuiConstants.au3> #include <StaticConstants.au3> GUICreate("My GUI picture", 350, 300, -1, -1, $WS_SIZEBOX + $WS_SYSMENU) $pic = GUICtrlCreatePic(@SystemDir & "\oobe\images\mslogo.jpg", 50, 50, 200, 50) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $pic Then Run(@ComSpec & " /c " & 'start www.autoitscript.com/forum/', "", @SW_HIDE) WEnd Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Developers Jos Posted December 3, 2008 Developers Share Posted December 3, 2008 I thought the example in the SciTE4AutoIt3 helpfile was pretty explicit (after updating to the correct include file .. #AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\au3.ico #AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\filetype1.ico #AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\filetype2.ico #AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\filetype3.ico #AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\filetype-blank.ico #include <ButtonConstants.au3> GUICreate("Demo resource ICO's") $h_Button1 = GUICtrlCreateButton("my picture button", 10, 20, 40, 40, $BS_ICON) GUISetState() For $x = 0 To 7 $rc = TraySetIcon(@ScriptFullPath, -$x) $rc2 = GUICtrlSetImage($h_Button1, @ScriptFullPath, -$x) If $x < 3 Then TrayTip("Default ico:" & $x, "TraySetIcon rc:" & $rc & @LF & "GUICtrlSetImage rc:" & $rc2, 3) Else TrayTip("New ico:" & $x, "TraySetIcon rc:" & $rc & @LF & "GUICtrlSetImage rc:" & $rc2, 3) EndIf Sleep(2000) Next GUIDelete() SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
flxfxp Posted December 4, 2008 Share Posted December 4, 2008 Yes. #include <GuiConstants.au3> #include <StaticConstants.au3> GUICreate("My GUI picture", 350, 300, -1, -1, $WS_SIZEBOX + $WS_SYSMENU) $pic = GUICtrlCreatePic(@SystemDir & "\oobe\images\mslogo.jpg", 50, 50, 200, 50) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $pic Then Run(@ComSpec & " /c " & 'start www.autoitscript.com/forum/', "", @SW_HIDE) WEnd Thanks a lot Zedna! Now I understand what I did wrong I got it working now, thanks again. Regards, Dennis Link to comment Share on other sites More sharing options...
LeHuynhNam Posted December 7, 2008 Author Share Posted December 7, 2008 (edited) Thx for helping but i've still wondered Yes. #include <GuiConstants.au3> #include <StaticConstants.au3> GUICreate("My GUI picture", 350, 300, -1, -1, $WS_SIZEBOX + $WS_SYSMENU) $pic = GUICtrlCreatePic(@SystemDir & "\oobe\images\mslogo.jpg", 50, 50, 200, 50) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $pic Then Run(@ComSpec & " /c " & 'start www.autoitscript.com/forum/', "", @SW_HIDE) WEnd Well, when u compiled this code to *.exe, and the URL of "@SystemDir & "\oobe\images\mslogo.jpg" changed, the picture disappeared. So the problem i want to ask here is how can i add my picture to gui when i compile the *.au3 to *.exe and i can use it any PC. I also want to know how to use AutoitWrapper_gui.exe! Please help me! thx I also see the topic "how to work with AutoIt3Wrapper" but i want to know the real code with extra file such as *.jpg not an icon. Sorry for my silly questions! but i'm beginner of autoit and i'm also English learner! forgive me if i ask some silly question Edited December 7, 2008 by LeHuynhNam Link to comment Share on other sites More sharing options...
rasim Posted December 7, 2008 Share Posted December 7, 2008 Thx for helping but i've still wondered Well, when u compiled this code to *.exe, and the URL of "@SystemDir & "\oobe\images\mslogo.jpg" changed, the picture disappeared.Example: #include <GuiConstantsEx.au3> #include <WindowsConstants.au3> FileInstall("C:\Windows\System32\oobe\images\mslogo.jpg", @TempDir & "\mslogo.jpg") Dim $sURL = "www.autoitscript.com/forum" GUICreate("My GUI picture", 350, 300, -1, -1, BitOR($WS_SIZEBOX, $WS_SYSMENU)) $pic = GUICtrlCreatePic(@TempDir & "\mslogo.jpg", 50, 50, 200, 50) GUICtrlSetCursor(-1, 0) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $pic Then ShellExecute($sURL) WEnd FileDelete(@TempDir & "\mslogo.jpg") Link to comment Share on other sites More sharing options...
LeHuynhNam Posted December 7, 2008 Author Share Posted December 7, 2008 Example: #include <GuiConstantsEx.au3> #include <WindowsConstants.au3> FileInstall("C:\Windows\System32\oobe\images\mslogo.jpg", @TempDir & "\mslogo.jpg") Dim $sURL = "www.autoitscript.com/forum" GUICreate("My GUI picture", 350, 300, -1, -1, BitOR($WS_SIZEBOX, $WS_SYSMENU)) $pic = GUICtrlCreatePic(@TempDir & "\mslogo.jpg", 50, 50, 200, 50) GUICtrlSetCursor(-1, 0) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $pic Then ShellExecute($sURL) WEnd FileDelete(@TempDir & "\mslogo.jpg") thanks, I understood! Link to comment Share on other sites More sharing options...
LeHuynhNam Posted December 7, 2008 Author Share Posted December 7, 2008 oh, Can i use "FileInstall()" instead of Autoitwrapper...:-/ 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