Search found 3777 matches

by Helgef
Yesterday, 04:02
Forum: Ask For Help
Topic: Class Fonctions
Replies: 7
Views: 367

Re: Class Fonctions

Perhaps you will have more luck with one of the :arrow: tutorials . I don't think I can help you unless you make a more specific question, but I think you should start a new thread for that anyways. swagfag , the op specifically asked about single and double underscore prefixed method names, hence w...
by Helgef
15 Jul 2019, 01:06
Forum: Ask For Help
Topic: 1::FunctionSYS_Function()
Replies: 3
Views: 265

Re: 1::FunctionSYS_Function()

Introduction and Simple Examples wrote: if a hotkey needs to execute only a single line, that line can be listed to the right of the double-colon.
Source.
Cheers.
by Helgef
14 Jul 2019, 11:22
Forum: AHK Studio
Topic: Is AHK Studio dead?
Replies: 1
Views: 271

Re: Is AHK Studio dead?

The latest commit was made 15 days ago. See :arrow: github.

Cheers.
by Helgef
12 Jul 2019, 11:45
Forum: Ask For Help
Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
Replies: 9
Views: 307

Re: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved

Dllcall will convert your ANSI string to Unicode when you specify wstr, it should work as is.
by Helgef
12 Jul 2019, 10:43
Forum: Ask For Help
Topic: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved
Replies: 9
Views: 307

Re: FileSelectFile sometimes ignores my Rootdir (ahk2exe or 32/64bit issue?) Topic is solved

In the first post, the code should be something like this, SetGUID(rfid, "{18989B1D-99B5-455B-841C-AB7C74E4DDFC}") ; function documentation: ; - https://docs.microsoft.com/en-us/windows/win32/api/shlobj_core/nf-shlobj_core-shgetknownfolderpath pStr := 0 if ret := DllCall("Shell32\SHGetKnownFolderPat...
by Helgef
12 Jul 2019, 01:48
Forum: Ask For Help
Topic: Class Fonctions
Replies: 7
Views: 367

Re: Class Fonctions

When you define a method, autohotkey will add one extra parameter to it, called this , example, if you write, class myClass { myMethod(Param1, Param2) { } } then, when the script is loaded, AHK will turn it into class myClass { myMethod(this, Param1, Param2) { } } Then, when you call the method, aut...
by Helgef
11 Jul 2019, 12:42
Forum: Ask For Help
Topic: Detect if a Script File is used by #include? Topic is solved
Replies: 5
Views: 194

Re: Detect if a Script File is used by #include? Topic is solved

An example,

LibFile.ahk:

Code: Select all

if (!A_IsCompiled && A_LineFile == A_ScriptFullPath) {
	msgbox % "This file was not #included."
	ExitApp
}
msgbox % "Hello from #included file"
Script file:

Code: Select all

#include LibFile.ahk
Cheers.
by Helgef
11 Jul 2019, 10:34
Forum: Ask For Help
Topic: Detect if a Script File is used by #include? Topic is solved
Replies: 5
Views: 194

Re: Detect if a Script File is used by #include? Topic is solved

A_LineFile wrote: The full path and name of the file to which A_LineNumber belongs, which will be the same as A_ScriptFullPath unless the line belongs to one of a non-compiled script's #Include files.
Also see, a_iscompiled.
Cheers.
by Helgef
11 Jul 2019, 07:25
Forum: Wish List
Topic: Loop, Parse, Var, CSV
Replies: 31
Views: 1301

Re: Loop, Parse, Var, CSV

Is it not enough to give the opportunity to choose between a maximum of 5 or 10 different field separators?
Your suggestion it is still potentially breaking old scripts, less useful, less readable, and would require more work on the source code and the documentation.

Cheers.
by Helgef
11 Jul 2019, 06:04
Forum: Ask For Help
Topic: Class Fonctions
Replies: 7
Views: 367

Re: Class Fonctions

They have no special meaning to the program. A few reserved method names start with __ , these methods have special meaning but not due the __ . See meta functions. Also see _newenum . Sometimes script authors prefix underscores to indicate that a method is intended to be private, it is only a namin...
by Helgef
10 Jul 2019, 13:24
Forum: Ask For Help
Topic: Help with Contains
Replies: 13
Views: 204

Re: Help with Contains

Again, it is,

Code: Select all

if stat in %item%
You might want to add a block for your loop,

Code: Select all

For key, stat in StatsToSearchFor {
		msgbox, %stat%
		if stat in %item%
			msgbox, found!
		else
			Click
}
Cheers
by Helgef
10 Jul 2019, 12:35
Forum: Forum Issues
Topic: phpBB issues
Replies: 61
Views: 3252

Re: phpBB issues

The problem is *not* huge posts, *all* threads are relatively sluggish compared to in the past. Yes the problem is huge posts, there is no reason to maintain the feature huge posts when attachments already exist for that purpose, and other uses. The key right now is simply to investigate the true n...
by Helgef
10 Jul 2019, 12:14
Forum: Ask For Help
Topic: Help with Contains
Replies: 13
Views: 204

Re: Help with Contains

It's supposed to be, if clipboard contains %StatsToSearchFor% msgbox works You can only declare a variable once, so remove one of the lines, global StatsToSearchFor := "1,2,3" ;works fine global StatsToSearchFor := "stat one, stat two, stat three" ; throws error Also note that spaces are considered ...
by Helgef
10 Jul 2019, 12:06
Forum: Forum Issues
Topic: phpBB issues
Replies: 61
Views: 3252

Re: phpBB issues

Again, the problem isn't the forum is slow, the problem is huge posts. Perhaps existing huge code boxes could be auto attached, and future posts simply capped?

Cheers.
by Helgef
10 Jul 2019, 03:28
Forum: Ask For Help
Topic: Is it possible to not reorder the key values of the output associative array when using a For loop? Topic is solved
Replies: 6
Views: 108

Re: Is it possible to not reorder the key values of the output associative array when using a For loop? Topic is solved

The order of keys in an associative arrays are not documented. You can use a linear array of data pairs, example,

Code: Select all

array := [ ["ten", 10], ["twenty", 20], ["thirty", 30] ]
For key, pair in array
    MsgBox % pair[1] . " = " pair[2]
Cheers.
by Helgef
10 Jul 2019, 00:27
Forum: Scripts and Functions
Topic: close windows on script exit/reload
Replies: 8
Views: 516

Re: close windows on script exit/reload

I tested it with v2 but it didn't work :(
It works more generally by allowing you to pass all winclose criteria, so if you want to close by hwnd, you pass 'ahk_id' hwnd.

Cheers.
by Helgef
09 Jul 2019, 14:26
Forum: Ask For Help
Topic: Image Search not working
Replies: 10
Views: 349

Re: Image Search not working

The n in *n should be an integer, for example *2.

Cheers.
by Helgef
09 Jul 2019, 12:40
Forum: Ask For Help
Topic: Image Search not working
Replies: 10
Views: 349

Re: Image Search not working

You need to use a lossless (perfect) image or try the *n option as described in the documentation.
by Helgef
09 Jul 2019, 09:43
Forum: Wish List
Topic: Loop, Parse, Var, CSV
Replies: 31
Views: 1301

Re: Loop, Parse, Var, CSV

I only wanted to change v2. My implemented suggestion is for v2 only, however, it is probably trivial to backport it to v1 and if its breaking potential is considered low enough, it might be (although not by me). As I said, the best chance for v1 to get the desired features, is if there is an easy t...

Go to advanced search