Jump to content

Recommended Posts

Posted (edited)
  On 6/23/2013 at 6:19 AM, SirDarknight1200 said:

Sorry but it doesn't work 

>"H:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Tonmoy\GUI_err.au3"    
C:\Tonmoy\GUI_err.au3 (27) : ==> Variable used without being declared.:
$hRichEdit = _GUICtrlRichEdit_Create($hGUI, "", 16, 144, 409, 153, BitOR($ES_MULTILINE, $ES_READONLY, $WS_VSCROLL))
$hRichEdit = _GUICtrlRichEdit_Create($hGUI, "", 16, 144, 409, 153, BitOR($ES_MULTILINE, $ES_READONLY, ^ ERROR
>Exit code: 1    Time: 0.333

If you copy and paste those variable(s) in the help file it will display what includes to add. The error is clear that $WS_VSCROLL isn't defined anywhere. Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

  On 6/23/2013 at 8:37 AM, guinness said:

If you copy and paste those variable(s) in the help file it will display what includes to add. The error is clear that $WS_VSCROLL isn't defined anywhere.

 

excuse me guinness,

 I tryed to search  $WS_VSCROLL in the help file without success....

please, how to find the needed "include" in the help?

thanks

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Posted (edited)

Helpfile searched "$WS_VSCROLL"

Found This: GUICtrlCreateEdit

style [optional] Defines the style of the control. See GUI Control Styles Appendix

default ( -1) : $ES_WANTRETURN, $WS_VSCROLL, $WS_HSCROLL, $ES_AUTOVSCROLL, $ES_AUTOHSCROLL
forced styles : $ES_MULTILINE, $WS_TABSTOP only if not $ES_READONLY

Clicked that link, and searched for $WS_VSCROLL

Found This: 

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

At the top of that table, found this:   #include <WindowsConstants.au3>

There's tons of great information in that file. I suggest reading over it.

Edited by Andreu
Posted (edited)

  On 6/23/2013 at 9:31 AM, Pincopanco said:

excuse me guinness,

 I tryed to search  $WS_VSCROLL in the help file without success....

please, how to find the needed "include" in the help?

thanks

What Andreu said, use the search tab instead of index. Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

ok, got it
Thanks Andrew and guinness

bye

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Posted

  On 6/23/2013 at 10:05 AM, Pincopanco said:

ok, got it

Thanks Andrew and guinness

bye

You're welcome.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Wouldn't it be easier, assuming you have the full version of Scite4AutoIt3, to add the line #AutoIt3Wrapper_Add_Constants=y to the top of the script? That way if you have any known constants that need an include added it will add them automatically.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

  Reveal hidden contents

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Posted

I always forget that directive.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
  On 6/23/2013 at 5:11 PM, BrewManNH said:

Wouldn't it be easier, assuming you have the full version of Scite4AutoIt3, to add the line #AutoIt3Wrapper_Add_Constants=y to the top of the script? That way if you have any known constants that need an include added it will add them automatically.

 

No kidding.  That will come in handy.  Thanks.

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