AutoHotkey Community

It is currently May 27th, 2012, 9:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: October 14th, 2011, 3:39 pm 
Offline

Joined: March 10th, 2011, 7:17 pm
Posts: 374
thumbsup


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 14th, 2011, 9:21 pm 
Offline
User avatar

Joined: May 28th, 2011, 9:03 am
Posts: 466
Location: Germany
Quote:
Super-global variables [v1.1.05+]: If a global declaration appears outside of any function, it takes effect for all functions by default. This avoids the need to redeclare the variable in each function. However, if a function parameter or local variable with the same name is declared, it takes precedence over the global variable. Variables created by the class keyword are also super-global.

So why, if the global "keyword" is parsed outside functions, we shouldn't use it to declare "Classes" as super-global?
Otherwise the documentation should say
Quote:
Super-global variables [v1.1.05+]If a global declaration appears outside of any function, it takes effect for all functions by default. This avoids the need to redeclare the variable in each function. However, if a function parameter or local variable with the same name is declared, it takes precedence over the global variable. By constrast, variables created by the class keyword are always super-global.
and would be somewhat more "AHK" like. :cry:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 16th, 2011, 3:39 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
v1.1.05.01:
  • Fixed class declarations to allow directives such as #Include.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 19th, 2011, 11:39 am 
Offline
User avatar

Joined: April 4th, 2009, 8:19 pm
Posts: 1143
Location: Croatia
Lexikos wrote:
v1.1.05.01:
  • Fixed class declarations to allow directives such as #Include.
I like this very much! Now we can have
Code:
class MainClass {
   ; 100 lines of code here...
   #Include %A_ScriptDir%\NestedClass1.ahk
   #Include %A_ScriptDir%\NestedClass2.ahk
}
instead of
Code:
class MainClass {
   ; 100 lines of code here...
    class NestedClass1 {
        ; 1000 lines of code here...
    }
    class NestedClass2 {
        ; 1000 lines of code here...
    }
}
Easier to read, maintain - Thank you!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2011, 5:57 pm 
Offline

Joined: December 24th, 2008, 3:25 am
Posts: 1401
Location: :noitacoL
Small request.

Would you consider adding the 'extras' folder, from the AHK_Basic installer package. It has a lot of scripts for editors, like NP++. I have AHK_L installed, and had to download AHK_B for the np++ color/language pack thing.

Figure others may feel the same and understand if you are opposed. Maybe just a seperate link on the download page alltogether, just for the extras folder.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2011, 6:14 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
Lexikos wrote:
Many of them were out-of-date, and some didn't work. I had no interest in maintaining them myself, so I removed them. More up-to-date methods can be found on the forums. There is also SciTE4AutoHotkey.


This is something that should be taken over by the community, if it hasn't been done already. I smell a Wiki project.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2011, 6:36 pm 
jaco0646 wrote:
This is something that should be taken over by the community, if it hasn't been done already. I smell a Wiki project.

See my question / suggestion at http://www.autohotkey.com/forum/post-447716.html#447716


Top
  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2011, 11:08 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
1.1.05.02

Fixed false detection of end-of-file when loading a compiled script in some cases.
Fixed SendInput to automatically release modifier keys when sending special characters or {U+xxxx} (which was broken by v1.1.00.01).
Fixed ComObjConnect to filter out non-dispatch interfaces instead of allowing the script to crash.
Fixed new %VarContainingClassName%().


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 30th, 2011, 7:37 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
1.1.05.03

Fixed Loop ... Until VarContainingObject.

I have also made some minor documentation updates in this release and some more significant ones in the previous release. In particular, label syntax and usage is now documented.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 30th, 2011, 5:09 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
The new labels page looks great.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 30th, 2011, 5:54 pm 
Offline

Joined: October 11th, 2010, 6:15 pm
Posts: 1211
Location: Right behind you
Quote:
Fixed inability of Try/Catch to catch COM errors.
Sweet! Dunno if I missed it but I've been looking for this feature for a long time.
Greate job! :wink:

_________________
COM Tutorial for Webpages
COM Tutorial for Excel


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2011, 3:46 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
1.1.05.04

Fixed: Selected sub-command of ControlGet was unreliable on x64.
Fixed: CPU was maxed out while waiting if an underlying thread displayed a dialog (and possibly in other cases).

Related bug reports:
[AHK_L 64-bit] ControlGet, OutputVar, Selected... [ERROR]
SetTimer+Common Dialog+WinWait = 100% CPU usage


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 6th, 2011, 1:49 pm 
jaco0646 wrote:
The new labels page looks great.

Indeed it does. Perhaps something similar for 'libraries' as well, I think this will help people just starting out.
I realise there is this http://www.autohotkey.com/docs/Functions.htm#lib but that lacks a general introduction. I had to read and actually try it out before I fully grasped the concept when I started.


Top
  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2011, 1:45 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
1.1.05.05

Fixed continue n misbehaving when an inner loop has no braces.
Fixed RegExMatchObject[Name] to work correctly with duplicate names.
Fixed the installer to write to the correct section of the registry when installing 64-bit.
Fixed the installer to not write Ahk2Exe.exe into the App Paths registry if the compiler is not installed.
Fixed the uninstaller to remove the extra bin files used by the compiler.

Existing users of the 64-bit version should uninstall the old version before running the new version of the installer.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 25th, 2011, 6:31 pm 
jaco0646 wrote:
Lexikos wrote:
Many of them were out-of-date, and some didn't work. I had no interest in maintaining them myself, so I removed them. More up-to-date methods can be found on the forums. There is also SciTE4AutoHotkey.

This is something that should be taken over by the community, if it hasn't been done already. I smell a Wiki project.

Nothing wrong with your sense of smell ;-)
http://www.autohotkey.com/forum/topic80374.html


Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 31 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group