Search found 2989 matches

by Helgef
18 Jun 2018, 03:47
Forum: Scripts and Functions
Topic: [Library] TAB v0.1 (Preview) - Add Functionality to the Tab Control
Replies: 2
Views: 144

Re: [Library] TAB v0.1 (Preview) - Add Functionality to the Tab Control

Really nice work :shock: :bravo: .

I tried most of the examples, seems to work very well, excellent job. Great documentation too.

Thank you very much for sharing, cheers.
by Helgef
18 Jun 2018, 03:39
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 411
Views: 70347

Re: Suggestions on documentation improvements

nevertheless the command is still available in V2
I get call to non-existent function,
by Helgef
17 Jun 2018, 11:18
Forum: Ask For Help
Topic: FileCopy like in DOS: copy file1 + file2 mergedfile Topic is solved
Replies: 7
Views: 107

Re: FileCopy like in DOS: copy file1 + file2 mergedfile Topic is solved

VarSetCapacity (vData, 0) is fine, do it before the subroutine returns, you need to consider it in two places. If you make a function, it is not needed, since all local (non-static) variables will be made blank, equivalent to x := "" , when the function returns. There is a differe...
by Helgef
17 Jun 2018, 09:51
Forum: Ask For Help
Topic: FileCopy like in DOS: copy file1 + file2 mergedfile Topic is solved
Replies: 7
Views: 107

Re: FileCopy like in DOS: copy file1 + file2 mergedfile Topic is solved

@ newbieforever, you should consider jeeswg's code an example for you to rewrite as a (more general) function. If you are not interested, at least you should do vData := "".

Cheers.
by Helgef
17 Jun 2018, 06:09
Forum: Ask For Help
Topic: filter non English lines Topic is solved
Replies: 8
Views: 178

Re: filter non English lines Topic is solved

0x0409 is english (US).
does that mean that he would only be using English characters?
Not really, even if the system language is english, the user may set his keyboard layout to any language, eg, swedish, and he may join any non-english named network.

Cheers.
by Helgef
16 Jun 2018, 11:17
Forum: Offtopic
Topic: your personal AutoHotkey style guide
Replies: 56
Views: 2017

Re: your personal AutoHotkey style guide

I looked at the example, if you use (ptrr) you get Func, if you use (ptr) you get Closure, can you explain? dllcall 0, ptr causes a variable named ptr to be created, as we have seen, hence, the nested function becomes a closure when it referres to it. This is the correct behaviour of course, interp...
by Helgef
16 Jun 2018, 04:44
Forum: Ask For Help
Topic: solve simple math function inside a variable Topic is solved
Replies: 3
Views: 86

Re: solve simple math function inside a variable Topic is solved

a:=1+1 Cheers. Edit, maybe you mean something like this, a=1+1 ans:=a msgbox % eval(ans) /* Evalúa una expresión en una cadena. Observaciones: Las constantes deben especificarse en mayúscula. Se aceptan numeros muy grandes. Referencia: https://www.w3schools.com/jsref/jsref_obj_math.asp Ejemplo: Msg...
by Helgef
16 Jun 2018, 03:38
Forum: Ask For Help
Topic: filter non English lines Topic is solved
Replies: 8
Views: 178

Re: filter non English lines Topic is solved

my user in Sweden ascii character codes 0 - 127 The Swedish alphabet is the writing system used for the Swedish language. The 29 letters of this alphabet are the modern 26-letter basic Latin alphabet ('A' through 'Z') plus 'Å', 'Ä', and 'Ö' Unicode 197 Maybe this is more appropriate, if the users u...
by Helgef
16 Jun 2018, 02:38
Forum: Offtopic
Topic: your personal AutoHotkey style guide
Replies: 56
Views: 2017

Re: your personal AutoHotkey style guide

We have an input (how DllCall is used), and an output ('Closure' is reported). I'm not sure what you mean. The point is that writing ptr in the dllcall only has the intention of specifying the type of the argument following it, the purpose is not to create a free variable. Good day. [You] imply tha...
by Helgef
15 Jun 2018, 16:34
Forum: Offtopic
Topic: your personal AutoHotkey style guide
Replies: 56
Views: 2017

Re: your personal AutoHotkey style guide

jeeswg , I edit my example code. It reports 'Closure'. Yes, because the quotes where omitted for the type parameter of the dllcall. Do you not find the first of these examples clearer? No. I prefer that they could be omitted If they where reserved for declaring types, sure but then we would also om...
by Helgef
15 Jun 2018, 11:21
Forum: Offtopic
Topic: your personal AutoHotkey style guide
Replies: 56
Views: 2017

Re: your personal AutoHotkey style guide

DllCall("user32\MessageBox", Ptr,0, Str,"text", Str,"title", UInt,4) ;most readable IMO Easiest on the eyes, yes, and due to syntax highlighting. The common case for dllcall parameters are hard coded types, for example "str" , and variables for the arguments,...
by Helgef
14 Jun 2018, 14:25
Forum: Ask For Help
Topic: filter non English lines Topic is solved
Replies: 8
Views: 178

Re: filter non English lines Topic is solved

:thumbup:
I edit it, I added trim.

Cheers.

Edit: It doesn't work :thumbdown:
Edit2: I think it works now :thumbup: .
by Helgef
14 Jun 2018, 12:46
Forum: Ask For Help
Topic: filter non English lines Topic is solved
Replies: 8
Views: 178

Re: filter non English lines Topic is solved

Hello, maybe,

Code: [Select all]GeSHi © Codebox Plus

filterNonEnglish(str){
return regexreplace(trim(regexreplace(str, "`nm)^.*[^[:ascii:]].*$"), "`n"), "\R{2,}", "`n")
}
by Helgef
14 Jun 2018, 12:20
Forum: Offtopic
Topic: your personal AutoHotkey style guide
Replies: 56
Views: 2017

Re: your personal AutoHotkey style guide

I do not mean it is unreadable as in, it cannot be read, I mean mostly that it makes the code harder to understand.

I see no gain from your grouping of variables, rather the contrary. Pairing on individual lines is much better, imo.


Cheers.
by Helgef
14 Jun 2018, 12:12
Forum: Forum Issues
Topic: +1 feature on the forum
Replies: 28
Views: 513

Re: +1 feature on the forum

I appreciate the good intentions, and if used properly, as described by Exaskryz , certainly no harm would come, and I'd probably use it too. However, I believe in the more pessimistic view of gregster . To me, this has already been proven by bad experiences on the forum related to post count statis...
by Helgef
13 Jun 2018, 14:35
Forum: Forum Issues
Topic: +1 feature on the forum
Replies: 28
Views: 513

Re: +1 feature on the forum

-1. I very much dislike these kind of statistics, which are often mistaken as a ranking. I vote remove post count instead.

Cheers.
by Helgef
13 Jun 2018, 12:59
Forum: Ask For Help
Topic: RegExMatch AHK v1/v2: DotAll: normally, it does not match newlines
Replies: 3
Views: 62

Re: RegExMatch AHK v1/v2: DotAll: normally, it does not match newlines

Pos will be 0 if there is no match in v2. In v2, outputvar is a match object if there is a match. By default, a dot matches any single character which is not part of a newline (`r`n) sequence, Note, `r`n , not single `n . v2 docs says the same, it is probably not updated, RegEx newline matching def...
by Helgef
13 Jun 2018, 12:51
Forum: Offtopic
Topic: your personal AutoHotkey style guide
Replies: 56
Views: 2017

Re: your personal AutoHotkey style guide

It is unreadable, even in notepad.
Issue example, probably unlikely, but still,

Code: [Select all]GeSHi © Codebox Plus

global str := 'char'
f
f(){
dllcall 'MessageBox', 'ptr', 0, str, 'abcde', 'ptr', 0, 'uint', 0x42
}

Hopefully, this will not be allowed in future v2.
by Helgef
13 Jun 2018, 11:45
Forum: Ask For Help
Topic: AHK v2 Migration. What is the syntax for WinGet ControlList? Topic is solved
Replies: 7
Views: 182

Re: AHK v2 Migration. What is the syntax for WinGet ControlList? Topic is solved

Very good, you are correct of course, we should declare the variable local, unless we really want to overwrite the class.
by Helgef
13 Jun 2018, 11:39
Forum: AutoHotkey v2 Development
Topic: Faulty restoration of super global variables after for loop Topic is solved
Replies: 5
Views: 166

Re: Faulty restoration of super global variables after for loop Topic is solved

Thanks for the updates.

Sorry for the confusing examples.
id rewrite it tbh:
yes, that is better.

Cheers.

Go to advanced search