Search found 86 matches

by egocarib
14 Nov 2017, 20:50
Forum: Ask For Help
Topic: RegExMatch Question: Matching Numbers Between Two Symbols
Replies: 8
Views: 98

Re: RegExMatch Question: Matching Numbers Between Two Symbols

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: 101
Views: 23763

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: 1
Views: 48

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
Replies: 8
Views: 98

Re: RegExMatch Question: Matching Numbers Between Two Symbols

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
Replies: 8
Views: 98

Re: RegExMatch Question: Matching Numbers Between Two Symbols

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: 1
Views: 48

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: 306

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: 275
Views: 51464

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: 275
Views: 51464

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: 275
Views: 51464

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: 26

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: 8
Views: 139

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: 8
Views: 139

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: 8
Views: 139

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: 275
Views: 51464

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: 8
Views: 139

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: 24

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.
by egocarib
03 Nov 2017, 09:47
Forum: Scripts and Functions
Topic: [Function][v1/v2] CloseOnOpen - Close specified windows.
Replies: 20
Views: 2627

Re: [Function] CloseOnOpen - Close specified windows.

Thanks, Helgef! I have done this for several windows using WinWaitActive and similar, but this is a much slicker (and faster-closing) alternative. I made a minor tweak to allow using "add" without first creating a winlist (it previously threw a "no object to invoke" error): else ...
by egocarib
02 Nov 2017, 21:30
Forum: Ask For Help
Topic: RegEx challenge: thousands separator Topic is solved
Replies: 32
Views: 479

Re: RegEx challenge: thousands separator Topic is solved

Here's my attempt. Unfortunately, it's not a one-liner, because the RegExReplace has to be called in a loop for each comma required. However, for the examples provided, according to Regex101, this method would appear to be better-performing than the the solutions we have thus far mentioned in the or...
by egocarib
20 Oct 2017, 10:33
Forum: Bug Reports
Topic: BoundFunc Cannot Be Used Directly As Function Parameter?
Replies: 3
Views: 106

Re: BoundFunc Cannot Be Used Directly As Function Parameter?

Ah, I missed that detail. :think: Thanks, Helgef.

Go to advanced search