Search found 3328 matches

by jeeswg
Today, 17:07
Forum: Bug Reports
Topic: A_DDD = Sa
Replies: 7
Views: 125

Re: A_DDD = Sa

- I had considered doing something like that before, but hadn't really had the need. - Two things. One, it's a template, if you want to use some variant text for weekdays/months, e.g. fewer/more letters, or capitalisation. Two, it's a template, if you want to use more than one language in your scrip...
by jeeswg
Today, 16:43
Forum: Offtopic
Topic: « What's on your mind? » Topic is solved
Replies: 3706
Views: 386775

Re: « What's on your mind? » Topic is solved

@jballi: Subpixels look so cool.

Hilarious Yearbook Quotes That will make you laugh - YouTube
https://www.youtube.com/watch?v=Q483SBG3S4o
by jeeswg
Today, 15:22
Forum: Ask For Help
Topic: notation: parameter could be a variable or an object
Replies: 2
Views: 42

notation: parameter could be a variable or an object

- Sometimes when I'm writing a function, or elsewhere, I have a parameter that could be a variable or an object. - One of the most obvious examples of this is an object loop. I usually use 'vValue', expecting a string/number, but it could be an object. for vKey, vValue in oArray vOutput .= vKey &quo...
by jeeswg
Today, 14:40
Forum: Tutorials
Topic: jeeswg's benchmark tests
Replies: 43
Views: 1213

Re: jeeswg's benchmark tests

STRINGS: SUBSTR: CROP FIRST CHARACTER V. CROP LAST CHARACTER - SubStr(vText, 2) v. SubStr(vText, 1, -1) In the example below, cropping the last character was roughly 7 times faster. q:: ;crop first character v. crop last character oArray := [] vNum := 10000 vLen := 100000 VarSetCapac...
by jeeswg
Today, 02:30
Forum: AutoHotkey v2 Development
Topic: a_iscompiled v2a082+
Replies: 2
Views: 69

Re: a_iscompiled v2a082+

I think you're right. This returns true: MsgBox(IsObject(A_IsCompiled)) . ;results where obtained with an *uncompiled* script ;tested on AHK v2a082-fffc60d MsgBox(a_iscompiled) ;blank MsgBox(A_IsCompiled) ;blank MsgBox(StrLen(a_iscompiled)) ;0 MsgBox(StrLen(A_IsCompiled)) ;0 MsgBox(a...
by jeeswg
Yesterday, 15:29
Forum: Tutorials
Topic: jeeswg's benchmark tests
Replies: 43
Views: 1213

Re: jeeswg's benchmark tests

- The most practical solution, I think, everything considered, is this: - We move this thread to a different forum, Scripts and Functions perhaps. - It's too early to try to make this a 'tidy' thread, the posts will be being changed and added to for some time to come. - At some future date, I could ...
by jeeswg
Yesterday, 14:36
Forum: Tutorials
Topic: jeeswg's benchmark tests
Replies: 43
Views: 1213

Re: jeeswg's benchmark tests

- I do benchmark tests to *save* time. You're welcome to convert them all to that style, combining them in one post. But seriously though, well done, that's a great example. Thanks nnnik. - More and more though, I'm thinking that the examples should either be in separate posts, or in one massive pos...
by jeeswg
Yesterday, 13:23
Forum: Ask For Help
Topic: objects: hierarchies: listing/comparing objects
Replies: 7
Views: 133

Re: objects: hierarchies: listing/comparing objects

- Many thanks for the links Helgef. I'd probably have to simplify the 3 scripts to get any code that lists the keys/values. More stuff for the to-do list, it's so long now. - Re. circular references, I asked about them on the other thread, any good threads relating to them? I've come across almost e...
by jeeswg
Yesterday, 08:52
Forum: Ask For Help
Topic: objects: hierarchies: listing/comparing objects
Replies: 7
Views: 133

Re: objects: hierarchies: listing/comparing objects

- Well, I had a go at a function, it seems to be working pretty well. - Many thanks to GeekDude, for his 'array defined like JSON text' example, that I was lucky enough to come across the other day, which I used as the basis for the example below, used for testing the function. (I removed the OTB st...
by jeeswg
Yesterday, 07:39
Forum: Ask For Help
Topic: objects: hierarchies: listing/comparing objects
Replies: 7
Views: 133

Re: objects: hierarchies: listing/comparing objects

- Anyone? I'd be interested in multiple scripts for listing object keys/values, for the following reasons. - A lot of the more complicated scripts I use involve hierarchies, and I'm wanting to try and streamline all of my hierarchy/recursion/family tree/ancestry scripts to work within one model, and...
by jeeswg
Yesterday, 05:05
Forum: Ask For Help
Topic: object classes: redefine __Set() temporarily / general queries
Replies: 35
Views: 761

Re: object classes: redefine __Set() temporarily / general queries

CUSTOM CLASSES V. FUNCTIONS (ADDENDUM) - Yes, now is not the time for the classes v. functions debate. I'll mention it to people now, and then, after a year, people will start to realise the truth of what I'm saying and at least halfway agree with me. - One would hope that the cleverer one is at usi...
by jeeswg
Yesterday, 03:45
Forum: Ask For Help
Topic: traditional for loop: for i = a to b (step c) possibilities
Replies: 5
Views: 89

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

- I have been thinking about traditional for loops, and the best way to achieve them, since I first started using AutoHotkey. It was the one killer feature that Excel macros had, that AutoHotkey did not. - While thinking about what the very best function/object solution might be (see the links lower...
by jeeswg
18 Jan 2018, 21:24
Forum: Ask For Help
Topic: file loop listing the same files twice (identify redirected folders)
Replies: 3
Views: 76

Re: file loop listing the same files twice (identify redirected folders)

Here's a command line example that uses dir. E.g. (your example): 2009-07-13 10:53 PM <JUNCTION> Documents and Settings [D:\Users] ;[based on 'list environment variables' example] ;jeeswg's Explorer tutorial - AutoHotkey Community ;https://autohotkey.com/boards/viewtopic.php?t=31755 ;Dir | Microsoft...
by jeeswg
18 Jan 2018, 20:52
Forum: Ask For Help
Topic: file loop listing the same files twice (identify redirected folders)
Replies: 3
Views: 76

Re: file loop listing the same files twice (identify redirected folders)

- I'll explain a few things here, which you might know, but they are there generally for the benefit of anyone reading. - I should warn you that I'm not sure if your simplified function would work correctly, it could give false positives, and here's why. If the function fails for some reason, the Dl...
by jeeswg
18 Jan 2018, 20:09
Forum: Ask For Help
Topic: object classes: redefine __Set() temporarily / general queries
Replies: 35
Views: 761

Re: object classes: redefine __Set() temporarily / general queries

CUSTOM CLASSES V. FUNCTIONS (REVISITED) - The code in the Gdip class looks very well laid out, and is probably great code, but I would much rather stick with individual functions. So by that logic, it doesn't feel like a natural use of nested classes to me, but thanks for sharing. - For me, with eac...
by jeeswg
18 Jan 2018, 17:46
Forum: Tutorials
Topic: jeeswg's benchmark tests
Replies: 43
Views: 1213

Re: jeeswg's benchmark tests

- Thanks for your comments Helgef, I will reinvestigate the truncate string benchmark tests, and provide an updated version as a new post. You could do likewise if you wanted to. I was looking forward to seeing your truncate and sleep benchmark tests. - Btw are you in agreement re. the overall resul...
by jeeswg
18 Jan 2018, 17:36
Forum: Ask For Help
Topic: object classes: redefine __Set() temporarily / general queries
Replies: 35
Views: 761

Re: object classes: redefine __Set() temporarily / general queries

- A basic example re. extending a class. E.g. MyClassPart1 is the superclass, and MyClassPart2 is the subclass. class MyClassPart1 class MyClassPart2 extends MyClassPart1 - Where new MyClassPart1 creates a MyClassPart1 object as usual. - Where new MyClassPart2 creates an object that has the features...
by jeeswg
18 Jan 2018, 13:45
Forum: Ask For Help
Topic: object classes: redefine __Set() temporarily / general queries
Replies: 35
Views: 761

Re: object classes: redefine __Set() temporarily / general queries

Further points re. objects/pointers: ComObjActive() https://autohotkey.com/docs/commands/ComObjActive.htm Known limitation: Each time a COM object is wrapped, a new wrapper object is created. Comparisons and assignments such as obj1 == obj2 and array[obj1] := value treat the two wrapper objects as u...
by jeeswg
18 Jan 2018, 13:04
Forum: Ask For Help
Topic: TraySetIcon with AHK V2?
Replies: 8
Views: 86

Re: TraySetIcon with AHK V2?

I found the missing AHK v1 function.

Code: [Select all]GeSHi © Codebox Plus

TraySetIcon(FileName:="", IconNumber:="", Freeze:="")
{
Menu Tray, Icon, %FileName%, %IconNumber%, %Freeze%
}
It's quite a new function in AHK v2, so you may need to get the latest version.
by jeeswg
18 Jan 2018, 12:11
Forum: Ask For Help
Topic: object classes: redefine __Set() temporarily / general queries
Replies: 35
Views: 761

Re: object classes: redefine __Set() temporarily / general queries

Well, ComObjEnwrap and ComObjUnwrap had been confusing me for a long time. 'Unwrap' sounds like it's removing something, but yet information is being retrieved, and the reference count is *increased*. ;note: in all of these examples, the reference count is increased by 1 ;note: each pair of lines is...

Go to advanced search