Jump to content

Recommended Posts

Posted

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?

Posted (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 by purpleblue
Posted

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
Posted

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.

 

Posted

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 variable

as stated in help

FileInstall ( "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 files

hope that helped

NEWHeader1.png

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...