Search found 9434 matches

by lexikos
17 Oct 2013, 17:17
Forum: Ask for Help (v1)
Topic: Name of key that stores reference to object vs name of t obj
Replies: 10
Views: 6713

Re: Name of key that stores reference to object vs name of t

As far as the program is concerned, 2 is just a number. It is only a "name" because you perceive it as such. Objects don't have names in reality, only in your imagination. obj is also not the name of an object; it is the name of a variable containing an object. Humans often assign many names to a th...
by lexikos
17 Oct 2013, 17:10
Forum: Ask for Help (v1)
Topic: [SOLVED] How to call SetClassLongPtr?
Replies: 7
Views: 3927

Re: [SOLVED] How to call SetClassLongPtr?

That is not the solution. As I said, you need to call one or the other depending on A_PtrSize . if A_PtrSize = 8 DllCall("SetClassLong" (A_PtrSize=8 ? "Ptr":""), "Ptr", hEdit, "int", -12, "Ptr", hCursor_NO) It does not depend on whether your OS is 64-bit. It depends on whether the application is 32-...
by lexikos
17 Oct 2013, 17:01
Forum: Announcements
Topic: Permanent Domain
Replies: 183
Views: 157350

Re: Permanent Domain

I don't think either one is/was worth buying.
by lexikos
17 Oct 2013, 05:33
Forum: Forum Issues
Topic: [Forum] Log in cookies (or something)
Replies: 23
Views: 10221

Re: [Forum] Log in cookies (or something)

I also keep getting logged out, and yes, I have logged in multiple times after the board "moved" to ahkscript.org.
by lexikos
17 Oct 2013, 03:10
Forum: Ask for Help (v1)
Topic: Resolved: PostMessage to AHK script from EXE?
Replies: 10
Views: 5967

Re: PostMessage to AHK script from EXE?

As an aside, DllCall("GetLastError") is roughly equivalent to (pseudo-C) SetLastError(A_LastError), GetLastError(), A_LastError = GetLastError(). After DllCall, you should just use A_LastError.
by lexikos
17 Oct 2013, 02:38
Forum: Ask for Help (v1)
Topic: [SOLVED] How to call SetClassLongPtr?
Replies: 7
Views: 3927

Re: How to call SetClassLongPtr?

When building 32-bit applications, SetClassLongPtr is just a macro for SetClassLong. SetClassLongPtr only exists as a function in the 64-bit dll, so you need to call one or the other depending on A_PtrSize . (To be precise, SetClassLongPtrW and SetClassLongPtrA are the functions, but DllCall takes c...
by lexikos
16 Oct 2013, 23:45
Forum: Announcements
Topic: Permanent Domain
Replies: 183
Views: 157350

Re: Permanent Domain

I think that the alternate domains should all redirect to ahkscript.org for consistency. I noticed the other day that wikipedia and slashdot have .com and .net domains which redirect to .org. Perhaps the same should go for http://www.ahkscript.org -> ahkscript.org. (www is totally superfluous, IMO.)...
by lexikos
16 Oct 2013, 21:54
Forum: Bug Reports
Topic: [AHK v2] Missing Ending "%"
Replies: 12
Views: 8259

Re: [AHK v2] Missing Ending "%"

I think one of us might be misinterpreting guest3456's suggestion. I took it (in the context of this thread ) as meaning "require a comma when '?' and ':' are present, if it is to be interpreted as a command rather than a ternary expression". I am not in favour of requiring the comma in all cases. I...
by lexikos
16 Oct 2013, 17:20
Forum: Bug Reports
Topic: [AHK v2] Missing Ending "%"
Replies: 12
Views: 8259

Re: [AHK v2] Missing Ending "%"

That would allow a_cmd,<any text> , not a_cmd <any text> . It would add an obscure rule for when the comma can be omitted. A user should not need to learn about ternary to understand why (for example) their custom MsgBox function doesn't work when they try to display a question and answer. MyMsgBox ...
by lexikos
16 Oct 2013, 05:08
Forum: Ask for Help (v1)
Topic: Objects as functions - question.
Replies: 11
Views: 3845

Re: Objects as functions - question.

One thing to keep in mind is that the meta-functions (__get, __set and __call) are only ever called when the object is invoked with a key which has no associated value within the object. Whether the value is a valid function has no impact on this. What does the documentation mean by 'as the key' in ...
by lexikos
16 Oct 2013, 02:54
Forum: Bug Reports
Topic: [AHK v2] Missing Ending "%"
Replies: 12
Views: 8259

Re: [AHK v2] Missing Ending "%"

I think that there's simply no way to allow both a ? b : c and a_cmd <any text> without making up complicated rules of the sort v2 is meant to abolish. Instead, I think it best to remove the special rule that allows standalone ternary expressions, and instead rely on the rule that any line beginning...
by lexikos
16 Oct 2013, 02:38
Forum: Ask for Help (v1)
Topic: ahk v1.1+ ChangeDisplaySetting function for all OS and res
Replies: 10
Views: 5518

Re: ahk v1.1+ ChangeDisplaySetting function for all OS and r

If you simply change the final 0 to a 4, the resolution will automatically reset when the script exits.

Code: Select all

Return DllCall( "ChangeDisplaySettings", UInt,&dM, UInt,4 )
CDS_FULLSCREEN (4)
The mode is temporary in nature.
Source: ChangeDisplaySettings function (Windows)
by lexikos
16 Oct 2013, 02:24
Forum: Announcements
Topic: Permanent Domain
Replies: 183
Views: 157350

Re: Permanent Domain

business registration serves the purpose of masking my information from the who-is lookup Who-is masking (Privacy Protection/Private Registration) is separate... "Business Registration provides more prominent visibility on your domain name's Whois listing by letting you add a logo, business links, ...
by lexikos
15 Oct 2013, 17:17
Forum: Bug Reports
Topic: [AHK v2] Missing Ending "%"
Replies: 12
Views: 8259

Re: [AHK v2] Missing Ending "%"

m % 1+1 does not produce an error, therefore you are mistaken. ;) The problem is that the parser permits expressions like a ? b : c by doing a simple search for '?' and ':'. Since both appear in your example and 'm' is not a predefined action name, the line is treated as an expression instead of a ...
by lexikos
15 Oct 2013, 16:44
Forum: Announcements
Topic: Permanent Domain
Replies: 183
Views: 157350

Re: Permanent Domain

I googled "godaddy 5 year pricing", and half of the first page of results seemed to be articles recommending people avoid GoDaddy. It seems I can only view their Australian site, with Australian pricing. The bundle of ahkscript.org/com/net/info for 5 years with privacy protection appears to be aroun...
by lexikos
15 Oct 2013, 15:50
Forum: Ask for Help (v1)
Topic: Objects as functions - question.
Replies: 11
Views: 3845

Re: Objects as functions - question.

If obj.func contains an object, it is invoked using obj as the key. In most cases obj.func[obj] does not exist ...
but in this case, obj.func[obj] does exist - it contains "aaa". If you defined a function named "aaa" in your script, obj.func() would call it.
by lexikos
15 Oct 2013, 06:31
Forum: Ask for Help (v1)
Topic: Arrays of arrays and the [,,] operator.
Replies: 1
Views: 2254

Re: Arrays of arrays and the [,,] operator.

If a.b _contains_ an object, shouldn't __Set() be invoked on a.b? No, and I don't have a clue why you would think otherwise. Meta-functions are methods defined by an object's base which can define exactly how the object should act when an unknown key is requested. Source: Objects "b" is not an unkn...
by lexikos
15 Oct 2013, 04:16
Forum: Announcements
Topic: Permanent Domain
Replies: 183
Views: 157350

Re: Permanent Domain

tank wrote:$714.20 .com .net .info bundled with .org for 5 years
121.9 just .org for 5 years
That seems quite expensive for a domain name (or four). Who is the provider? Is it just the domain names plus who-is protection? Is it necessary to register for 5 years up front?
by lexikos
15 Oct 2013, 03:50
Forum: Wish List
Topic: Readable hotkey labels
Replies: 7
Views: 4266

Re: Readable hotkey labels

Maybe more easy to change lexer to accept &&
Sure, but there's no good reason to && over &.
and maybe accept 3 keys is not hard to change
As I said,
More flexibility would be welcome, but would be far from simple to implement. The current hotkey recognizer is already fairly complex.
by lexikos
15 Oct 2013, 03:42
Forum: Bug Reports
Topic: Gui, z-order and static control
Replies: 11
Views: 9089

Re: Gui, z-order and static control

After re-reading your previous post, I think I now understand the issue. The static controls do not appear to be rendered in the correct order. Using GetWindow() to verify the z-order, I confirmed that Static controls appeared to be rendered in an order opposite to the z-order. I have reproduced the...

Go to advanced search