# 3.1.1++

## Recommended Posts

Thank you for the zip

AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass.

##### Share on other sites

14th April 2005 - v3.1.1.6 (unstable) COM19 merge

Fixed :    Reference leaks in Object Enumerator.

Fixed :    Object reference not released in ObjGet().

Fixed :    Object references not being released in FOR..IN loops.

<{POST_SNAPBACK}>

Thanks Devs.,

Thank you, SvenP,

Good job.

##### Share on other sites

$IExplorerPath = @ProgramFilesDir & '\Internet Explorer\iexplore.exe'$WebSiteURL = 'http://www.hiddensoft.com'
Run($IExplorerPath & ' ' &$WebSiteURL)
$hWnd = WinGetHandle("AutoIt Script Home Page","") Msgbox(0,"",WinGetClassName($hWnd) )
$oExcel = ObjGet("",WinGetClassName($hWnd)); Get an existing Excel Object

if @error then
Msgbox (0,"InternetExplorerFileTest","Error Getting an active Internet explorer Object. Error code: " & hex(@error,8))
exit
endif

Exit

Func WinGetClassName($hWnd)$x = DLLCall("user32.dll","int","GetClassName","hwnd",$hWnd,"str","","long",64) If Not @error And$x[0] <> 0 Then Return $x[2] Return "" EndFunc When I try it i have a message error with OBJGET (under Windows XP Pro SP2) #### Share this post ##### Link to post ##### Share on other sites Will SciTe support this version of AutoIt? Or is it better to work with notepad? #### Share this post ##### Link to post ##### Share on other sites Func WinGetClassName($hWnd)
$x = DLLCall("user32.dll","int","GetClassName","hwnd",$hWnd,"str","","long",64)
If Not @error And $x[0] <> 0 Then Return$x[2]
Return ""
EndFunc

When I try it i have a message error with OBJGET (under Windows XP Pro SP2)

<{POST_SNAPBACK}>

This is a Window ClassName you are returning rather than a COM Application ClassName - wrong type of object. The COM ClassName for Internet Explorer is InternetExplorer.Application

There may be a way to interrogate to get this name, but I don't know it. I look in the application specific documentation to find it. You can also scour the registry to find it is you know what you are looking for.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

Automate input type=file (Related)

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

##### Share on other sites

Will SciTe support this version of AutoIt? Or is it better to work with notepad?

<{POST_SNAPBACK}>

it already does. We are in the process to deliver a cohabition between the install official version and the beta version

##### Share on other sites

Will SciTe support this version of AutoIt? Or is it better to work with notepad?

<{POST_SNAPBACK}>

Start/Programs/Autoit3/Scite/Switch definitions

This will start program: C:\Program Files\AutoIt3\SciTe\Defs\UpdateDefs.exe

You will be prompted which definitions to load for all the utility programs like au3check/tidy etc...

In this way you can swap between the definition files for the latest Production and Beta version.

You can also define this per script by using the #Compiler directives.

You can defined which version of AUtoit3 or Aut2exe to run and which au3check definition to use. put these at the start of your program:

#Compiler_AUTOIT3=c:\Program file\AutoIt3\Au3beta\AutoIt3.exe      ;Override the default Interpreter version.

#Compiler_AUT2EXE= #Compiler_AUT2EXE=C:\Program Files\AutoIt3\beta\Aut2Exe\aut2exe.exe    ;Override the default compiler with this version.

;AU3CHECK settings

#Compiler_Run_AU3Check=y        ;Run au3check before compilation

#Compiler_AU3Check_Dat=C:\Program Files\AutoIt3\SciTe\Defs\unstable\Au3Check\au3check.dat  ;Override the default au3check definition

Now when F5 or F7 is pressed it will always use these specific program(s) and definition file for au3check.

Or is it better to work with notepad?

<{POST_SNAPBACK}>

Why would you need to goto Notepad ? What is the problem even when SciTE doesn't have the latest definitions loaded ?

The only thing that could go "wrong" is that the syntax color is wrong and when running(F5) or Compiling(F7) the au3check gives a syntax error, but you can always select the option to "Continue Anyway".... right ???

Edited by JdeB

Live for the present,
Dream of the future,
Learn from the past.

##### Share on other sites

15th April 2005 - v3.1.1.7 (beta) COM20 merge (Thanks Sven/Valik)

Added : +=, -=, *=, /= operators (Thanks Tylo)

Added : Keywords 'false' and 'true'. Currently only supported in function arguments. In other assignments they will be converted to integers.

##### Share on other sites

Added : +=, -=, *=, /= operators (Thanks Tylo)

Added : Keywords 'false' and 'true'. Currently only supported in function arguments. In other assignments they will be converted to integers.

Added : Full boolean support.

Ouch, I feel this can bring new discussion wave Interesting anyway!

##### Share on other sites

Added :    +=, -=, *=, /= operators (Thanks Tylo)

<{POST_SNAPBACK}>

hmmm..

Are these here to stay ie do we need to build support in au3check and Tidy ?

Currently Tidy will break this syntax because it will add a space between the 2 operators.

Live for the present,
Dream of the future,
Learn from the past.

##### Share on other sites

Ouch, I feel this can bring new discussion wave  Interesting anyway!

Hehe, I was thinking the same thing.

AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass.

##### Share on other sites

hmmm..

Are these here to stay ie do we need to build support in au3check and Tidy ?

Currently Tidy will break this syntax because it will add a space between the 2 operators.

<{POST_SNAPBACK}>

I would say this one is Jon's call. IIRC, he's rejected the idea of any new operators including these and ++/--. Although, I don't have a problem with them personally.

##### Share on other sites

I would say this one is Jon's call.  IIRC, he's rejected the idea of any new operators including these and ++/--.  Although, I don't have a problem with them personally.

<{POST_SNAPBACK}>

Agreed. It was so simple to add these that I just did it. In fact, Jon himself (I believe) implemented the += -= *= /= operators in the variant_datatype, so it was just a matter of calling them.

I submitted another version to jpm (even simpler, actually) that allows to write the operators with white space between them: $var + = 1. That would solve the Tidy problem. Would that be better? In either case, I will have to update Au3Check, and also to add the new True, False keywords. BTW: Also the operator &= was added in this version, which append a string to a variable.$a = "Hello, " & "World"

; Equals:

$b = "Hello, "$b &= "World"

blub

##### Share on other sites

I submitted another version to jpm (even simpler, actually) that allows to write the operators with white space between them: \$var + = 1. That would solve the Tidy problem. Would that be better? In either case, I will have to update Au3Check, and also to add the new True, False keywords.

<{POST_SNAPBACK}>

Supporting these in Tidy is not a big deal .. its just a matter of adding these "double operators" to the current list i have...

I will make the update including the &= operator and assume it stays... (doesn't harm when they are in, even when they are not staying)..

Live for the present,
Dream of the future,
Learn from the past.

##### Share on other sites

On QuickSort, I got about 12% speed increase simply by using the new += and -= operators

blub

##### Share on other sites

On QuickSort, I got about 12% speed increase simply by using the new += and -= operators

<{POST_SNAPBACK}>

They are also faster! That's great news.

##### Share on other sites

You mean C-style operator shortcuts work in Autoit?!

Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

##### Share on other sites

You mean C-style operator shortcuts work in Autoit?!

<{POST_SNAPBACK}>

Yes, at least the common one no AND or OR but +,-,*, /

& is used for concatenation of string and work too.

Thanks to Tylo

##### Share on other sites

JP, any chance at getting the full doc source uploaded for each build when you have a chance? I build my Au3Check.dat file from that and trying to keep up with the changed doc's in your merge uploads is difficult.

##### Share on other sites
This topic is now closed to further replies.

• ### Recently Browsing   0 members

×

• Wiki

• Back

• #### Beta

• Git
• FAQ
• Our Picks
×
• Create New...