Search found 15 matches
- 21 Apr 2017, 14:44
- Forum: Ask for Help (v1)
- Topic: Cannot get bitmaps of screen from Gdip
- Replies: 10
- Views: 3607
Re: Cannot get bitmaps of screen from Gdip
Ugh, wasted a few hours on that myself. It worked perfectly while debugging in Scite (which apparently uses the 32-bit version), but wouldn't do squat when I just double-clicked the script. My solution (and someone please tell me a better one) is to change the extension of scripts requiring the 32-b...
- 28 Oct 2016, 07:32
- Forum: Ask for Help (v1)
- Topic: WinSet, disable ... how is it implemented?
- Replies: 1
- Views: 899
WinSet, disable ... how is it implemented?
Anyone know how "WinSet, disable" actually "works" in the background? I'm trying to figure out how to do the same thing in another language. I'm assuming it's setting the window style, but I'm struggling to find the api for this. Thanks. https://msdn.microsoft.com/en-us/library/windows/desktop/ms632...
- 20 May 2016, 09:34
- Forum: Scripts and Functions (v1)
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 1088
- Views: 578335
Re: FindText - Catch screen image into text and then find it Topic is solved
Want to make sure I'm understanding use case and usage: 1) Download script and run it. This pops up the "Catch Image To Text And Find Text Tool" box with "Catch", "Test", and "Copy" buttons. 2) Click the "Catch" button and the cursor is accompanied by a transparent red box. 3) Move the red box over ...
- 17 Mar 2016, 13:20
- Forum: Ask for Help (v1)
- Topic: Problem understanding for-loop
- Replies: 2
- Views: 825
Re: Problem understanding for-loop
Yep, that was it. I neglected to realize I was dealing with an array of arrays.
Thanks for helping me find my thingy.
Thanks for helping me find my thingy.
- 17 Mar 2016, 10:47
- Forum: Ask for Help (v1)
- Topic: Problem understanding for-loop
- Replies: 2
- Views: 825
Problem understanding for-loop
From the help: ; List the key-value pairs of an object: colours := Object("red", 0xFF0000, "blue", 0x0000FF, "green", 0x00FF00) ; The above expression could be used directly in place of "colours" below: for k, v in colours s .= k "=" v "`n" MsgBox % s This returns a populated MsgBox, as expected. Ho...
- 22 May 2015, 12:49
- Forum: Ask for Help (v1)
- Topic: Drag-Drop onto .ahk suddenly does ... nothing.
- Replies: 1
- Views: 1549
Drag-Drop onto .ahk suddenly does ... nothing.
Hey, all, After writing a few scripts that trigger when other files are dropped on top of them, they were working as expected. Now, dragging and dropping onto a .ahk file does nothing. Just to make sure it wasn't me, I tried using the code from Example 6 here https://www.autohotkey.com/docs/commands...
- 17 May 2015, 16:40
- Forum: Ask for Help (v1)
- Topic: OnMessage() called function in Library?
- Replies: 16
- Views: 4827
Re: OnMessage() called function in Library?
Got it. Thanks.
- 17 May 2015, 12:53
- Forum: Ask for Help (v1)
- Topic: OnMessage() called function in Library?
- Replies: 16
- Views: 4827
Re: OnMessage() called function in Library?
Okay, I'm not getting it to work as proposed in Lexicos' comment. Please show me where my misunderstanding lies. (Short version, if I can get an #Include directive to include an ahk file in a library, just by saying "#Include [filename]" without having to do "#Include [filepath][filename]" then I'm ...
- 17 May 2015, 11:06
- Forum: Ask for Help (v1)
- Topic: OnMessage() called function in Library?
- Replies: 16
- Views: 4827
Re: OnMessage() called function in Library?
Sorry, yes, ... I read that as a rhetorical question setting up his point about readability. If #include will actually "include" any file in a Lib *without* having to have "#Include [path to lib]" before it, that would -- indeed -- solve my problem. I'll give that a shot when I get a moment. Thanks ...
- 16 May 2015, 16:41
- Forum: Ask for Help (v1)
- Topic: OnMessage() called function in Library?
- Replies: 16
- Views: 4827
Re: OnMessage() called function in Library?
Fair point, and I'm sure I'll find a happy medium somewhere in between. The issue I'm trying to fix is that my #Include files will need to be in different locations on different machines and, since #Include statements can't be conditional (e.g. On this machine point here, but on that machine point t...
- 15 May 2015, 19:14
- Forum: Ask for Help (v1)
- Topic: OnMessage() called function in Library?
- Replies: 16
- Views: 4827
Re: OnMessage() called function in Library?
Yep, you lost me there ... maybe someday.
For now, I can get by with something like this.
\lib\FooInclude.ahk
Bar.ahk
For now, I can get by with something like this.
\lib\FooInclude.ahk
Code: Select all
FooInclude()
{
Return
}
Foo()
{
MsgBox, This is what I really wanted in the first place.
Return
}
Code: Select all
FooInclude()
OnMessage(0x200,"Foo")
- 15 May 2015, 19:03
- Forum: Ask for Help (v1)
- Topic: OnMessage() called function in Library?
- Replies: 16
- Views: 4827
Re: OnMessage() called function in Library?
Dang! I'm sure that seemed quite simple to you, but I really appreciate it. That makes life a ton easier. Yes, it's sort of like using #include, except that you can't dynamically change the #Include at run time, whereas \lib directories can be in different locations on different machines with differ...
- 15 May 2015, 18:35
- Forum: Ask for Help (v1)
- Topic: OnMessage() called function in Library?
- Replies: 16
- Views: 4827
Re: OnMessage() called function in Library?
Okay, we're not talking about the same thing then. Let me try to explain in more detail ... If I have a function "foo()", ... and it is the sole content of a file named "foo.ahk", ... and that file is in one of the library locations specified in the documentation (linked above), ... that *ordinarily...
- 15 May 2015, 17:13
- Forum: Ask for Help (v1)
- Topic: OnMessage() called function in Library?
- Replies: 16
- Views: 4827
Re: OnMessage() called function in Library?
Just to clarify then, this is something particular to the way OnMessage() operates then?
Because, for all other functions, the method explained here in the documentation for libraries works. https://www.autohotkey.com/docs/Functions.htm#lib
Because, for all other functions, the method explained here in the documentation for libraries works. https://www.autohotkey.com/docs/Functions.htm#lib
- 15 May 2015, 12:14
- Forum: Ask for Help (v1)
- Topic: OnMessage() called function in Library?
- Replies: 16
- Views: 4827
OnMessage() called function in Library?
Hey, all Short version: I'm not having luck using OnMessage() to call a function from a function library. It only works if it's included in the script, either explicitly or via an #Include. Is that something that's simply not going to happen, or is there some "glue" missing somewhere? Example, using...