Jump to content

Unable to include pictures ?


zvvyt
 Share

Recommended Posts

#NoTrayIcon
#include <misc.au3>
#include <guiconstants.au3>
#include <Constants.au3>
#include <IE.au3>
#include <intro.jpg>;   <-----   problem is here
#include <silkroad.jpg>;    <-----   problem is here

;Opt("TrayOnEventMode",1)
;Opt("TrayMenuMode",1) 

SplashImageOn("Thx for using this!","intro.jpg")
sleep(2500)
SplashOff()
$main = GUICreate("Hide Me",160,150)
GUISetIcon("silkroad.jpg")
GUICtrlCreateTab(0,129)
GUICtrlCreateTabitem("Main");Main
$1st = GUICtrlCreateButton("Hide",30,0)
GUICtrlCreateLabel("1st",5,5)
guictrlsetcolor(-1,0xCC0000)
$1stshow = GUICtrlCreateButton("Show",90,0)
$2ndshow = GUICtrlCreateButton("Show",90,25)
$2nd = GUICtrlCreateButton("Hide",30,25)
GUICtrlCreateLabel("2nd",5,30)
guictrlsetcolor(-1,0xCC0000)
$exit = guictrlcreatebutton("exit..",120,125)
GUICtrlCreateLabel("Brought to you by zvvyt btw",10,105)
guictrlsetcolor(-1,0xCC0000)
GUICtrlCreateTabitem("Help");Help
GUICtrlCreateLabel("Start program when all",0,2) 
GUICtrlCreateLabel("SRO clients are running",0,14) 
GUICtrlCreateLabel("Click 1st hide to hide 1st copy",0,30) 
GUICtrlCreateLabel("Click 2nd hide to hide 2nd copy",0,42)
GUICtrlCreateLabel("Click 1st show to show 1st copy",0,58)
GUICtrlCreateLabel("Click 2nd show to show 2nd copy",0,70)
GUISetState (@SW_SHOW)
$array = WinList("SRO_Client")
while 1
        $msg = GUIGetMsg()
        If $msg = $GUI_EVENT_CLOSE Then Exit
    select 
    case $msg = $1st
        if WinExists($array[1][1]) Then
        WinSetState($array[1][1],"",@sw_hide)
    EndIf
    case $msg = $1stshow
        WinSetState($array[1][1],"",@SW_SHOW)
    case $msg = $2nd
        if WinExists($array[2][1]) Then
        WinSetState($array[2][1],"",@sw_hide)
    EndIf
    case $msg = $2ndshow
        WinSetState($array[2][1],"",@SW_SHOW)
    Case $msg = $exit
    if not ProcessExists("sro_client.exe") then exit
    $state = WinGetState("SRO_Client","")
    if BitAnd($state, 2) then Exit
    if BitAnd($state, 2) = 0 then $asd = MsgBox(4,"DOH! You Fail!  or did you ...","SRO is still hidden. Wanna keep it that way?")
    if $asd = 7 then WinSetState($array[1][1],"",@sw_show)
        Exit
    if $asd = 7 then WinSetState($array[2][1],"",@sw_show)
        Exit
    if $asd = 6 Then Exit
    EndSelect
WEnd

and here's the pictures:

http://rapidshare.com/files/88650396/Pictu...roblem.rar

please help me

ty in advance

Edited by zvvyt
Link to comment
Share on other sites

  • Developers

#include is to insert script code at that point in the script at compilation or run times. Clearly NOT to include files. for that purpose you need to use the FileInstall() command.

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

Got your solution?

FileInstall(@ScriptDir & "\includefiles\file.jpg",@Scriptdir & "\file.jpg") // this will include the file "file.jpg" from the subfolder of the script "includefiles" into you *.exe file.

If a person runns the script. it will extract the file.jpg to the mainfolder of the script and you can use it

Link to comment
Share on other sites

  • Developers

Got your solution?

FileInstall(@ScriptDir & "\includefiles\file.jpg",@Scriptdir & "\file.jpg") // this will include the file "file.jpg" from the subfolder of the script "includefiles" into you *.exe file.

If a person runns the script. it will extract the file.jpg to the mainfolder of the script and you can use it

Nah...

Parameters

source - The source path of the file to compile. This must be a literal string; it cannot be a variable.

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...