Search found 575 matches
- 07 Apr 2020, 18:45
- Forum: Wish List
- Topic: To tint the tray icon when script is paused and/or suspended
- Replies: 5
- Views: 1460
Re: To tint the tray icon when script is paused and/or suspended
When I say easy, I mean it's easy in retrospect. In reality, I recommend to use the GDIP library to manage a bitmap and then apply the edited bitmap to the script icon using: Menu, Tray, Icon, HICON:%HICON% Again, use GDIP to get the icon and then show another image over the grabbed icon, saving it ...
- 07 Apr 2020, 10:12
- Forum: Wish List
- Topic: To tint the tray icon when script is paused and/or suspended
- Replies: 5
- Views: 1460
Re: To tint the tray icon when script is paused and/or suspended
Or you could use a function and just include it in every script.
It's pretty easy to do.
It's pretty easy to do.
- 07 Apr 2020, 05:36
- Forum: Wish List
- Topic: To tint the tray icon when script is paused and/or suspended
- Replies: 5
- Views: 1460
Re: To tint the tray icon when script is paused and/or suspended
You can do this by using the parameter you showed by adding Menu, Tray, Icon, Frozen.ico before using the Pause command.
- 04 Apr 2020, 22:43
- Forum: Wish List
- Topic: Inline text formatting codes
- Replies: 4
- Views: 1637
Re: Inline text formatting codes
Doing this would seem hard, if not impossible to do. Changing the text of a menu item (as far as I've found) cannot be done.
- 04 Apr 2020, 22:09
- Forum: Scripts and Functions
- Topic: LineStr() : Extract any line or consecutive lines from text
- Replies: 20
- Views: 2888
Re: LineStr() : Extract any line or consecutive lines from text
Sure. It's renamed.
- 03 Apr 2020, 04:02
- Forum: Scripts and Functions
- Topic: LineStr() : Extract any line or consecutive lines from text
- Replies: 20
- Views: 2888
Re: LineStr() : Extract any line or consecutive lines from text
Example: ; The following adds 10 lines with the following wording: LineNum: <NUM> | Contents: <RAND_STR_ALPHA>`n Loop, % (10) { Loop, % (5) { ; Get a random letter and list it for sh*ts and giggles. Random, CHR, % A := Asc("a"), % A + 25 Rand .= Chr(CHR) } Str .= "LineNum: " . A_Index . "`t| Content...
- 27 Mar 2020, 04:23
- Forum: Ask For Help
- Topic: #Include a file from a variable - is it possible? Topic is solved
- Replies: 1
- Views: 157
Re: #Include a file from a variable - is it possible? Topic is solved
AHK includes files before the script "starts", then the code is run through a linter and looked for errors, then executed.
So no, it is not possible to use variables inside an Include outside of the allowed ones.
So no, it is not possible to use variables inside an Include outside of the allowed ones.
- 25 Mar 2020, 19:36
- Forum: Ask For Help
- Topic: Checkbox failure
- Replies: 4
- Views: 395
Re: Checkbox failure
Hi again, Liaxim! From what I tested, by the code you just provided, your example works on my end. I don't know why it would not work for you. One recommendation I can give is to use the GuiName in the GuiControl command like so: GuiControl, 1:Move, EditControl, w500 h600 GuiControl, Samuel:, EditCo...
- 25 Mar 2020, 19:21
- Forum: Ask For Help
- Topic: is there more professional way to write this Topic is solved
- Replies: 8
- Views: 598
Re: is there more professional way to write this Topic is solved
Hi, Barney! I'm not super, duper amazing at programming, but I do know my way around AHK quite a bit ;). If this doesn't work or if this isn't adequite for your needs, please do send a reply my way and someone (or I) get you going! Clear := False Loop, Read, Class2019-2020.xlsx { Line := A_Index Loo...
- 25 Mar 2020, 19:07
- Forum: Ask For Help
- Topic: Combining scripts
- Replies: 4
- Views: 432
Re: Combining scripts
Hello again, Jim. My recommendation is to use ControlClick to focus the fields and then use ControlSend to send the login information. An example looks like so: ; ControlClick, [Control-or-Pos, WinTitle, WinText, WhichButton, ClickCount, Options, ExcludeTitle, ExcludeText] ControlClick, x45 y30, Log...
- 24 Mar 2020, 19:00
- Forum: Ask For Help
- Topic: Checkbox failure
- Replies: 4
- Views: 395
Re: Checkbox failure
Hi, Liaxim! To check a checkbox upon adding the control, you must add the Checked option to the checkbox. To add that into the options, I recommend doing something like this: WebCheckBox := 1 Gui, Add, CheckBox, Checked%WebCheckBox%, I'm checked! WebNotCheckBox := 0 Gui, Add, CheckBox, Checked%WebNo...
- 24 Mar 2020, 17:57
- Forum: Ask For Help
- Topic: Combining scripts
- Replies: 4
- Views: 432
Re: Combining scripts
Hello, Jim! In response as to what you are wanting to happen, I suggest looking into these commands here: Sleep and Hotkeys . If these do not work or do not suit your needs, the entire AutoHotkey documentation is readily available, if you cannot find what you're looking for, up at the top left of th...
- 23 Mar 2020, 16:39
- Forum: Scripts and Functions
- Topic: JSON 2.0 (and Jxon) - JSON lib for AutoHotkey
- Replies: 76
- Views: 48397
Re: JSON 2.0 (and Jxon) - JSON lib for AutoHotkey
I found the problem and why the static variables are not being set. I was initially executing my code from a static variable before calling the JSON library, here's what I mean: Code() { Static Init := Code() ; Run this function on startup. Str := ; -- Arr := JSON.Load(Str) Return } Because I was ru...
- 14 Mar 2020, 16:13
- Forum: Wish List
- Topic: Request: A_AhkBuildDate
- Replies: 9
- Views: 2780
Re: Request: A_AhkBuildDate
I don't quite see a use for this, mind elaborating what this could benefit?
- 14 Mar 2020, 16:02
- Forum: Wish List
- Topic: Multi-Line Comment Syntax Fix
- Replies: 0
- Views: 1174
Multi-Line Comment Syntax Fix
For years I've dealt with this and it gets annoying after a while. What I'm wanting is to have more flexible multi-line comments. This is what I mean: /* This is valid */ /* This is not valid and it will not execute any code until it finds a close tag for the comment. Making the next message box not...
- 05 Mar 2020, 20:28
- Forum: Scripts and Functions
- Topic: JSON 2.0 (and Jxon) - JSON lib for AutoHotkey
- Replies: 76
- Views: 48397
Re: JSON 2.0 (and Jxon) - JSON lib for AutoHotkey
Minor typo, forgot the Percent sign.
- 05 Mar 2020, 13:11
- Forum: Scripts and Functions
- Topic: JSON 2.0 (and Jxon) - JSON lib for AutoHotkey
- Replies: 76
- Views: 48397
Re: JSON 2.0 (and Jxon) - JSON lib for AutoHotkey
So, I found out that there might be a bug with AHK itself. Currently using the latest version (1.1.32.00) and the static variables in the JSON.Load Call method don't set the variables to any values, making the values of the variables blank. Here's what I mean: Static quot := Chr(34) MsgBox, quot ; S...
- 02 Mar 2020, 05:18
- Forum: Scripts and Functions
- Topic: JSON 2.0 (and Jxon) - JSON lib for AutoHotkey
- Replies: 76
- Views: 48397
Re: JSON 2.0 (and Jxon) - JSON lib for AutoHotkey
Ok, this is probably a better place to put this than "Ask For Help" I guess. I'm having this strange problem where It's not allowing to read arrays as the base of the whole object. Here's what I mean: [ ["TestVar", "SomeItem", "Variables"], ["George", "Billy Joe", "Bob", "Sam"], ["Interactions", "So...
- 26 Feb 2020, 01:03
- Forum: Scripts and Functions
- Topic: GDIP AutoCrop
- Replies: 1
- Views: 549
Re: GDIP AutoCrop
Not bad, I don't see a use for myself anytime soon, but this could come in handy at some point!
- 26 Feb 2020, 01:02
- Forum: Scripts and Functions
- Topic: Selection List Menu for Activating Currently Open Windows
- Replies: 2
- Views: 767
Re: Selection List Menu for Activating Currently Open Windows
Good work, but I would think to use a different character for the window title and the process ID. More or less something.. ASCII-like? Maybe a minus - or a pipe | ? Just a suggestion since what is displayed with what you have set it would look something like this: img.png (If confused as to what yo...