Search found 3426 matches

by Helgef
Today, 10:18
Forum: AutoHotkey v2 Development
Topic: fat function in class method changes var outside itsscope
Replies: 22
Views: 345

Re: fat function in class method changes var outside itsscope

After some thinking, AHK could have a global variable to change this behavior. To change fat-arrows assume mode.
no it couldn't, a directive would work, but please spare us.
by Helgef
Today, 06:14
Forum: AutoHotkey v2 Development
Topic: fat function in class method changes var outside itsscope
Replies: 22
Views: 345

Re: fat function in class method changes var outside itsscope

Read carefully above =) some examples I gave r w/o parenthesis. The point is you shouldn't try random stuff, with or without parenthesis, read the documenation. Honestly, I just cant fathom the reasons why outside-function fat-arrow declarations were made this way with local vars to be global by de...
by Helgef
Today, 05:42
Forum: Ask For Help
Topic: Hotstrings not always fire.
Replies: 5
Views: 114

Re: Hotstrings not always fire.

See inputlevel, eg,

Code: Select all

#inputlevel 1
!w::@
by Helgef
Today, 03:42
Forum: AutoHotkey v2 Development
Topic: fat function in class method changes var outside itsscope
Replies: 22
Views: 345

Re: fat function in class method changes var outside itsscope

And I cant get it why method's vars should be global by default for fat-arrow, a method relying upon a global var is a bad design to say the least. static m := ()=> is not a method definition more than static m := func('f') , it's a class var assignment. The RHS function will exist in the global fu...
by Helgef
Yesterday, 13:01
Forum: Ask For Help
Topic: Hotstrings not always fire.
Replies: 5
Views: 114

Re: Hotstrings not always fire.

You can disable smileys in the post editor: :?*:

Edit, Hello jeeswg :wave:
by Helgef
Yesterday, 09:41
Forum: Ask For Help
Topic: AutoHotkeyH vs AutoHotkeyL vs AutoHotkey2
Replies: 18
Views: 537

Re: AutoHotkeyH vs AutoHotkeyL vs AutoHotkey2

I do not think AHK v2 GUI API requires any knowledge about (even the existence of) oop , just basic object syntax. Most importantly, it is one syntax, compare v2, myGui.addButton("w200", "Click Me") vs v1, gui %myGui%: add, button, w200, Click Me or gui % myGui ": add", % "button", % "w200", % "Clic...
by Helgef
18 Jan 2019, 15:29
Forum: Scripts and Functions
Topic: [v1] v2's CallbackCreate function for AHK v1.
Replies: 4
Views: 475

Re: [v1] v2's CallbackCreate function for AHK v1.

Also, I don't know if, passing a func object, I need to take account of the 'this' hidden param for the ParamCount parameter (ParamCount + 1?) For a method which has a hidden this parameter, that counts as one mandatory parameter. Assuming that the caller passes exactly 4 parameters, you do it righ...
by Helgef
18 Jan 2019, 12:31
Forum: Ask For Help
Topic: Why can't the parameter of "LV_GetText" be "Clipboard"?
Replies: 7
Views: 152

Re: Why can't the parameter of "LV_GetText" be "Clipboard"?

Byref (udf) has this limitation documented, Outputvar has not, as far as I know. If no one can point to anything in the docs suggesting this is a known limitation, this should be in bug reports.
by Helgef
15 Jan 2019, 02:10
Forum: Ask For Help
Topic: an Array of "ClipboardAll" contents Topic is solved
Replies: 32
Views: 690

Re: an Array of "ClipboardAll" contents Topic is solved

It would seem logical a ? b, for an if-statement with no else alternative. It's already available, a && b . It seems like the best thing to do would be to explicitly state in the help that *3* arguments must be specified. No, any invalid expression should yield a load time error. Cheers. Edit, sorr...
by Helgef
14 Jan 2019, 23:23
Forum: Ask For Help
Topic: an Array of "ClipboardAll" contents Topic is solved
Replies: 32
Views: 690

Re: an Array of "ClipboardAll" contents Topic is solved

Where in the documentation do you find the binary operator op1 ? op2 (or the unary operator = op1 ;) )?

Cheers.
by Helgef
14 Jan 2019, 07:21
Forum: Ask For Help
Topic: an Array of "ClipboardAll" contents Topic is solved
Replies: 32
Views: 690

Re: an Array of "ClipboardAll" contents Topic is solved

incorrect use of the ternary operator
It is invalid, it currently yields silent failure in v1, in v2 you get a load time error :thumbup: .
by Helgef
13 Jan 2019, 08:32
Forum: Ask For Help
Topic: Continuous ImageSearch and click script
Replies: 7
Views: 172

Re: Continuous ImageSearch and click script

Your code calls settimer incorrectly, and it sleeps in the mgas-routine, it shouldn't since that will halt the loop, defeating the purpose of using the timer. It will also search for mgas.png on every iteration even if it has been found in a previous one. The following will search for all images, bu...
by Helgef
13 Jan 2019, 07:29
Forum: Ask For Help
Topic: How to setup a script to post to forums
Replies: 3
Views: 132

Re: How to setup a script to post to forums

Automating the forum is likely violating the the forum rules.
by Helgef
13 Jan 2019, 05:33
Forum: Ask For Help
Topic: Passing structure to function
Replies: 36
Views: 1100

Re: Passing structure to function

The upper bits of "int64", c1 | (s << 16) | (c2 << 32) will be zero, but that is not the point, the point is that the size of the structure is not,
8, 16, 32, or 64 bits
hence it must be,
passed as a pointer to memory allocated by the caller.
Src .

Cheers.
by Helgef
13 Jan 2019, 05:16
Forum: Ask For Help
Topic: Passing structure to function
Replies: 36
Views: 1100

Re: Passing structure to function

No the size is 48 bits.
by Helgef
13 Jan 2019, 03:40
Forum: AutoHotkey v2 Development
Topic: DllCall description Topic is solved
Replies: 24
Views: 859

Re: DllCall description Topic is solved

@ vvhitevvizard
Ahk variables uses only two number types, int64 and double, it's the same on all builds.
by Helgef
13 Jan 2019, 00:43
Forum: Ask For Help
Topic: Continuous ImageSearch and click script
Replies: 7
Views: 172

Re: Continuous ImageSearch and click script

The script continues after the settimer command. When the specified time has passed, the script jumps to the timer subroutine. After the subroutine finishes, the script jump backs to where it were when it jumped to the subroutine.
by Helgef
13 Jan 2019, 00:34
Forum: Ask For Help
Topic: Raw TRUE/FALSE test on an object Topic is solved
Replies: 3
Views: 110

Re: Raw TRUE/FALSE test on an object Topic is solved

It is also implied by,
expressions wrote:Boolean values: When an expression is required to evaluate to true or false (such as an IF-statement), a blank or zero result is considered false and all other results are considered true
Cheers.
by Helgef
12 Jan 2019, 12:42
Forum: Ask For Help
Topic: Custom message numbers (OnMessage)
Replies: 2
Views: 75

Re: Custom message numbers (OnMessage)

You can do that, any application can send you that message which can cause unwanted effects, but you won't receive it if it is not sent to any of your windows, so its not very likely and not really your responsibility.

Also, sendmessage is built in.

Go to advanced search