Search found 19 matches
- 08 Mar 2023, 12:02
- Forum: Scripts and Functions (v2)
- Topic: [Class] GuiReSizer - Position and Resize Gui Controls
- Replies: 28
- Views: 6821
Re: [Function] GuiReSizer - Gui Controls Position and Resize
FanaticGuru It might be a good idea to leave your function as it is and just add a "parent" property. If this is empty, the window is assumed, otherwise you can specify a Tab, for example. Then the position is aligned within this tab. I think the anchors can remain as before, but as you already wro...
- 04 Mar 2023, 08:54
- Forum: Scripts and Functions (v2)
- Topic: [LIB] StdoutToVar
- Replies: 11
- Views: 2495
Re: [LIB] StdoutToVar
@cyruz This seems to be a very nice function. Thanks a lot for this.
But one question, what is the advantage of this function compared to this example in the documentation?
Cheers
But one question, what is the advantage of this function compared to this example in the documentation?
Cheers
- 04 Mar 2023, 08:33
- Forum: Scripts and Functions (v2)
- Topic: [Class] GuiReSizer - Position and Resize Gui Controls
- Replies: 28
- Views: 6821
Re: [Function] GuiReSizer - Gui Controls Position and Resize
I am kind of thinking out loud as I type (which has actual helped me have some new ideas), but I am going to give it some more thought and see what I can come up with. Glad that I could help you with my addition. CtrlObj.Function(GuiObj) ; CtrlObj is hidden 'this' first parameter By the way, what's...
- 03 Mar 2023, 18:37
- Forum: Scripts and Functions (v2)
- Topic: [Class] GuiReSizer - Position and Resize Gui Controls
- Replies: 28
- Views: 6821
Re: [Function] GuiReSizer - Gui Controls Position and Resize
FanaticGuru Wow, great function. I like it very much. Many thanks to you. :D I just added a little addition to your function: Use AnchorType for specifying whether Anchor applies to X and/or Y. If AnchorType is omitted or set to "X Y" the function assumes X and Y like usual. My changes are in the f...
- 20 Feb 2023, 19:14
- Forum: Bug Reports
- Topic: [2.0.2] Script Compiler Directive: AddResource ignores ResourceName Topic is solved
- Replies: 8
- Views: 1543
Re: [2.0.2] Script Compiler Directive: AddResource ignores ResourceName Topic is solved
Well, I tested my script in the last few days. My conclusion, it's no bug, it's my fault. Here, what I tried: ;@Ahk2Exe-AddResource Bin\Test.exe, ResourceTest /*@Ahk2Exe-Keep PathTest := "ResourceTest" */ ;@Ahk2Exe-IgnoreBegin PathTest := "Bin\Test.exe" ;@Ahk2Exe-IgnoreEnd param := "..." Run PathTes...
- 15 Feb 2023, 00:51
- Forum: Gaming Help (v1)
- Topic: Writing a key+ mouse click script that stops when a certain image or line of text shows up
- Replies: 7
- Views: 730
Re: Writing a key+ mouse click script that stops when a certain image or line of text shows up
If the image doesn't change, so only the color changes, I suggest using SetTimer together with PixelGetColor.
This should be relatively easy to implement.
Cheers
This should be relatively easy to implement.
Cheers
- 14 Feb 2023, 08:02
- Forum: Ask for Help (v2)
- Topic: (#)HotIf: Using custom InputMode AND dynamic Hotkeys Topic is solved
- Replies: 13
- Views: 1237
Re: (#)HotIf: Using custom InputMode AND dynamic Hotkeys Topic is solved
The problem has nothing to do with HotIf. Variables are local to functions by default, but in AHK v2, hotkey "subroutines" are actually functions. Furthermore, if you write a global variable inside a function, you must first declare it as global inside the function. https://www.autohotkey.com/board...
- 14 Feb 2023, 06:30
- Forum: Ask for Help (v2)
- Topic: (#)HotIf: Using custom InputMode AND dynamic Hotkeys Topic is solved
- Replies: 13
- Views: 1237
Re: (#)HotIf: Using custom InputMode AND dynamic Hotkeys Topic is solved
Here an example: global InputMode #HotIf InputMode = 0 HotIf "InputMode = 0" Hotkey Hk_ab, FnHk_ab0 #HotIf InputMode = 1 HotIf "InputMode = 1" Hotkey Hk_ab, FnHk_ab1 #HotIf a & 0::InputMode := 0 a & 1::InputMode := 1 If I change InputMode at runtime (with "a & 0" or "a & 1"), this change isn't recog...
- 14 Feb 2023, 05:57
- Forum: Bug Reports
- Topic: [2.0.2] Script Compiler Directive: AddResource ignores ResourceName Topic is solved
- Replies: 8
- Views: 1543
Re: [2.0.2] Script Compiler Directive: AddResource ignores ResourceName Topic is solved
It looks like you should be using FileInstall instead of AddResource . This will automatically extract the Test.exe file and enable you to use it directly. See the docs for more details. (You can click on the highlighted commands above to directly link to the docs.) Cheers Thanks for your advice. B...
- 14 Feb 2023, 05:21
- Forum: Ask for Help (v2)
- Topic: (#)HotIf: Using custom InputMode AND dynamic Hotkeys Topic is solved
- Replies: 13
- Views: 1237
Re: (#)HotIf: Using custom InputMode AND dynamic Hotkeys Topic is solved
ntepa Ok, thanks. I tested this method already, but apparently not thoroughly enough. But now I have one more problem. In the doc it says Since the parameters are evaluated before the function is called, any variable reference becomes permanent at that moment. In other words, subsequent changes to ...
- 14 Feb 2023, 04:28
- Forum: Ask for Help (v2)
- Topic: (#)HotIf: Using custom InputMode AND dynamic Hotkeys Topic is solved
- Replies: 13
- Views: 1237
(#)HotIf: Using custom InputMode AND dynamic Hotkeys Topic is solved
I just try to convert my v1 script to v2. Now I'm stuck. In my v1 script I used a custom InputMode for static hotkey variants. Now I'd like dynamic hotkeys (using an ini-file for loadung the keys) and also variants of these hotkeys. But I don't get it to work properly. My Examples: v1 Code #If Input...
- 14 Feb 2023, 03:10
- Forum: Scripts and Functions (v1)
- Topic: Upcoming Ahk2Exe Changes (2024)
- Replies: 630
- Views: 192315
- 13 Feb 2023, 11:59
- Forum: Wish List
- Topic: [v2] local inner function in global outer function
- Replies: 3
- Views: 1314
[v2] local inner function in global outer function
Is it possible to have a local inner function in a global outer function? That would be nice to get a kind of private inner function in a global function. As far as I know this isn't possible, so I post it here as a wish. My example: Init() { global var1 := 1 var2 := 2 (...) A_TrayMenu.Add "&Somethi...
- 13 Feb 2023, 07:56
- Forum: Off-topic Discussion
- Topic: Edit own post
- Replies: 2
- Views: 1856
Re: Edit own post
Sorry, new users with less than 10 posts can't edit their posts. Is it the broken quote tag? I can fix that for you. If it is something essential, put it in a new post. We can still remove the old one, if it is redundant. Yes, I wanted to fix the broken quote. Thanks for doing that for me. Cheers
- 13 Feb 2023, 05:22
- Forum: Off-topic Discussion
- Topic: Edit own post
- Replies: 2
- Views: 1856
Edit own post
Hi community,
I'm a new user. I just posted, saw a mistake and wanted to edit my post. But I can't see where or how to edit my own post.
Any helps?
Cheers
I'm a new user. I just posted, saw a mistake and wanted to edit my post. But I can't see where or how to edit my own post.
Any helps?
Cheers
- 13 Feb 2023, 04:43
- Forum: Scripts and Functions (v1)
- Topic: Upcoming Ahk2Exe Changes (2024)
- Replies: 630
- Views: 192315
- 13 Feb 2023, 04:35
- Forum: Bug Reports
- Topic: [2.0.2] Script Compiler Directive: AddResource ignores ResourceName Topic is solved
- Replies: 8
- Views: 1543
Re: [2.0.2] Script Compiler Directive: AddResource ignores ResourceName Topic is solved
TAC109 Sorry for responding so slowly. Well, as you showed it should work properly. So, I think, I do something wrong. Here my example: ;@Ahk2Exe-AddResource Bin\Test.exe, ResourceTest Later I use it this way: /*@Ahk2Exe-Keep PathTest := "ResourceTest" */ ;@Ahk2Exe-IgnoreBegin PathTest := "Bin\Test...
- 11 Feb 2023, 12:13
- Forum: Scripts and Functions (v1)
- Topic: Upcoming Ahk2Exe Changes (2024)
- Replies: 630
- Views: 192315
Re: Upcoming Ahk2Exe Changes (2023)
Strange bug? When I update to/install BinMod 1.1.36.02d v2023.01.30 over the update function of Ahk2Exe, the resultung BinMod.exe gets a custom icon I used for my own script. Does anybody have an explanation for this behavior? It's no problem, I think, but I'm interested in having BinMod.exe with th...
- 11 Feb 2023, 03:42
- Forum: Bug Reports
- Topic: [2.0.2] Script Compiler Directive: AddResource ignores ResourceName Topic is solved
- Replies: 8
- Views: 1543
[2.0.2] Script Compiler Directive: AddResource ignores ResourceName Topic is solved
Hi community,
I think, I found a bug in the script compiler directive AddResource.
It seems it ignores any ResourceName I choose, it always takes the standardname (FileName without extension).
Here the doc:
https://www.autohotkey.com/docs/v2/misc/Ahk2ExeDirectives.htm#AddResource
Cheers
I think, I found a bug in the script compiler directive AddResource.
It seems it ignores any ResourceName I choose, it always takes the standardname (FileName without extension).
Here the doc:
https://www.autohotkey.com/docs/v2/misc/Ahk2ExeDirectives.htm#AddResource
Cheers