Sign in to follow this  
Followers 0
gcue

variable not declared but it is

25 posts in this topic

If I run the code through SCITE, it tells me the error is coming from this line

If Not _FileReadToArray($afile,$assets) Then

and here

FileWrite($file,

but in both cases the variable IS defined.. what am i not seeing????!!

Func ChooseTXT()

$message = "Please choose your assets text file."

$afile = FileOpenDialog($message, @DesktopDir & "\", "Text Files (*.txt)", 1 + 4 )

If @error Then
    MsgBox(262144,"Exclusion v0.1","No file was chosen")
    Return
EndIf
EndFunc

Func Check_Setting()

Dim $afile
If $afile <> "" Then
Call ChooseTXT()
EndIf

$file = $toolsdir & "\Exclusion\settings.csv"

If FileExists($file) Then
    FileDelete ($file)
EndIf

FileWrite($file, "Asset, Primary User, Exclusion Variable")

Dim $assets, $file
If Not _FileReadToArray($afile,$assets) Then
 Exit
EndIf

For $x = 1 to $assets[0]
$errorcount = 0
$status="1"
$user="1"
$version="1"
$serial="1"

Ping($assets[$x])
If @error Then
$status="OFFLINE"
$user="???"
$version="???"
$serial="???"
$errorcount =+1
EndIf

If $errorcount = 0 Then
RegRead ( "\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir" )
If @error Then
$status="NO_ADMIN_RIGHTS"
$user="???"
$version="???"
$serial="???"
$errorcount =+1
EndIf
EndIf

If $errorcount = 0 Then
RegRead ( "\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Bloomberg L.P.\Components", "sotr_version")
If @error Then
$status="BLOOMBERG_NOT_INSTALLED"
$user =  RegRead("\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Inventory", "PrimaryUser")
$version="???"
$serial="???"
$errorcount =+1
EndIf
EndIf

Dim $status, $user, $env_var
If $status = "1" Then
$status = ""
$user =  RegRead("\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Inventory", "PrimaryUser")
If @error Then
    $user = "Unknown"
EndIf
$env_var = RegRead("\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment", "CGGROUP")
If @error Then
    $env_var = "Missing"
EndIf

EndIf

FileWrite($file, '' &@CRLF & _
                $assets[$x] & "," & $user & "," & $env_var & "," & $status)

Next

ShellExecute($file)
EndFunc ;Check_Setting

Share this post


Link to post
Share on other sites



The only error I'm getting is on line 17, and that's because you have used Call ChooseTXT(), you do not need to put call there.


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

#include <Array.au3>

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

It doesn't work because you declared $afile in a function.

Edited by weaponx

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

nah i have that - still doesnt work.

#include <Array.au3>

here's the whole code:

#Include <GuiConstants.au3>
#Include <Constants.au3>
#include <file.au3>
#include <Array.au3>

$toolsdir="C:\CRS\Tools"

If Not FileExists($toolsdir) Then
    DirCreate($toolsdir)
EndIf

If Not FileExists($toolsdir & "\Exclusion") Then
    DirCreate($toolsdir & "\Exclusion")
EndIf

GUICreate("Exclusion v0.1", 290,80); WS_EX_ACCEPTFILES

$filemenu = GUICtrlCreateMenu ("&File")
$fileopenitem = GUICtrlCreateMenuitem ("Choose Asset File",$filemenu)
$fileexititem = GUICtrlCreateMenuitem ("Exit",$filemenu)

$helpmenu = GUICtrlCreateMenu ("&Help")
$helpchangeitem = GUICtrlCreateMenuItem("Change Log", $helpmenu)
$helpaboutitem = GUICtrlCreateMenuitem ("About",$helpmenu)

$i = GUICtrlCreateCombo ("Check Setting", 10,10,200,25) ; create first item
GUICtrlSetData(-1,"Push Setting|Remove Setting","Check Setting") ; add other item snd set a new default

$b = GUICtrlCreateButton("OK", 225, 8, 50)
GUICtrlSetState(-1, $GUI_FOCUS)

GUISetState()

While 1
    $msg = GUIGetMsg()
    switch $msg
            case $GUI_EVENT_CLOSE
                Exit
            case $b
                Check_Setting()
   
   If GUICtrlRead($i) = "Check Setting" Then
      Check_Setting()
   EndIf

   If GUICtrlRead($i) = "Push Setting" Then
      Push_Setting()
   EndIf
   
   If GUICtrlRead($i) = "Remove Setting" Then
      Remove_Setting()
   EndIf
  
    case $fileopenitem
         ChooseTXT()
    case $fileexititem
         XButton()
    case $helpchangeitem
         Change()
    case $helpaboutitem 
         About()
    EndSwitch
Wend

Func ChooseTXT()
    $message = "Please choose your assets text file."

$afile = FileOpenDialog($message, @DesktopDir & "\", "Text Files (*.txt)", 1 + 4 )

If @error Then
    MsgBox(262144,"Exclusion v0.1","No file was chosen")
    Return
EndIf
EndFunc

Func Check_Setting()

Dim $afile
If $afile <> "" Then
   ChooseTXT()
EndIf

$file = $toolsdir & "\Exclusion\settings.csv"

If FileExists($file) Then
    FileDelete ($file)
EndIf

FileWrite($file, "Asset, Primary User, Exclusion Variable")

Dim $assets, $file
If Not _FileReadToArray($afile,$assets) Then
 Exit
EndIf

For $x = 1 to $assets[0]
$errorcount = 0
$status="1"
$user="1"
$version="1"
$serial="1"

Ping($assets[$x])
If @error Then
$status="OFFLINE"
$user="???"
$version="???"
$serial="???"
$errorcount =+1
EndIf

If $errorcount = 0 Then
RegRead ( "\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir" )
If @error Then
$status="NO_ADMIN_RIGHTS"
$user="???"
$version="???"
$serial="???"
$errorcount =+1
EndIf
EndIf

If $errorcount = 0 Then
RegRead ( "\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Bloomberg L.P.\Components", "sotr_version")
If @error Then
$status="BLOOMBERG_NOT_INSTALLED"
$user =  RegRead("\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Inventory", "PrimaryUser")
$version="???"
$serial="???"
$errorcount =+1
EndIf
EndIf

Dim $status, $user, $env_var
If $status = "1" Then
$status = ""
$user =  RegRead("\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Inventory", "PrimaryUser")
If @error Then
    $user = "Unknown"
EndIf
$env_var = RegRead("\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment", "CGGROUP")
If @error Then
    $env_var = "Missing"
EndIf

EndIf

FileWrite($file, '' &@CRLF & _
                $assets[$x] & "," & $user & "," & $env_var & "," & $status)

Next

ShellExecute($file)
EndFunc ;Check_Setting

Func Push_Setting()

Dim $assets
If Not _FileReadToArray($afile,$assets) Then
 Exit
EndIf

For $x = 1 to $assets[0]
$errorcount=0
$status="1"
$dacs="1"
$usercode="1"

Ping($assets[$x])
If @error Then
$status="OFFLINE"
$dacs="???"
$usercode="???"
$errorcount=+1
EndIf

If $errorcount=0 Then
RegRead ( "\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir" )
If @error Then
$status="NO_ADMIN_RIGHTS"
$dacs="???"
$usercode="???"
$errorcount=+1
EndIf
EndIf

If $errorcount=0 Then
RegRead ( "\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Reuters\Common\Dacs", "UserName" )
If @error Then
$status="REUTERS3000XTRA_NOT_INSTALLED"
$dacs="???"
$usercode="???"
$errorcount=+1
EndIf
EndIf

Dim $status, $dacs
If $status = "1" Then
$dacs = RegRead("\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Reuters\Common\Dacs", "UserName")
$usercode = RegRead("\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Reuters\Reuters_login\Groups\DEFAULT", "user ID")
$status=""
EndIf

FileWrite($file, '' &@CRLF & _
                $assets[$x] & "," & $dacs & "," & $usercode & "," & $status)

Next

ShellExecute($file)
EndFunc ;Push_Setting

Func Remove_Setting()

Dim $assets
If Not _FileReadToArray($afile,$assets) Then
 Exit
EndIf

For $x = 1 to $assets[0]
$errorcount=0
$status="1"
$dacs="1"
$usercode="1"

Ping($assets[$x])
If @error Then
$status="OFFLINE"
$dacs="???"
$usercode="???"
$errorcount=+1
EndIf

If $errorcount=0 Then
RegRead ( "\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir" )
If @error Then
$status="NO_ADMIN_RIGHTS"
$dacs="???"
$usercode="???"
$errorcount=+1
EndIf
EndIf

If $errorcount=0 Then
RegRead ( "\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Reuters\Common\Dacs", "UserName" )
If @error Then
$status="REUTERS3000XTRA_NOT_INSTALLED"
$dacs="???"
$usercode="???"
$errorcount=+1
EndIf
EndIf

Dim $status, $dacs
If $status = "1" Then
$dacs = RegRead("\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Reuters\Common\Dacs", "UserName")
$usercode = RegRead("\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Reuters\Reuters_login\Groups\DEFAULT", "user ID")
$status=""
EndIf

FileWrite($file, '' &@CRLF & _
                $assets[$x] & "," & $dacs & "," & $usercode & "," & $status)

Next

ShellExecute($file)
EndFunc ;Remove_Setting


Func Change()
MsgBox(262144, "Exclusion v0.1", 'Change Log'&@CRLF & _
                        ''&@CRLF & _
                        'No Changes'&@CRLF & _
                        ''&@CRLF & _
                        'Please contact GXM x90760 for suggestions or bug reports.')
EndFunc ;Change

Func About()
MsgBox(64, "About", 'Exclusion v0.1'&@CRLF & _
                        ''&@CRLF & _
                        'Choose a text file with assets to do any of the following:'&@CRLF & _
                        ''&@CRLF & _
                        'Check Setting: checks for Exclusion Environment Variable on assets in assets file.'&@CRLF & _
                        'Push Setting: pushes Exclusion Environment Variable setting to assets on asset file.'&@CRLF & _
                        'Remove Setting: removes Exclusion Environment Variable setting on assets in asset file.'&@CRLF & _
                        ''&@CRLF & _
                        'Contact GXM x90760 for questions/suggestions.')
EndFunc ;About

Func Xbutton()
  Exit
EndFunc ;Xbutton
Edited by gcue

Share this post


Link to post
Share on other sites

odd, so if i set a variable within a function, i cant use that variable in another function??

didnt know that.

i dont wnat to prompt the user to select a text file for each of the drop down items.

what would u reccomend?

thanks

It doesn't work because you declared $afile in a function.

Share this post


Link to post
Share on other sites

Global $aFile, $file

Read the helpfiles. Learn what these keywords are for: Global, Local

Share this post


Link to post
Share on other sites

i still get the error =(

driving me nuts!

Global $afile=1, $file

Func ChooseTXT()
    $message = "Please choose your assets text file."

$afile = FileOpenDialog($message, @DesktopDir & "\", "Text Files (*.txt)", 1 + 4 )

If @error Then
    MsgBox(262144,"Exclusion v0.1","No file was chosen")
    Return
EndIf
EndFunc ;ChooseTXT

Func Check_Setting()

If $afile=1 Then
   ChooseTXT()
EndIf

$file = $toolsdir & "\Exclusion\settings.csv"

If FileExists($file) Then
    FileDelete ($file)
EndIf

FileWrite($file, "Asset, Primary User, Exclusion Variable")

Dim $assets, $file
If Not _FileReadToArray($afile,$assets) Then
 Exit
EndIf

For $x = 1 to $assets[0]
$errorcount = 0
$status="1"
$user="1"
$version="1"
$serial="1"

Ping($assets[$x])
If @error Then
$status="OFFLINE"
$user="???"
$version="???"
$serial="???"
$errorcount =+1
EndIf

If $errorcount = 0 Then
RegRead ( "\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion", "ProgramFilesDir" )
If @error Then
$status="NO_ADMIN_RIGHTS"
$user="???"
$version="???"
$serial="???"
$errorcount =+1
EndIf
EndIf

If $errorcount = 0 Then
RegRead ( "\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Bloomberg L.P.\Components", "sotr_version")
If @error Then
$status="BLOOMBERG_NOT_INSTALLED"
$user =  RegRead("\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Inventory", "PrimaryUser")
$version="???"
$serial="???"
$errorcount =+1
EndIf
EndIf

Dim $status, $user, $env_var
If $status = "1" Then
$status = ""
$user =  RegRead("\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Inventory", "PrimaryUser")
If @error Then
    $user = "Unknown"
EndIf
$env_var = RegRead("\\" & $assets[$x] & "\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment", "CGGROUP")
If @error Then
    $env_var = "Missing"
EndIf

EndIf

FileWrite($file, '' &@CRLF & _
                $assets[$x] & "," & $user & "," & $env_var & "," & $status)

Next

ShellExecute($file)
EndFunc ;Check_Setting

Share this post


Link to post
Share on other sites

#11 ·  Posted

didnt even know au3check existed!

zero errors

zero warnings

just like SCITE

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

I get 3 errors when i run the last posted script. One is ofcourse about the missing #include .

Post the output of the SciTE outputpane after you done F5.

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#13 ·  Posted

output:

>"C:\Documents and Settings\GXM\Desktop\AutoIt v3.2.10.0\SciTE4AutoIt3\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "U:\scripts\Exclusion\Exclusion.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams    
+>10:58:20 Starting AutoIt3Wrapper v.1.10.1.7    Environment(Language:0409  Keyboard:00000409  OS:WIN_XP/Service Pack 2  CPU:X86)
>Running AU3Check (1.54.10.0)  from:C:\Documents and Settings\GXM\Desktop\AutoIt v3.2.10.0
+>10:58:20 AU3Check ended.rc:0
>Running:(3.2.10.0):C:\Documents and Settings\GXM\Desktop\AutoIt v3.2.10.0\autoit3.exe "U:\scripts\Exclusion\Exclusion.au3"    
U:\scripts\Exclusion\Exclusion.au3 (80) : ==> Variable used without being declared.: 
If $afile=1 Then 
If ^ ERROR
->10:59:15 AutoIT3.exe ended.rc:1
>Exit code: 1    Time: 56.950oÝ÷ Ú«zËayÊy«­¢+Ø%¹±Õ±ÐíÕ¥
½¹ÍѹÑ̹ÔÌÐì(%¹±Õ±Ðí
½¹ÍѹÑ̹ÔÌÐì(¥¹±Õ±Ðí¥±¹ÔÌÐì(¥¹±Õ±ÐíÉÉä¹ÔÌÐì((ÀÌØíѽ½±Í¥ÈôÅÕ½ÐíèÀäÈí
ILÀäÈíQ½½±ÌÅÕ½Ðì()%9½Ð¥±á¥ÍÑÌ ÀÌØíѽ½±Í¥È¤Q¡¸(¥É
ÉÑ ÀÌØíѽ½±Í¥È¤)¹%()%9½Ð¥±á¥ÍÑÌ ÀÌØíѽ½±Í¥ÈµÀìÅÕ½ÐìÀäÈíá±ÕÍ¥½¸ÅÕ½Ðì¤Q¡¸(¥É
ÉÑ ÀÌØíѽ½±Í¥ÈµÀìÅÕ½ÐìÀäÈíá±ÕÍ¥½¸ÅÕ½Ðì¤)¹%()U%
ÉÑ ÅÕ½Ðíá±ÕÍ¥½¸ØÀ¸ÄÅÕ½Ðì°ÈäÀ°àÀ¤ì]M}a}

AQ%1L((ÀÌØí¥±µ¹ÔôU%
Ñɱ
ÉÑ5¹Ô ÅÕ½ÐìµÀí¥±ÅÕ½Ðì¤(ÀÌØí¥±½Á¹¥Ñ´ôU%
Ñɱ
ÉÑ5¹Õ¥Ñ´ ÅÕ½Ðí
¡½½ÍÍÍÐ¥±ÅÕ½Ðì°ÀÌØí¥±µ¹Ô¤(ÀÌØí¥±á¥Ñ¥Ñ´ôU%
Ñɱ
ÉÑ5¹Õ¥Ñ´ ÅÕ½Ðíá¥ÐÅÕ½Ðì°ÀÌØí¥±µ¹Ô¤((ÀÌØí¡±Áµ¹ÔôU%
Ñɱ
ÉÑ5¹Ô ÅÕ½ÐìµÀí!±ÀÅÕ½Ðì¤(ÀÌØí¡±Á¡¹¥Ñ´ôU%
Ñɱ
ÉÑ5¹Õ%Ñ´ ÅÕ½Ðí
¡¹1½ÅÕ½Ðì°ÀÌØí¡±Áµ¹Ô¤(ÀÌØí¡±Á½ÕѥѴôU%
Ñɱ
ÉÑ5¹Õ¥Ñ´ ÅÕ½Ðí½ÕÐÅÕ½Ðì°ÀÌØí¡±Áµ¹Ô¤((ÀÌØí¤ôU%
Ñɱ
ÉÑ
½µ¼ ÅÕ½Ðí
¡¬MÑÑ¥¹ÅÕ½Ðì°ÄÀ°ÄÀ°ÈÀÀ°ÈÔ¤ìÉÑ¥ÉÍХѴ)U%
ÑɱMÑÑ ´Ä°ÅÕ½ÐíAÕÍ MÑÑ¥¹ñIµ½ÙMÑÑ¥¹ÅÕ½Ðì°ÅÕ½Ðí
¡¬MÑÑ¥¹ÅÕ½Ðì¤ì½Ñ¡È¥Ñ´Í¹ÍйÜÕ±Ð((ÀÌØíôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½Ðí=,ÅÕ½Ðì°ÈÈÔ°à°ÔÀ¤)U%
ÑɱMÑMÑÑ ´Ä°ÀÌØíU%}=
UL¤()U%MÑMÑÑ ¤()]¡¥±Ä(ÀÌØíµÍôU%Ñ5Í ¤(ÍÝ¥Ñ ÀÌØíµÍ(ÍÀÌØíU%}Y9Q}
1=M(á¥Ð(ÍÀÌØí(
¡­}MÑÑ¥¹ ¤((%U%
ÑɱI ÀÌØí¤¤ôÅÕ½Ðí
¡¬MÑÑ¥¹ÅÕ½ÐìQ¡¸(
¡­}MÑÑ¥¹ ¤(¹%((%U%
ÑɱI ÀÌØí¤¤ôÅÕ½ÐíAÕÍ MÑÑ¥¹ÅÕ½ÐìQ¡¸(AÕÍ¡}MÑÑ¥¹ ¤(¹%((%U%
ÑɱI ÀÌØí¤¤ôÅÕ½ÐíIµ½ÙMÑÑ¥¹ÅÕ½ÐìQ¡¸(Iµ½Ù}MÑÑ¥¹ ¤(¹%((ÍÀÌØí¥±½Á¹¥Ñ´($$
¡½½ÍQaP ¤(ÍÀÌØí¥±á¥Ñ¥Ñ´(a ÕÑѽ¸ ¤(ÍÀÌØí¡±Á¡¹¥Ñ´(
¡¹ ¤(ÍÀÌØí¡±Á½ÕѥѴ(½ÕÐ ¤(¹MÝ¥Ñ )]¹()±½°ÀÌØí¥±ôÄ°ÀÌØí¥±()Õ¹
¡½½ÍQaP ¤($ÀÌØíµÍÍôÅÕ½ÐíA±Í¡½½Íå½ÕÈÍÍÑÌÑáÐ¥±¸ÅÕ½Ðì((ÀÌØí¥±ô¥±=Á¹¥±½ ÀÌØíµÍͰͭѽÁ¥ÈµÀìÅÕ½ÐìÀäÈìÅÕ½Ðì°ÅÕ½ÐíQáÐ¥±Ì ¨¹ÑáФÅÕ½Ðì°Ä¬Ð¤()%ÉɽÈQ¡¸(5Í   ½à ÈØÈÄÐаÅÕ½Ðíá±ÕÍ¥½¸ØÀ¸ÄÅÕ½Ðì°ÅÕ½Ðí9¼¥±ÝÌ¡½Í¸ÅÕ½Ðì¤(%IÑÕɸ)¹%)¹Õ¹í
¡½½ÍQaP()Õ¹
¡­}MÑÑ¥¹ ¤()%ÀÌØí¥±ôÄQ¡¸(
¡½½ÍQaP ¤)¹%((ÀÌØí¥±ôÀÌØíѽ½±Í¥ÈµÀìÅÕ½ÐìÀäÈíá±ÕÍ¥½¸ÀäÈíÍÑÑ¥¹Ì¹ÍØÅÕ½Ðì()%¥±á¥ÍÑÌ ÀÌØí¥±¤Q¡¸(¥±±Ñ ÀÌØí¥±¤)¹%()¥±]É¥Ñ ÀÌØí¥±°ÅÕ½ÐíÍÍаAÉ¥µÉäUÍÈ°á±ÕÍ¥½¸YÉ¥±ÅÕ½Ðì¤()¥´ÀÌØíÍÍÑÌ°ÀÌØí¥±)%9½Ð}¥±IQ½ÉÉä ÀÌØí¥±°ÀÌØíÍÍÑ̤Q¡¸(á¥Ð)¹%()½ÈÀÌØíàôÄѼÀÌØíÍÍÑÍlÁt(ÀÌØíÉɽɽչÐôÀ(ÀÌØíÍÑÑÕÌôÅÕ½ÐìÄÅÕ½Ðì(ÀÌØíÕÍÈôÅÕ½ÐìÄÅÕ½Ðì(ÀÌØí¹Ù}ÙÈôÅÕ½ÐìÄÅÕ½Ðì()A¥¹ ÀÌØíÍÍÑÍlÀÌØíát¤)%ÉɽÈQ¡¸(ÀÌØíÍÑÑÕÌôÅÕ½Ðí=1%9ÅÕ½Ðì(ÀÌØíÕÍÈôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØí¹Ù}ÙÈôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØíÉɽɽչÐô¬Ä)¹%()%ÀÌØíÉɽɽչÐôÀQ¡¸)II ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíM=Q]IÀäÈí5¥É½Í½ÐÀäÈí]¥¹½ÝÌÀäÈí
ÕÉɹÑYÉÍ¥½¸ÅÕ½Ðì°ÅÕ½ÐíAɽɵ¥±Í¥ÈÅÕ½Ðì¤)%ÉɽÈQ¡¸(ÀÌØíÍÑÑÕÌôÅÕ½Ðí9=}5%9}I%!QLÅÕ½Ðì(ÀÌØíÕÍÈôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØí¹Ù}ÙÈôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØíÉɽɽչÐô¬Ä)¹%)¹%()%ÀÌØíÉɽɽչÐôÀQ¡¸)II ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíM=Q]IÀäÈí    ±½½µÉ0¹@¸ÀäÈí
½µÁ½¹¹ÑÌÅÕ½Ðì°ÅÕ½ÐíͽÑÉ}ÙÉÍ¥½¸ÅÕ½Ðì¤)%ÉɽÈQ¡¸(ÀÌØíÍÑÑÕÌôÅÕ½Ðí   1==5    I}9=Q}%9MQ11ÅÕ½Ðì(ÀÌØíÕÍÈôII ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíM=Q]IÀäÈí±Ñ¥É¥ÌÀäÈí±Ñ¥É¥Ì¹ÐÀäÈí%¹Ù¹Ñ½ÉäÅÕ½Ðì°ÅÕ½ÐíAÉ¥µÉåUÍÈÅÕ½Ðì¤(ÀÌØí¹Ù}ÙÈôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØíÉɽɽչÐô¬Ä)¹%)¹%()¥´ÀÌØíÍÑÑÕÌ°ÀÌØíÕÍÈ°ÀÌØí¹Ù}ÙÈ)%ÀÌØíÍÑÑÕÌôÅÕ½ÐìÄÅÕ½ÐìQ¡¸(ÀÌØíÍÑÑÕÌôÅÕ½ÐìÅÕ½Ðì(ÀÌØíÕÍÈôII ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíM=Q]IÀäÈí±Ñ¥É¥ÌÀäÈí±Ñ¥É¥Ì¹ÐÀäÈí%¹Ù¹Ñ½ÉäÅÕ½Ðì°ÅÕ½ÐíAÉ¥µÉåUÍÈÅÕ½Ðì¤)%ÉɽÈQ¡¸($ÀÌØíÕÍÈôÅÕ½ÐíU¹­¹½Ý¸ÅÕ½Ðì)¹%(ÀÌØí¹Ù}ÙÈôII ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíMeMQ4ÀäÈí
ÕÉɹÑ
½¹Ñɽ±MÐÀäÈí
½¹Ñɽ°ÀäÈíMÍÍ¥½¸5¹ÈÀäÈí¹Ù¥É½¹µ¹ÐÅÕ½Ðì°ÅÕ½Ðí
I=U@ÅÕ½Ðì¤)%ÉɽÈQ¡¸($ÀÌØí¹Ù}ÙÈôÅÕ½Ðí5¥ÍÍ¥¹ÅÕ½Ðì)¹%()¹%()¥±]É¥Ñ ÀÌØí¥±°ÌäìÌäìµÀí
I1µÀì|(ÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½Ðì°ÅÕ½ÐìµÀìÀÌØíÕÍȵÀìÅÕ½Ðì°ÅÕ½ÐìµÀìÀÌØí¹Ù}ÙȵÀìÅÕ½Ðì°ÅÕ½ÐìµÀìÀÌØíÍÑÑÕ̤()9áÐ()M¡±±áÕÑ ÀÌØí¥±¤)¹Õ¹í
¡­}MÑÑ¥¹()Õ¹AÕÍ¡}MÑÑ¥¹ ¤()%ÀÌØí¥±±ÐìÐìÅÕ½ÐìÅÕ½ÐìQ¡¸(
¡½½ÍQaP ¤)¹%((ÀÌØí¥±ôÀÌØíѽ½±Í¥ÈµÀìÅÕ½ÐìÀäÈíá±ÕÍ¥½¸ÀäÈíÍÑÑ¥¹Ì¹ÍØÅÕ½Ðì()%¥±á¥ÍÑÌ ÀÌØí¥±¤Q¡¸(¥±±Ñ ÀÌØí¥±¤)¹%()¥±]É¥Ñ ÀÌØí¥±°ÅÕ½ÐíÍÍаAÉ¥µÉäUÍÈ°á±ÕÍ¥½¸YÉ¥±ÅÕ½Ðì¤()¥´ÀÌØíÍÍÑÌ°ÀÌØí¥±)%9½Ð}¥±IQ½ÉÉä ÀÌØí¥±°ÀÌØíÍÍÑ̤Q¡¸(á¥Ð)¹%()½ÈÀÌØíàôÄѼÀÌØíÍÍÑÍlÁt(ÀÌØíÉɽɽչÐôÀ(ÀÌØíÍÑÑÕÌôÅÕ½ÐìÄÅÕ½Ðì(ÀÌØíÕÍÈôÅÕ½ÐìÄÅÕ½Ðì(ÀÌØí¹Ù}ÙÈôÅÕ½ÐìÄÅÕ½Ðì()A¥¹ ÀÌØíÍÍÑÍlÀÌØíát¤)%ÉɽÈQ¡¸(ÀÌØíÍÑÑÕÌôÅÕ½Ðí=1%9ÅÕ½Ðì(ÀÌØíÕÍÈôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØí¹Ù}ÙÈôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØíÉɽɽչÐô¬Ä)¹%()%ÀÌØíÉɽɽչÐôÀQ¡¸)II ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíM=Q]IÀäÈí5¥É½Í½ÐÀäÈí]¥¹½ÝÌÀäÈí
ÕÉɹÑYÉÍ¥½¸ÅÕ½Ðì°ÅÕ½ÐíAɽɵ¥±Í¥ÈÅÕ½Ðì¤)%ÉɽÈQ¡¸(ÀÌØíÍÑÑÕÌôÅÕ½Ðí9=}5%9}I%!QLÅÕ½Ðì(ÀÌØíÕÍÈôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØí¹Ù}ÙÈôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØíÉɽɽչÐô¬Ä)¹%)¹%()%ÀÌØíÉɽɽչÐôÀQ¡¸)II ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíM=Q]IÀäÈí    ±½½µÉ0¹@¸ÀäÈí
½µÁ½¹¹ÑÌÅÕ½Ðì°ÅÕ½ÐíͽÑÉ}ÙÉÍ¥½¸ÅÕ½Ðì¤)%ÉɽÈQ¡¸(ÀÌØíÍÑÑÕÌôÅÕ½Ðí   1==5    I}9=Q}%9MQ11ÅÕ½Ðì(ÀÌØíÕÍÈôII ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíM=Q]IÀäÈí±Ñ¥É¥ÌÀäÈí±Ñ¥É¥Ì¹ÐÀäÈí%¹Ù¹Ñ½ÉäÅÕ½Ðì°ÅÕ½ÐíAÉ¥µÉåUÍÈÅÕ½Ðì¤(ÀÌØíÙÉÍ¥½¸ôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØíÍÉ¥°ôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØíÉɽɽչÐô¬Ä)¹%)¹%()¥´ÀÌØíÍÑÑÕÌ°ÀÌØíÕÍÈ°ÀÌØí¹Ù}ÙÈ)%ÀÌØíÍÑÑÕÌôÅÕ½ÐìÄÅÕ½ÐìQ¡¸(ÀÌØíÍÑÑÕÌôÅÕ½ÐìÅÕ½Ðì(ÀÌØíÕÍÈôII ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíM=Q]IÀäÈí±Ñ¥É¥ÌÀäÈí±Ñ¥É¥Ì¹ÐÀäÈí%¹Ù¹Ñ½ÉäÅÕ½Ðì°ÅÕ½ÐíAÉ¥µÉåUÍÈÅÕ½Ðì¤)%ÉɽÈQ¡¸($ÀÌØíÕÍÈôÅÕ½ÐíU¹­¹½Ý¸ÅÕ½Ðì)¹%(ÀÌØí¹Ù}ÙÈôII ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíMeMQ4ÀäÈí
ÕÉɹÑ
½¹Ñɽ±MÐÀäÈí
½¹Ñɽ°ÀäÈíMÍÍ¥½¸5¹ÈÀäÈí¹Ù¥É½¹µ¹ÐÅÕ½Ðì°ÅÕ½Ðí
I=U@ÅÕ½Ðì¤)%ÉɽÈQ¡¸($ÀÌØí¹Ù}ÙÈôÅÕ½Ðí5¥ÍÍ¥¹ÅÕ½Ðì)¹%()¹%()¥±]É¥Ñ ÀÌØí¥±°ÌäìÌäìµÀí
I1µÀì|(ÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½Ðì°ÅÕ½ÐìµÀìÀÌØíÕÍȵÀìÅÕ½Ðì°ÅÕ½ÐìµÀìÀÌØí¹Ù}ÙȵÀìÅÕ½Ðì°ÅÕ½ÐìµÀìÀÌØíÍÑÑÕ̤()9áÐ()M¡±±áÕÑ ÀÌØí¥±¤)¹Õ¹íAÕÍ¡}MÑÑ¥¹()Õ¹Iµ½Ù}MÑÑ¥¹ ¤()¥´ÀÌØí¥±)%ÀÌØí¥±±ÐìÐìÅÕ½ÐìÅÕ½ÐìQ¡¸(
¡½½ÍQaP ¤)¹%((ÀÌØí¥±ôÀÌØíѽ½±Í¥ÈµÀìÅÕ½ÐìÀäÈíá±ÕÍ¥½¸ÀäÈíÍÑÑ¥¹Ì¹ÍØÅÕ½Ðì()%¥±á¥ÍÑÌ ÀÌØí¥±¤Q¡¸(¥±±Ñ ÀÌØí¥±¤)¹%()¥±]É¥Ñ ÀÌØí¥±°ÅÕ½ÐíÍÍаAÉ¥µÉäUÍÈ°á±ÕÍ¥½¸YÉ¥±ÅÕ½Ðì¤()¥´ÀÌØíÍÍÑÌ°ÀÌØí¥±)%9½Ð}¥±IQ½ÉÉä ÀÌØí¥±°ÀÌØíÍÍÑ̤Q¡¸(á¥Ð)¹%()½ÈÀÌØíàôÄѼÀÌØíÍÍÑÍlÁt(ÀÌØíÉɽɽչÐôÀ(ÀÌØíÍÑÑÕÌôÅÕ½ÐìÄÅÕ½Ðì(ÀÌØíÕÍÈôÅÕ½ÐìÄÅÕ½Ðì(ÀÌØí¹Ù}ÙÈôÅÕ½ÐìÄÅÕ½Ðì()A¥¹ ÀÌØíÍÍÑÍlÀÌØíát¤)%ÉɽÈQ¡¸(ÀÌØíÍÑÑÕÌôÅÕ½Ðí=1%9ÅÕ½Ðì(ÀÌØíÕÍÈôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØí¹Ù}ÙÈôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØíÉɽɽչÐô¬Ä)¹%()%ÀÌØíÉɽɽչÐôÀQ¡¸)II ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíM=Q]IÀäÈí5¥É½Í½ÐÀäÈí]¥¹½ÝÌÀäÈí
ÕÉɹÑYÉÍ¥½¸ÅÕ½Ðì°ÅÕ½ÐíAɽɵ¥±Í¥ÈÅÕ½Ðì¤)%ÉɽÈQ¡¸(ÀÌØíÍÑÑÕÌôÅÕ½Ðí9=}5%9}I%!QLÅÕ½Ðì(ÀÌØíÕÍÈôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØí¹Ù}ÙÈôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØíÉɽɽչÐô¬Ä)¹%)¹%()%ÀÌØíÉɽɽչÐôÀQ¡¸)II ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíM=Q]IÀäÈí    ±½½µÉ0¹@¸ÀäÈí
½µÁ½¹¹ÑÌÅÕ½Ðì°ÅÕ½ÐíͽÑÉ}ÙÉÍ¥½¸ÅÕ½Ðì¤)%ÉɽÈQ¡¸(ÀÌØíÍÑÑÕÌôÅÕ½Ðí   1==5    I}9=Q}%9MQ11ÅÕ½Ðì(ÀÌØíÕÍÈôII ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíM=Q]IÀäÈí±Ñ¥É¥ÌÀäÈí±Ñ¥É¥Ì¹ÐÀäÈí%¹Ù¹Ñ½ÉäÅÕ½Ðì°ÅÕ½ÐíAÉ¥µÉåUÍÈÅÕ½Ðì¤(ÀÌØíÙÉÍ¥½¸ôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØíÍÉ¥°ôÅÕ½ÐìüüüÅÕ½Ðì(ÀÌØíÉɽɽչÐô¬Ä)¹%)¹%()¥´ÀÌØíÍÑÑÕÌ°ÀÌØíÕÍÈ°ÀÌØí¹Ù}ÙÈ)%ÀÌØíÍÑÑÕÌôÅÕ½ÐìÄÅÕ½ÐìQ¡¸(ÀÌØíÍÑÑÕÌôÅÕ½ÐìÅÕ½Ðì(ÀÌØíÕÍÈôII ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíM=Q]IÀäÈí±Ñ¥É¥ÌÀäÈí±Ñ¥É¥Ì¹ÐÀäÈí%¹Ù¹Ñ½ÉäÅÕ½Ðì°ÅÕ½ÐíAÉ¥µÉåUÍÈÅÕ½Ðì¤)%ÉɽÈQ¡¸($ÀÌØíÕÍÈôÅÕ½ÐíU¹­¹½Ý¸ÅÕ½Ðì)¹%(ÀÌØí¹Ù}ÙÈôII ÅÕ½ÐìÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½ÐìÀäÈí!-e}1=
1}5
!%9ÀäÈíMeMQ4ÀäÈí
ÕÉɹÑ
½¹Ñɽ±MÐÀäÈí
½¹Ñɽ°ÀäÈíMÍÍ¥½¸5¹ÈÀäÈí¹Ù¥É½¹µ¹ÐÅÕ½Ðì°ÅÕ½Ðí
I=U@ÅÕ½Ðì¤)%ÉɽÈQ¡¸($ÀÌØí¹Ù}ÙÈôÅÕ½Ðí5¥ÍÍ¥¹ÅÕ½Ðì)¹%()¹%()¥±]É¥Ñ ÀÌØí¥±°ÌäìÌäìµÀí
I1µÀì|(ÀÌØíÍÍÑÍlÀÌØíátµÀìÅÕ½Ðì°ÅÕ½ÐìµÀìÀÌØíÕÍȵÀìÅÕ½Ðì°ÅÕ½ÐìµÀìÀÌØí¹Ù}ÙȵÀìÅÕ½Ðì°ÅÕ½ÐìµÀìÀÌØíÍÑÑÕ̤()9áÐ()M¡±±áÕÑ ÀÌØí¥±¤)¹Õ¹íIµ½Ù}MÑÑ¥¹(()Õ¹
¡¹ ¤)5Í ½à ÈØÈÄÐаÅÕ½Ðíá±ÕÍ¥½¸ØÀ¸ÄÅÕ½Ðì°Ìäí
¡¹1½ÌäìµÀí
I1µÀì|(ÌäìÌäìµÀí
I1µÀì|(Ìäí9¼
¡¹ÌÌäìµÀí
I1µÀì|(ÌäìÌäìµÀí
I1µÀì|(ÌäíA±Í½¹ÑÐa4àäÀÜØÀ½ÈÍÕÍÑ¥½¹Ì½ÈÕÉÁ½ÉÑ̸Ìäì¤)¹Õ¹í
¡¹()Õ¹½ÕÐ ¤)5Í ½à ØаÅÕ½Ðí½ÕÐÅÕ½Ðì°Ìäíá±ÕÍ¥½¸ØÀ¸ÄÌäìµÀí
I1µÀì|(ÌäìÌäìµÀí
I1µÀì|(Ìäí
¡½½ÍÑáÐ¥±Ý¥Ñ ÍÍÑÌѼ¼¹ä½Ñ¡½±±½Ý¥¹èÌäìµÀí
I1µÀì|(ÌäìÌäìµÀí
I1µÀì|(Ìäí
¡¬MÑÑ¥¹è¡­Ì½Èá±ÕÍ¥½¸¹Ù¥É½¹µ¹ÐYÉ¥±½¸ÍÍÑÌ¥¸ÍÍÑÌ¥±¸ÌäìµÀí
I1µÀì|(ÌäíAÕÍ MÑÑ¥¹èÁÕÍ¡Ìá±ÕÍ¥½¸¹Ù¥É½¹µ¹ÐYÉ¥±ÍÑÑ¥¹Ñ¼ÍÍÑ̽¸ÍÍÐ¥±¸ÌäìµÀí
I1µÀì|($$$$$$ÌäíIµ½ÙMÑÑ¥¹èɵ½ÙÌá±ÕÍ¥½¸¹Ù¥É½¹µ¹ÐYÉ¥±ÍÑÑ¥¹½¸ÍÍÑÌ¥¸ÍÍÐ¥±¸ÌäìµÀí
I1µÀì|(ÌäìÌäìµÀí
I1µÀì|(Ìäí
½¹ÑÐa4àäÀÜØÀ½ÈÅÕÍÑ¥½¹Ì½ÍÕÍÑ¥½¹Ì¸Ìäì¤)¹Õ¹í½ÕÐ()Õ¹aÕÑѽ¸ ¤(á¥Ð)¹Õ¹íaÕÑѽ¸

Share this post


Link to post
Share on other sites

#14 ·  Posted

Global $afile=1, $file

-> Declared after the while-loop... Will be never executed:)


*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

#15 ·  Posted

Your problem is that you call the CheckSetting() function before $afile is set to 1. Move the Global line up before the loop, and it'll work.

Share this post


Link to post
Share on other sites

#16 ·  Posted

DOH!

thanks man

Share this post


Link to post
Share on other sites

#18 ·  Posted (edited)

I have a similer problem.But its more complicated as its associated with #include <GUIConstants.au3> ..... see this command below :

#include <GUIConstants.au3>
$Pic11 = GUICtrlCreatePic("C:\Documents and Settings\Default\My Documents\My Pictures\G1.bmp", 0, 327, 401, 562, BitOR($WS_GROUP,$WS_VSCROLL,$WS_BORDER))

* Never mind the whole GUI .... I want only need this command to work

The Error says :

==> Variable used without being declared.:

$Pic44 = GUICtrlCreatePic("C:\Documents and Settings\Husain\My Documents\My Pictures\U1.bmp", 0, 327, 399, 526, BitOR($SS_NOTIFY,$SS_REALSIZEIMAGE,$WS_GROUP,$WS_VSCROLL,$WS_BORDER,$WS_CLIPSIBLINGS))

$Pic44 = GUICtrlCreatePic("C:\Documents and Settings\Husain\My Documents\My Pictures\U1.bmp", 0, 327, 399, 526, BitOR($SS_NOTIFY,^ ERROR

" $SS_REALSIZEIMAGE " how can I tell if this one is in <GUIConstants.au3> ?? I mean , in th e help its say that I should include <GUIConstants.au3> if Iam to use GUICtrlCreatePic styles or extrastyles . could it be possible that my <GUIConstants.au3> is an older version ?? Because that command was taken from Koda GUI designer.

I read about the command #include, it says that I should have installed Autoit normally. so was I in the first place.

Any Suggestions ???? :)

Edited by hussert

Share this post


Link to post
Share on other sites

I have a similer problem.But its more complicated as its associated with #include <GUIConstants.au3> ..... see this command below :

#include <GUIConstants.au3>
 $Pic11 = GUICtrlCreatePic("C:\Documents and Settings\Default\My Documents\My Pictures\G1.bmp", 0, 327, 401, 562, BitOR($WS_GROUP,$WS_VSCROLL,$WS_BORDER))

* Never mind the whole GUI .... I want only need this command to work

The Error says :

" $SS_REALSIZEIMAGE " how can I tell if this one is in <GUIConstants.au3> ?? I mean , in th e help its say that I should include <GUIConstants.au3> if Iam to use GUICtrlCreatePic styles or extrastyles . could it be possible that my <GUIConstants.au3> is an older version ?? Because that command was taken from Koda GUI designer.

I read about the command #include, it says that I should have installed Autoit normally. so was I in the first place.

Any Suggestions ???? :)

If you running the latest beta or release candidate then GUIConstants.au3 is not used for all constants, please check the styles section in the help file to see what include the constant belongs to.

Ps. I just posted a converter tool for the new includes in Graphical user interface... section of the forum :(


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

#20 ·  Posted (edited)

If you running the latest beta or release candidate then GUIConstants.au3 is not used for all constants, please check the styles section in the help file to see what include the constant belongs to.

Ps. I just posted a converter tool for the new includes in Graphical user interface... section of the forum :)

I see ....

I found your tool. But I cant understand how it supposed to work .

Iam not sure if I had used it right but I put in first my Script when asked me for the script to be fixed and then Browse The folder " GUIConstants.au3 ". After that , your Msgbox said that there were 3 includes added. I checked my script and there were really 3 new includes added :

#include <WindowsConstants.au3>

#include <GUIConstantsEx.au3>

#include <ButtonConstants.au3>

However, the problem moved to another line which another new pic feature as well.

Did I used you too lin wrong way ? or is it that your tool needs to be updated ? or ?

Thanx for you help.

.

Edited by hussert

Share this post


Link to post
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
Sign in to follow this  
Followers 0