Search found 160 matches

by Relayer
10 Dec 2023, 10:25
Forum: Scripts and Functions (v2)
Topic: PicSwitch - Switch, Checkbox controls with picture
Replies: 5
Views: 989

Re: PicSwitch - Switch, Checkbox controls with picture

Hi, Is the screenshot meant to show the output of running the sample script? When I run the sample script I only get the first two rows and the first item in each row does nothing when clicked on. Forgive my laziness to analyze the script and try to figure it out myself. BTW... very nice addition to...
by Relayer
06 Apr 2023, 07:33
Forum: Scripts and Functions (v1)
Topic: Dead hotstring locator
Replies: 12
Views: 1657

Re: Dead hotstring locator

Steve, Yes, I use a suffix. And semicolon as a home position is one of the reasons I chose it. I was never comfortable with auto-correct as I touch type and am not always looking at the screen and I found that even an occasional substitution I did not intend can lead to issues/embarrassment. Maybe I...
by Relayer
05 Apr 2023, 10:12
Forum: Scripts and Functions (v1)
Topic: Dead hotstring locator
Replies: 12
Views: 1657

Re: Dead hotstring locator

Hi, When I started using AutoHotkey 10+ years ago I decided that all of my hotstrings would be "triggered" with a semicolon, ';'. This cures some issues and also keeps a slip of the finger from replacing text I didn't want to replace. It gives full control and become second-nature once you get used ...
by Relayer
16 Mar 2023, 12:25
Forum: Tutorials (v2)
Topic: [v2] Custom for-loops: Enumerators, Iterators, Generators
Replies: 30
Views: 13858

Re: [v2] Custom for-loops: Enumerators, Iterators, Generators

I'll ask a question here because it is on-topic... In v1 I could create a class that contained a set of methods. I could then reference that class with a for-loop (for Name, Method in classObj). Inside the for-loop I would need to make sure what was retrieved was indeed a method I can call because t...
by Relayer
03 Mar 2023, 08:38
Forum: Bug Reports
Topic: Need more braces in loop blocks in v2
Replies: 11
Views: 1844

Re: Need more braces in loop blocks in v2

I just mentioned indentation as a personal preference and not to take the conversation off topic. The topic is that v2 assigns 'else' statements differently than v1 did and this may cause, and did cause in my case, a lot of wasted time debugging as my script failed silently. I hope to inform others ...
by Relayer
01 Mar 2023, 12:20
Forum: Bug Reports
Topic: Need more braces in loop blocks in v2
Replies: 11
Views: 1844

Re: Need more braces in loop blocks in v2

As I said in my opening comments, I was converting an existing script and could not figure out why it wasn't working. I would never have thought an 'else' statement would pair with a 'for' loop. Python has a lot going for it but this and the reliance on indented source code are not two of them. Rela...
by Relayer
28 Feb 2023, 15:43
Forum: Bug Reports
Topic: Need more braces in loop blocks in v2
Replies: 11
Views: 1844

Need more braces in loop blocks in v2

I got all tied up converting a library file to v2. Turns out that the problem appears to be that more braces are needed in multilevel loop blocks that weren't needed in v1. Perhaps this is intended? Relayer #SingleInstance Force #Requires AutoHotkey v2.0 function1([3, 2, 1], "moe", "jack") ;works as...
by Relayer
27 Feb 2023, 08:14
Forum: Scripts and Functions (v2)
Topic: AutoXYWH() gui resize converted to v2
Replies: 1
Views: 664

AutoXYWH() gui resize converted to v2

I have been learning v2 by converting some of the functions I used frequently in v1. Sharing. ; ================================================================================= ; Function: AutoXYWH ; Move and resize control automatically when GUI resizes. ; Parameters: ; DimSize - Can be one or mor...
by Relayer
23 Feb 2023, 09:30
Forum: Scripts and Functions (v2)
Topic: Anchor gui resize converted to v2
Replies: 0
Views: 424

Anchor gui resize converted to v2

Hi, Many of my scripts used Anchor to resize guis. I took some time and converted Anchor to v2 for those who are interested. Relayer /* Function: Anchor (translated to v2 by Relayer 2023-02-22) Defines how controls should be automatically positioned relative to the new dimensions of a window when re...
by Relayer
22 Feb 2023, 13:40
Forum: Scripts and Functions (v2)
Topic: [Class] GuiReSizer - Position and Resize Gui Controls
Replies: 27
Views: 5449

Re: [Function] GuiReSizer - Gui Controls Position and Resize

Hi, Many of my scripts used Anchor to resize guis. I took some time and converted Anchor to v2 for those who are interested. Relayer /* Function: Anchor (translated to v2 by Relayer 2023-02-22) Defines how controls should be automatically positioned relative to the new dimensions of a window when re...
by Relayer
16 Feb 2023, 11:41
Forum: Scripts and Functions (v2)
Topic: [Function] object_list() Display contents of objects
Replies: 2
Views: 1081

[Function] object_list() Display contents of objects

Updated 2023-03-07 For v1 I have relied on a script I found on the forum that produces a nice text rendering of what objects contain. It helps in crafting custom data structures and is very useful in troubleshooting. Here is a v2 version that I've put together that distinguishes between plain object...
by Relayer
13 Feb 2023, 10:21
Forum: Scripts and Functions (v2)
Topic: [v2.0.0]Struct——auto calc struct and init a struct
Replies: 19
Views: 3288

Re: [v2.0.0]Struct——auto calc struct and init a struct

I was simply running your first example in your opening post and got:
image.png
image.png (15.52 KiB) Viewed 2954 times
by Relayer
07 Feb 2023, 15:18
Forum: Ask for Help (v2)
Topic: v1 <-> v2 Launcher help
Replies: 0
Views: 239

v1 <-> v2 Launcher help

I am trying to use the launcher that comes with v2 to choose the correct ahk executable based on the script code version. But my v1 installation was done by copying files into folders as opposed to running the installation script. For a variety of reasons I would like to keep it that way and NOT uni...
by Relayer
07 Feb 2023, 10:57
Forum: Scripts and Functions (v2)
Topic: [v2.0.0]Struct——auto calc struct and init a struct
Replies: 19
Views: 3288

Re: [v2.0.0]Struct——auto calc struct and init a struct

Hi,

I tried using this and on the first example: the variable 'tmp_size' in align() errors out saying it contains the string 'a' when it expected a number.

I'm still learning v2 so I'm not as adept in troubleshooting yet.

Relayer
by Relayer
02 Feb 2023, 10:58
Forum: General Discussion
Topic: What has happened to AutoHotkey?!
Replies: 33
Views: 7104

Re: What has happened to AutoHotkey?!

Hi, For what it's worth I remember how I felt when I was using AutoHotkey v1.00 (before AutoHotkey_L) and knew I should broaden my horizons and move to _L. Lots of anxiety! Looking back, the improvements in _L are PHENOMENAL and have enabled me to learn and do so much more. I am now feeling the same...
by Relayer
08 Jan 2023, 08:37
Forum: Bug Reports
Topic: initializing a static using function that has a static Topic is solved
Replies: 5
Views: 852

Re: initializing a static using function that has a static Topic is solved

Thanks swagfag. I read that in the documentation but it didn't sink in until I was writing the posting and for grins swapped the position of the two functions in the script file and saw that it was an order of appearance issue. I will need to keep this in mind when using statics in v1. I wasted a mo...
by Relayer
06 Jan 2023, 16:04
Forum: Bug Reports
Topic: initializing a static using function that has a static Topic is solved
Replies: 5
Views: 852

initializing a static using function that has a static Topic is solved

I found the following unexpected behavior today. I am using 1.1.36.02 I initialize a static variable using a function which in turn uses a static variable. A blank is returned for the call to the function testFunc(). I appears that static variables are initialized in one pass in the order they are e...
by Relayer
22 Sep 2022, 14:17
Forum: Scripts and Functions (v1)
Topic: Cursor Highlighter
Replies: 75
Views: 55935

Re: Cursor Highlighter

Hi, I just noticed a problem with the script today. If I go to use a picture of the pens and pencil I can get only two to work depending on which one was active when I shut down the script. Doing some debugging I found that two end up with hBitmap being 0 (zero). I found that by placing all four fun...
by Relayer
22 Jul 2022, 08:53
Forum: Scripts and Functions (v1)
Topic: TrayAudioVisualizer
Replies: 9
Views: 2082

Re: TrayAudioVisualizer

Nice little app.

I have a question. Since ExitApplication() is a function doesn't "pToken" need to be declared a global for the function to access that variable?

Relayer
by Relayer
30 Jun 2022, 12:08
Forum: Scripts and Functions (v1)
Topic: [Library] Chart using Gdiplus
Replies: 22
Views: 5006

Re: [Library] Chart using Gdiplus

I have been playing with this class and really like it. I would like to encourage you to continue to enhance it! I often need to work with very large data files from sensors that are plotted against time. I often need to zoom in on particular details. Excel is very poor at large files. I am using yo...

Go to advanced search