Search found 99 matches

by egocarib
30 Sep 2018, 11:15
Forum: AutoHotkey v2 Development
Topic: Nothing.
Replies: 24
Views: 1797

Re: Nothing.

While I can see the value of this change, I also don't fully understand all of the implications of it, which worries me a bit. As someone who writes a lot of long and moderately complex AHK programs, and who works with others who are less experienced with the language but also use it a lot, it is ex...
by egocarib
30 Sep 2018, 10:52
Forum: AutoHotkey v2 Development
Topic: OutputDebug
Replies: 4
Views: 579

Re: OutputDebug

I would prefer "Debug" over "Dbg".

I also agree with Helgef; I would find a directive or command to disable debug output very useful.
by egocarib
26 Jul 2018, 13:18
Forum: Ask For Help
Topic: Custom Sort help
Replies: 2
Views: 181

Re: Custom Sort help

Not sure if this is the most efficient way to do it, but it works. str := " ( 00-C0-YY-YY-YY-YY > E5001: Temperature Lo Limit Exceeded 00-C0-XX-XX-XX-XX > E5002: Temperature Hi Limit Exceeded 00-C0-XY-XY-XY-XY > E5003: Voltage Hi Limit Exceeded 00-C0-XY-XY-XY-XY > E5004: Voltage Lo Limit Exceeded 00...
by egocarib
26 Jul 2018, 12:49
Forum: Ask For Help
Topic: Help with image search and click
Replies: 1
Views: 109

Re: Help with image search and click

There is a good chance you need to adjust CoordMode to make your script work.

Similar discussion in this thread.
by egocarib
26 Jul 2018, 12:48
Forum: Ask For Help
Topic: ImageSearch and custom GUI Topic is solved
Replies: 3
Views: 240

Re: ImageSearch and custom GUI Topic is solved

To elaborate, A_ScreenWidth and A_ScreenHeight get the dimensions from only your primary monitor. If you want to search across multiple monitors, there are some notes on the linked doc pages about how to search the entire desktop area.
by egocarib
25 Jul 2018, 10:39
Forum: Ask For Help
Topic: ImageSearch and custom GUI Topic is solved
Replies: 3
Views: 240

Re: ImageSearch and custom GUI Topic is solved

You need to use CoordMode, Pixel, Screen. More importantly, you also need to use CoordMode, Mouse, Screen, because you also use mouse click commands.

See CoordMode.

In addition, if you have multiple monitors you will have to make additional adjustments to your script.
by egocarib
25 Jul 2018, 10:33
Forum: Ask For Help
Topic: AutoHotkey - printscreen command
Replies: 3
Views: 209

Re: AutoHotkey - printscreen command

There is no simple AHK function to take a screenshot.

This thread outlines some of the easier methods to do it, though. For example, you can:
  • Use a third-party image capture program that AHK can call with a Run command.
  • Use an AHK library such as GDip.
by egocarib
23 Jul 2018, 17:58
Forum: Scripts and Functions
Topic: PushBullet Class [AHK v2]
Replies: 4
Views: 999

PushBullet Class [AHK v2]

https://www.pushbullet.com/img/header/logo.png PushBullet is an app that lets you "push" messages, files, and other data between devices. It has a nice API for doing things programmatically. Pushbullet can be used for free but there is a limit to the number of pushes you can send programmatically t...
by egocarib
23 Jul 2018, 14:34
Forum: About This Community
Topic: Chrome Blocks AHK EXE Downloads as Malware
Replies: 1
Views: 799

Chrome Blocks AHK EXE Downloads as Malware

Nevermind. See here: https://autohotkey.com/boards/viewtopic.php?f=2&t=51243 Forum moderators, feel free to delete this post. Not sure if anyone else noticed this. I couldn't find an existing thread about it. Chrome has started blocking access to some of the AHK archive downloads: Go here: https://a...
by egocarib
23 Jul 2018, 12:48
Forum: Ask For Help
Topic: sending email whitout.....
Replies: 2
Views: 190

Re: sending email whitout.....

I use this function to send emails from my GMail account. Note that you have to "Allow less secure apps" on your sending GMail account for this to work ( see here ). This is programmed for AHK v2 but you should be able to make it work for AHK v1 with some minor modifications. EmailMessage(msg) { if ...
by egocarib
31 May 2018, 19:12
Forum: Bug Reports
Topic: A_IPAddress Performance
Replies: 8
Views: 1153

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

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

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_IPAddress1. Use case: ...
by egocarib
14 Nov 2017, 20:50
Forum: Ask For Help
Topic: RegExMatch Question: Matching Numbers Between Two Symbols
Replies: 8
Views: 594

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: 142
Views: 41503

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 := AppDomain.Load_2(Asse...
by egocarib
14 Nov 2017, 20:42
Forum: Ask For Help
Topic: Lock Screen Image - Windows 10
Replies: 2
Views: 546

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) break static null := ComObje...
by egocarib
14 Nov 2017, 19:06
Forum: Ask For Help
Topic: RegExMatch Question: Matching Numbers Between Two Symbols
Replies: 8
Views: 594

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

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 of the pattern looks like. For example, the simp...
by egocarib
14 Nov 2017, 16:26
Forum: Ask For Help
Topic: Lock Screen Image - Windows 10
Replies: 2
Views: 546

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: 12
Views: 1671

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...

Go to advanced search