Search found 224 matches

by DaveT1
13 Apr 2024, 07:48
Forum: Scripts and Functions (v1)
Topic: [Class] expect.ahk (rapid unit testing)
Replies: 21
Views: 3335

Re: [Class] expect.ahk (rapid unit testing)

v1 does not have a built-in 'contains' function or that would be better. v1 has if var contains as standard syntax, but this has been removed in v2 - which is a shame imho. I believe most examples have been switched to a perhaps clearer expect.true((1 == 1)) Oh yeah, just seen the new docs on githu...
by DaveT1
11 Apr 2024, 04:05
Forum: Scripts and Functions (v1)
Topic: [Class] expect.ahk (rapid unit testing)
Replies: 21
Views: 3335

Re: [Class] expect.ahk (rapid unit testing)

Hi Chunjee, sorry to bombard you, but I've been pretty focussed on try to get this up and running for my use and in doing so I think I've spotted another issue: There might be a problem with true() (and therefore maybe false() ?)…. consider the example from the docs: expect.true(InStr("String", "S")...
by DaveT1
11 Apr 2024, 03:51
Forum: Scripts and Functions (v1)
Topic: [Class] expect.ahk (rapid unit testing)
Replies: 21
Views: 3335

Re: [Class] expect.ahk (rapid unit testing)

Chunjee wrote:
10 Apr 2024, 11:36
I for sure see an issue with .writeResultsToFile and that's my fault as I don't use that feature much yet. Fix should be on github hopefully today along with some tests as there are currently NONE for that method :o
Perfect, really appreciate you taking a look at my observations :thumbup:
by DaveT1
08 Apr 2024, 07:57
Forum: Scripts and Functions (v1)
Topic: [Class] expect.ahk (rapid unit testing)
Replies: 21
Views: 3335

Re: [Class] expect.ahk (rapid unit testing)

Hi Chunjee, As promised some further observations which I've gone ahead and added these to a copy of export.ahk that I downloaded on 02-Apr-24: class expect { __New() { this.testTotal := 0 this.failTotal := 0 this.successTotal := 0 this.log := [] this.groupVar := "" this.labelVar := "" this.lastlabe...
by DaveT1
07 Apr 2024, 10:14
Forum: Scripts and Functions (v1)
Topic: [Class] expect.ahk (rapid unit testing)
Replies: 21
Views: 3335

Re: [Class] expect.ahk (rapid unit testing)

Hi, sorry it's taken so long to get back to you. Quoting my original post, here are my thoughts (as you point out there are still some documentation fixes, but thought it might be helpful to summarise below): 1) The example given in the documentation for .writeResultsToFile([filepath, fileopen]) cal...
by DaveT1
07 Apr 2024, 09:57
Forum: Scripts and Functions (v1)
Topic: [Class] expect.ahk (rapid unit testing)
Replies: 21
Views: 3335

Re: [Class] expect.ahk (rapid unit testing)

Chunjee wrote:
07 Mar 2024, 14:40
Github repo contains most fixes. Documentation has not been fixed yet.

I noticed a TAP 14 spec which this may not be following completely. I would like to get that looked at as well
Many thans for this :thumbup: comments to follow...
by DaveT1
23 Feb 2024, 00:02
Forum: Scripts and Functions (v1)
Topic: [Class] expect.ahk (rapid unit testing)
Replies: 21
Views: 3335

Re: [Class] expect.ahk (rapid unit testing)

Chunjee wrote:
22 Feb 2024, 11:25
Haven't forgotten. I did confirm some of the issues however. Thank you
:thumbup: :thumbup:
by DaveT1
22 Feb 2024, 07:50
Forum: Scripts and Functions (v1)
Topic: [Class] expect.ahk (rapid unit testing)
Replies: 21
Views: 3335

Re: [Class] expect.ahk (rapid unit testing)

Hi Chunjee, respectfully wondering if you had a moment to look through the Qs I raised above?

Very many thanks :thumbup:
by DaveT1
02 Jan 2024, 04:47
Forum: Scripts and Functions (v1)
Topic: [Class] expect.ahk (rapid unit testing)
Replies: 21
Views: 3335

Re: [Class] expect.ahk (rapid unit testing)

Thanks @Chunjee, looking forward to your feedback when you have time :thumbup:
by DaveT1
12 Dec 2023, 04:25
Forum: Scripts and Functions (v1)
Topic: [Class] expect.ahk (rapid unit testing)
Replies: 21
Views: 3335

Re: [Class] expect.ahk (rapid unit testing)

Hi Chunjee , great class, thanks for providing. I've a few Qs, but am new to classes and units testing and only an average amateur AutoHotkey user - so hopefully these Qs are not foolish!: (I'm using exportv0.1.1.ahk ) 1) The example given in the documentation for .writeResultsToFile([filepath, file...
by DaveT1
19 Aug 2023, 02:40
Forum: Visual Studio Code
Topic: AutoHotkey Plus Plus author here :)
Replies: 16
Views: 3936

Re: AutoHotkey Plus Plus author here :)

Hi @Curdflappers Just wondering if you're around on this forum to help with AHK++? :wave: I see you're active on GitHub, but I don't know how to raise a general question there. Very grateful for the effort youi're putting in with the extension BTW. Maybe you are on the AUTOHOTKEY forums as markwiem...
by DaveT1
16 Aug 2023, 02:47
Forum: Visual Studio Code
Topic: Run & debug v1 and v2 in the same instance of VSCode
Replies: 6
Views: 2909

Re: Run & debug v1 and v2 in the same instance of VSCode

Just an update to all this: It seems that the vscode extension AutoHotkey Plus Plus v5.0.2 (11-Aug-23) by Mark Wiemer now supports both v1 and v2 without changing any settings. :superhappy: I have to say that I've not fully tried this, but a quick test shows good stuff. If it continues to look good ...
by DaveT1
11 Aug 2023, 14:23
Forum: Visual Studio Code
Topic: AutoHotkey Plus Plus author here :)
Replies: 16
Views: 3936

Re: AutoHotkey Plus Plus author here :)

Hi @Curdflappers

Just wondering if you're around on this forum to help with AHK++? :wave:

I see you're active on GitHub, but I don't know how to raise a general question there.

Very grateful for the effort youi're putting in with the extension BTW.
by DaveT1
11 Aug 2023, 05:16
Forum: Visual Studio Code
Topic: AutoHotkey Plus Plus author here :)
Replies: 16
Views: 3936

Re: AutoHotkey Plus Plus author here :)

Hmmm, it seems that Mark has releaed a new (and looks much more capable) version of AutoHotkey plus plus. What happens if you use TAB rather than space to indent your .....;do something lines? Actually for me I've just checked and either TAB or space(s) allow me to fold: if(a = b) >{ <---I get a vsc...
by DaveT1
13 Jul 2023, 05:02
Forum: Ask for Help (v1)
Topic: traditional for loop: for i = a to b (step c) possibilities
Replies: 19
Views: 12960

Re: traditional for loop: for i = a to b (step c) possibilities

x_to_y_step_k(byref i, x, y, k:=1){ return ( i := x+(a_index-1) ) <= y ? ( a_index += k-1, true ) : ( i -= k, false ) } ; example while x_to_y_step_k(i, 5, 17, 3) msgbox(i) You can do nested loops, you should but use different index. Being used to choose my own loop variables, when I first saw A_In...
by DaveT1
26 Jun 2023, 11:53
Forum: Visual Studio Code
Topic: AutoHotkey Plus Plus author here :)
Replies: 16
Views: 3936

Re: AutoHotkey Plus Plus author here :)

OK, I think I've found the solution to the problem I outlined in the previous post. After a lot (and I mean a lot ) of googling, it seems you need to add "offside" to the folding section in ahk.configuration.json , viz: "folding": { "markers": { "start": "^(\\/\\*)?\\s*\\;\\s*region\\b", "end": "^(\...
by DaveT1
13 Jun 2023, 12:05
Forum: Visual Studio Code
Topic: AutoHotkey Plus Plus author here :)
Replies: 16
Views: 3936

Re: AutoHotkey Plus Plus author here :)

Hi Mark, Great extension btw - thanks for working on it. Question related to code folding. I've tried to illustrate this in the image below: Untitled.png I've tried to show that with no vscode extensions enabled, code folding leaves a blank line at line 126. But with AutoHotkey Plus Plus enabled, co...
by DaveT1
12 Jun 2023, 07:28
Forum: Visual Studio Code
Topic: AutoHotkey Plus Plus author here :)
Replies: 16
Views: 3936

Re: AutoHotkey Plus Plus author here :)

Is this the right place to reach out to you to ask Qs? Please let me know if you have any questions about the extension, feature requests, etc. and I'd be happy to address any concerns you have! Thanks - he prefers AUTOHOTKEY forum as Curdflappers / markwiemer or Github where he has I think directe...
by DaveT1
12 Jun 2023, 07:17
Forum: Visual Studio Code
Topic: AutoHotkey Plus Plus author here :)
Replies: 16
Views: 3936

Re: AutoHotkey Plus Plus author here :)

Hi Mark,

Thanks for this extension :bravo:

Is this the right place to reach out to you to ask Qs?
by DaveT1
20 Apr 2023, 14:13
Forum: Visual Studio Code
Topic: AutoHotkey v2 Language Support, used in any editor that supports lsp
Replies: 47
Views: 18524

Re: AutoHotkey v2 Language Support, used in any editor that supports lsp

Hi thqby , Thx so much for getting back. I was using your v2 extension already alongside a v1 extension. But had managed to set them up so that your 'code folding with zero indents between "{}"' would work in v1 as well as v2. I've just changed the v1 extension I was using, to a more popular one. It...

Go to advanced search