Search found 89 matches

by egocarib
31 May 2018, 19:12
Forum: Bug Reports
Topic: A_IPAddress Performance
Replies: 8
Views: 419

Re: A_IPAddress Performance

I think part of the reason this surprised me and caused debugging pain is that when I use a variable, I typically expect the value to be immediately available to the script. If there are expensive operations being performed behind the scenes that take a long time (40ms per occurrence is quite signif...
by egocarib
31 May 2018, 19:04
Forum: Bug Reports
Topic: A_IPAddress Performance
Replies: 8
Views: 419

Re: A_IPAddress Performance

Yes, I did cache it in my script to fix the issue. When I started this thread, I assumed that AHK probably caches some of the built-in variables, so the purpose here was to discuss whether A_IPAddress should also be cached. If no system-related built-in variables are cached, then I agree that this o...
by egocarib
31 May 2018, 12:45
Forum: Bug Reports
Topic: A_IPAddress Performance
Replies: 8
Views: 419

A_IPAddress Performance

startTick := A_TickCount Loop 100 a := A_IPAddress1 OutputDebug("Execution time = " (A_TickCount - startTick) "ms") ;example output: ; Execution time = 3890ms After several hours of debugging, I isolated a major performance bottleneck in my code to a line that was accessing A_IP...
by egocarib
14 Nov 2017, 20:50
Forum: Ask For Help
Topic: RegExMatch Question: Matching Numbers Between Two Symbols Topic is solved
Replies: 8
Views: 305

Re: RegExMatch Question: Matching Numbers Between Two Symbols Topic is solved

Post your full script, and we might be able to get to the bottom of the issue. I downloaded the file and the regex Helgef or I provided looks like it should work fine.
by egocarib
14 Nov 2017, 20:43
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 140
Views: 32026

Re: .NET Framework Interop (CLR, C#, VB)

Here is a version that is updated to work with the most recent AHK v2 build. Note that CLR_CompileC# has been renamed to CLR_CompileCSharp CLR_LoadLibrary(AssemblyName, AppDomain:=0) { if !AppDomain AppDomain := CLR_GetDefaultDomain() e := ComObjError(0) Loop 1 { if assembly ...
by egocarib
14 Nov 2017, 20:42
Forum: Ask For Help
Topic: Lock Screen Image - Windows 10
Replies: 2
Views: 252

Re: Lock Screen Image - Windows 10

Here is the code I came up with so far Note that CLR_CompileC# has been renamed to CLR_CompileCSharp CLR_LoadLibrary(AssemblyName, AppDomain:=0) { if !AppDomain AppDomain := CLR_GetDefaultDomain() e := ComObjError(0) Loop 1 { if assembly := AppDomain.Load_2(AssemblyName&#...
by egocarib
14 Nov 2017, 19:06
Forum: Ask For Help
Topic: RegExMatch Question: Matching Numbers Between Two Symbols Topic is solved
Replies: 8
Views: 305

Re: RegExMatch Question: Matching Numbers Between Two Symbols Topic is solved

You need to debug a bit. What does str look like after you do str := VideoLengthRaw?

Try MsgBox % VideoLengthRaw, or if it's a large file, try Clipboard := VideoLengthRaw and then paste the output into notepad to see what the variable contents look like.
by egocarib
14 Nov 2017, 16:30
Forum: Ask For Help
Topic: RegExMatch Question: Matching Numbers Between Two Symbols Topic is solved
Replies: 8
Views: 305

Re: RegExMatch Question: Matching Numbers Between Two Symbols Topic is solved

You are missing an equals sign in your regex string. Old: (?<=&length_seconds=).*?(?&of=) New: (?<=&length_seconds=).*?(?=&of=) Note that \d matches only numbers. So it might be easier to use that in your regex match string, depending on what the rest ...
by egocarib
14 Nov 2017, 16:26
Forum: Ask For Help
Topic: Lock Screen Image - Windows 10
Replies: 2
Views: 252

Lock Screen Image - Windows 10

I would like to programmatically update the Windows 10 lock screen image. There appears to be a new UserProfilePersonalizationSettings API for this starting in Windows 10, but I'm not sure how to access it from AHK. I imagine there is probably some way to access this object using DllCall or similar....
by egocarib
13 Nov 2017, 20:26
Forum: Scripts and Functions
Topic: [AHK v2] ObjTree - Explore and Edit objects easily
Replies: 9
Views: 772

Re: [AHK v2] ObjTree - Explore and Edit objects easily

:clap: Nifty! Handled some very complex objects I loaded from a YAML configuration file, and made it easy to debug issues. I'll definitely be using this regularly. I especially like that long value strings are displayed in a separate pane. My only suggestion would be to make some way to also show lo...
by egocarib
11 Nov 2017, 13:40
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 417
Views: 74435

Re: Suggestions on documentation improvements

Fragment identifiers. - It would be good to have direct links available for each code example at the bottom of a page e.g. Run / RunWait https://autohotkey.com/docs/commands/Run.htm#ExecScript I agree that it would be a nice enhancement. Though I don't think it is a significant issue. If you're dir...
by egocarib
09 Nov 2017, 18:14
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 417
Views: 74435

Re: Suggestions on documentation improvements

Nice - I hadn't noticed the new sidebar and format updates. They look awesome! :thumbup:
by egocarib
08 Nov 2017, 15:57
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 417
Views: 74435

Re: Suggestions on documentation improvements

Also, would be great if the v2 documentation site search bar was updated to show you search results for the v2 documentation, instead of redirecting you to results on the v1 documentation website.
by egocarib
08 Nov 2017, 15:40
Forum: Ask For Help
Topic: TXT file loses it's formatting when contents uploaded
Replies: 1
Views: 84

Re: TXT file loses it's formatting when contents uploaded

Often I find that the reason this happens is because the linebreaks are just linefeeds (`n) without a carriage return. Instead, they need to be converted to `r`n.

However, it is difficult to say for sure unless you post your script.
by egocarib
08 Nov 2017, 15:24
Forum: Scripts and Functions
Topic: NotifyTile - Stackable Notification Messages (AHKv2)
Replies: 12
Views: 589

Re: NotifyTile - Stackable Notification Messages (AHKv2)

iPhilip wrote:I changed the options for the Gui ... and that took care most of the issues.

:clap:


I have now added a .gif demo, linked in the original post.
by egocarib
08 Nov 2017, 15:04
Forum: Scripts and Functions
Topic: NotifyTile - Stackable Notification Messages (AHKv2)
Replies: 12
Views: 589

Re: NotifyTile - Stackable Notification Messages (AHKv2)

I don't think it's a quick fix, but I can look into supporting other DPIs when I have some time.

The docs make it sound like some DPI scaling is automatically built in for v2 GUI. The problem is most likely that I am using hard-coded coordinates for several of the controls right now.
by egocarib
08 Nov 2017, 14:53
Forum: Scripts and Functions
Topic: NotifyTile - Stackable Notification Messages (AHKv2)
Replies: 12
Views: 589

Re: NotifyTile - Stackable Notification Messages (AHKv2)

Unfortunately, the tiles don't show properly on my Win 7 computer. See a screenshot here . Hey iPhilip, are you using an enlarged DPI setting? From the image, it looks like that might be the issue. I only tested this on standard (96) DPI. (The script works on both Windows 7 and Windows 10 for me.)
by egocarib
08 Nov 2017, 13:38
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 417
Views: 74435

Re: Suggestions on documentation improvements

MonitorGet (AHKv2) should be moved from the Misc. sidebar section to the Screen sidebar section.
by egocarib
08 Nov 2017, 12:19
Forum: Scripts and Functions
Topic: NotifyTile - Stackable Notification Messages (AHKv2)
Replies: 12
Views: 589

NotifyTile - Stackable Notification Messages (AHKv2)

NotifyTile AHK v2 script for displaying notification messages. Uses the new GUI object framework ( AHK 2.0-a078 or later ). #Include %A_ScriptDir%\GuiUtil.ahk ;Possible future enhancements ; - NotifyTile.SetMonitor(<#>) - pick a different monitor than the default monitor for showing notific...
by egocarib
07 Nov 2017, 21:04
Forum: Ask For Help
Topic: Search direction of Gdip Imagesearch
Replies: 1
Views: 88

Re: Search direction of Gdip Imagesearch

It has been discussed here before.

It sounds like the conclusion was it would actually be slower than using a simple horizontal/vertical pixel sequence for the search.

Go to advanced search