purpleblue Posted June 2, 2005 Posted June 2, 2005 Is there anyway to include images you use in the GuiCtrlCreatePic() when you make the executable file? When I convert the script to the executable it doesn't include the picture that I used in my GUI. Any ideas?
GaryFrost Posted June 2, 2005 Posted June 2, 2005 You could do something like Example: Local $Wizard = "Wizard.jpg" If @Compiled Then FileInstall( $Wizard, @ScriptDir & "\" & $Wizard) EndIf SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
purpleblue Posted June 2, 2005 Author Posted June 2, 2005 (edited) Thanks, tahts a good idea. Also, how do you tell if a radio button has been checked? I don't understand the ControlID thing. Edited June 2, 2005 by purpleblue
layer Posted June 2, 2005 Posted June 2, 2005 Or... Instead of re-installing it, maybe something like this: If Not FileExists(@ScriptDir & "\Images\Wizard.bmp") Then FileInstall("Wizard.bmp", @ScriptDir & "\Images\Wizard.bmp") That should work, and if it doesn't, use TumBlEWeEds work around like this: If Not FileExists(@ScriptDir & "\Images\Wizard.bmp") Then FileInstall("Wizard.bmp", @ScriptDir & "\") DirCreate(@ScriptDir & "\Images") FileMove("Wizard.bmp", @ScriptDir & "\Images\Wizard.bmp") EndIf FootbaG
purpleblue Posted June 2, 2005 Author Posted June 2, 2005 (edited) So, I see you use bugmenot too eh?--layer Edited June 2, 2005 by purpleblue
GaryFrost Posted June 2, 2005 Posted June 2, 2005 Yeah, I'll register once I get a few minutes, I'm in a hurry .Also, how do you tell if a radio button has been checked? I don't understand the ControlID thing. Thanks for all your quick help!!!-ending<{POST_SNAPBACK}>$radio = GUICtrlCreateRadio("radio test", 10, 80, 60, -1) While 1 $msg = GUIGetMsg() If $msg = $gui_event_close Then ExitLoop If GUICtrlRead($radio) = $GUI_CHECKED Then ; do something EndIf WEnd SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Valuater Posted June 3, 2005 Posted June 3, 2005 Or... Instead of re-installing it, maybe something like this:If Not FileExists(@ScriptDir & "\Images\Wizard.bmp") Then FileInstall("Wizard.bmp", @ScriptDir & "\Images\Wizard.bmp")That should work, and if it doesn't, use TumBlEWeEds work around like this:If Not FileExists(@ScriptDir & "\Images\Wizard.bmp") Then FileInstall("Wizard.bmp", @ScriptDir & "\") DirCreate(@ScriptDir & "\Images") FileMove("Wizard.bmp", @ScriptDir & "\Images\Wizard.bmp") EndIf<{POST_SNAPBACK}>need to ad literal string.... cannot be a variableas stated in helpFileInstall ( "source", "dest" [, flag] ) Parameters source The source path of the file to compile. This must be a literal string; it cannot be a variable. <<<<<<<<<<<<<<<< here dest The destination path with trailing backslash. This can be a variable. flag [optional] this flag determines whether to overwrite files if they already exist: 0 = (default) do not overwrite existing files 1 = overwrite existing fileshope that helped
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