Sign in to follow this  
Followers 0
zackrspv

[SOLVED] BETA: Confused Variables

5 posts in this topic

#1 ·  Posted (edited)

Here's the error from SCITE:

>Running AU3Check (1.54.13.0)  from:D:\Program Files (x86)\AutoIt3\Beta
D:\Documents and Settings\Phillip\Desktop\Sources\search.au3(53,74) : WARNING: $WS_SYSMENU: possibly used before declaration.
$Form1 = GUICreate("BTC Information Tool", 1027, 600, -1, -1, $WS_SYSMENU)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Documents and Settings\Phillip\Desktop\Sources\search.au3(74,65) : WARNING: $PBS_SMOOTH: possibly used before declaration.
$ieprogress = GUICtrlCreateProgress(307, 13, 99, 20, $PBS_SMOOTH)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Documents and Settings\Phillip\Desktop\Sources\search.au3(82,70) : WARNING: $LBS_NOTIFY: possibly used before declaration.
$listview2 = GUICtrlCreateList("", 0, 40, 410, 552, BitOR($LBS_NOTIFY,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Documents and Settings\Phillip\Desktop\Sources\search.au3(82,83) : WARNING: $WS_VSCROLL: possibly used before declaration.
$listview2 = GUICtrlCreateList("", 0, 40, 410, 552, BitOR($LBS_NOTIFY, $WS_VSCROLL,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Documents and Settings\Phillip\Desktop\Sources\search.au3(82,97) : WARNING: $ES_READONLY: possibly used before declaration.
$listview2 = GUICtrlCreateList("", 0, 40, 410, 552, BitOR($LBS_NOTIFY, $WS_VSCROLL, $ES_READONLY)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Documents and Settings\Phillip\Desktop\Sources\search.au3(186,73) : WARNING: $ES_CENTER: possibly used before declaration.
$QuoteSymbol = GUICtrlCreateInput("GOOG", 879, 419, 121, 21, ($ES_CENTER)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Documents and Settings\Phillip\Desktop\Sources\search.au3(188,85) : WARNING: $BS_DEFPUSHBUTTON: possibly used before declaration.
$quoteButton = GUICtrlCreateButton("Get Quote", 889, 520, 100, 19, $BS_DEFPUSHBUTTON)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Documents and Settings\Phillip\Desktop\Sources\search.au3(53,74) : ERROR: $WS_SYSMENU: undeclared global variable.
$Form1 = GUICreate("BTC Information Tool", 1027, 600, -1, -1, $WS_SYSMENU)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
D:\Documents and Settings\Phillip\Desktop\Sources\search.au3 - 1 error(s), 7 warning(s)

But, um, that only happens on the beta check, on the production check it works just fine.

And yes:

#include <INet.au3>
#include <GUIConstants.au3>
#include <IE.au3>
#include <Array.au3>
#include <file.au3>

So, um, why in the world is this giving me the error when the $'s have already been defined by GUIConstants.au3?

Edited by zackrspv

-_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë 맧ëñ§ë øƒ !ïƒë.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Many things are changed in the GUI. THe Helpfile expalins where this variable is located now:

Common Styles Value Description

#include <WindowsConstants.au3>

Default/forced for GUI creation $GUI_SS_DEFAULT_GUI see GUICreate function.

$WS_BORDER 0x00800000 Creates a window that has a thin-line border.

$WS_POPUP 0x80000000 Creates a pop-up window. This style cannot be used with the WS_CHILD style.

$WS_CAPTION 0x00C00000 Creates a window that has a title bar (includes the WS_BORDER style)

$WS_CLIPCHILDREN 0x02000000 Excludes the area occupied by child windows when drawing occurs within the parent window. This style is used when creating the parent window.

$WS_CLIPSIBLINGS 0x04000000 Clips child windows relative to each other; that is, when a particular child window receives a WM_PAINT message, the WS_CLIPSIBLINGS style clips all other overlapping child windows out of the region of the child window to be updated. If WS_CLIPSIBLINGS is not specified and child windows overlap, it is possible, when drawing within the client area of a child window, to draw within the client area of a neighboring child window.

$WS_DISABLED 0x08000000 Creates a window that is initially disabled.

$WS_DLGFRAME 0x00400000 Creates a window that has a border of a style typically used with dialog boxes.

$WS_HSCROLL 0x00100000 Creates a window that has a horizontal scroll bar.

$WS_MAXIMIZE 0x01000000 Creates a window that is initially maximized.

$WS_MAXIMIZEBOX 0x00010000 Creates a window that has a maximize button. Cannot be combined with the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified.

$WS_MINIMIZE 0x20000000 Creates a window that is initially minimized.

$WS_MINIMIZEBOX 0x00020000 Creates a window that has a minimize button. Cannot be combined with the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified.

$WS_OVERLAPPED 0x00000000 Creates an overlapped window. An overlapped window has a title bar and a border. Same as the WS_TILED style

$WS_OVERLAPPEDWINDOW 0x00CF0000 Creates an overlapped window with the WS_OVERLAPPED, WS_CAPTION, WS_SYSMENU, WS_THICKFRAME, WS_MINIMIZEBOX, and WS_MAXIMIZEBOX styles. Same as the WS_TILEDWINDOW style.

$WS_POPUPWINDOW 0x80880000 Creates a pop-up window with WS_BORDER, WS_POPUP, and WS_SYSMENU styles. The WS_CAPTION and WS_POPUPWINDOW styles must be combined to make the window menu visible.

$WS_SIZEBOX 0x00040000 Creates a window that has a sizing border. Same as the WS_THICKFRAME style.

$WS_SYSMENU 0x00080000 Creates a window that has a window menu on its title bar. The WS_CAPTION style must also be specified.

$WS_THICKFRAME 0x00040000 Creates a window that has a sizing border. Same as the WS_SIZEBOX style

$WS_VSCROLL 0x00200000 Creates a window that has a vertical scroll bar.

$WS_VISIBLE 0x10000000 Creates a window that is initially visible.

$WS_CHILD 0x40000000 Creates a child window. A window with this style cannot have a menu bar. This style cannot be used with the WS_POPUP style.

$WS_GROUP 0x00020000 Specifies the first control of a group of controls. The group consists of this first control and all controls defined after it, up to the next control with the WS_GROUP style.

$WS_TABSTOP 0x00010000 Turns the control into a tab stop, which enables the user to select the control by tabbing through the controls in a dialog box.

$DS_MODALFRAME 0x00000080 Creates a dialog box with a modal dialog-box frame that can be combined with a title bar and window menu by specifying the WS_CAPTION and WS_SYSMENU styles.

$DS_SETFOREGROUND 0x00000200 This style is useful for modal dialog boxes that require immediate attention from the user regardless of whether the owner window is the foreground window.

$DS_CONTEXTHELP 0x00002000 Includes a question mark in the title bar of the dialog box. Cannot be used with the WS_MAXIMIZEBOX or WS_MINIMIZEBOX styles. Same as WS_EX_CONTEXTHELP extended style.

You need to check the others too.

Edited by Jos

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

Share this post


Link to post
Share on other sites

Hi,

try using organize includes from my sig which does the job for you.

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Hi,

try using organize includes from my sig which does the job for you.

Mega

Sweet! That worked pretty good; i checked the helpfile, but didn't see the changes the previous poster mentioned haha, perhaps just looked in the wrong spot.

But, with yours, it worked perfectly, thanks!

So now: haha:

#include<ButtonConstants.au3>
#include<EditConstants.au3>
#include<GUIConstantsEx.au3>
#include<ListBoxConstants.au3>
#include<ProgressConstants.au3>
#include<WindowsConstants.au3>
#include <INet.au3>
#include <IE.au3>
#include <Array.au3>
#include <file.au3>

It's more haha, but hey, at least it works :)


-_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë 맧ëñ§ë øƒ !ïƒë.

Share this post


Link to post
Share on other sites

Hi,

nice. Besides, there is no problem having many includes. Use obfuscator settings to strip unused functions and variables.

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

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