Search found 590 matches
- 10 Jan 2023, 12:20
- Forum: Scripts and Functions (v1)
- Topic: [library] TF: Text files & Variables (strings) v3.8
- Replies: 61
- Views: 40964
Re: [library] TF: Text files & Variables (strings) v3.8
Not sure that I understand what you're doing, and no doubt you can organise your code much more efficiently (for start define all variables at the start of the script or even in a separate file (CSV?) - not as part of each hotstring, but that is besides the point One thing you could try is replacing...
- 06 Jan 2023, 12:38
- Forum: Scripts and Functions (v1)
- Topic: [library] TF: Text files & Variables (strings) v3.8
- Replies: 61
- Views: 40964
Re: [library] TF: Text files & Variables (strings) v3.8
That is most likely the answer - apart from any tab/space characters that might be present which you don't "see" directly in the file. Note that text files can have various line endings which may cause an issue as well (it could be `r`n, `n, `r, or a combination of these in one single file (if you o...
- 06 Jan 2023, 12:17
- Forum: Scripts and Functions (v1)
- Topic: [Library] Edit v3.0 - Update and Manage any Edit Control
- Replies: 76
- Views: 41448
Re: [Library] Edit v2.0 - Update and Manage any Edit Control
Wouldn't https://www.autohotkey.com/docs/v1/Variables.htm#Caret just work, it should show the X/Y for a standard edit control pretty reliably
- 04 Jan 2023, 17:41
- Forum: Scripts and Functions (v1)
- Topic: OpenAhkXl - Automate Excel with native ahk. no excel need
- Replies: 16
- Views: 6235
Re: OpenAhkXl - Automate Excel with native ahk. no excel need
the function for writing totally new file is not implemented. Perhaps this experiment is useful, you need to wrap it in a function/class yourself but the basis works. I took an empty excel file, base64 encoded it and store it in a variable (just a string) which you can decode using Skan's function ...
- 24 Dec 2022, 03:48
- Forum: Ask for Help (v1)
- Topic: open ahk (notepad) version through ahk Topic is solved
- Replies: 14
- Views: 2138
Re: open ahk (notepad) version through ahk Topic is solved
Your problem is the first line #h::#m If you want a hotkey / hotstring to perform multiple actions e.g. code block you need to have a return before the first command (or after the hotkey/hotstring) I'm assuming you want to minimize all windows before proceeding with the Sleep etc commands? So try th...
- 09 Dec 2022, 10:01
- Forum: Ask for Help (v1)
- Topic: How to swap the filenames of selected files in a window
- Replies: 7
- Views: 1161
- 09 Dec 2022, 08:16
- Forum: Scripts and Functions (v1)
- Topic: Upcoming Ahk2Exe Changes (2024)
- Replies: 638
- Views: 210874
Re: Upcoming Ahk2Exe Changes (2022)
... to write a separate script analyser which checks for the conditions that you mentioned. Nice idea, perhaps someone will run with it. I learned about the new options when I (finally) understood why a compiled script wasn't working for someone (all I got back was "needs AutoHotkey to work" which ...
- 08 Dec 2022, 12:22
- Forum: Scripts and Functions (v1)
- Topic: Upcoming Ahk2Exe Changes (2024)
- Replies: 638
- Views: 210874
Re: Upcoming Ahk2Exe Changes (2022)
Suggestion: A #WarnCompile/Log options Perhaps I missed it, but perhaps some sort of warning/log/hints could be added? Example could be the use of A_AhkPath which I tend to use basic menu AutoHotkey icons, which works on regular scripts, and compiled scripts as long as AutoHotkey is installed which ...
- 04 Dec 2022, 10:35
- Forum: Scripts and Functions (v1)
- Topic: CL3 clipboard utility (text only) with menu, search, quick paste, cycle/step, plugins, API, ...
- Replies: 59
- Views: 35559
Re: CL3 clipboard utility (text only) with menu, search, quick paste, cycle/step, plugins, API, ...
v1.104 @ https://github.com/hi5/CL3 * New: ccmdr - Burst, adding \s for space * Fix: check for duplicates didn't work correctly, now it should * Fix: ClipChain plugin - fix cancelled "Load from Clipboard (Set Delim)" * New: basic check for update tray menu option for compiled scripts; Prepare code ...
- 03 Dec 2022, 07:47
- Forum: Ask for Help (v1)
- Topic: remove lines present in both long sorted lists
- Replies: 41
- Views: 2831
Re: remove lines present in both long sorted lists
If you're not tied to AutoHotkey solutions only, I would look into awk a cmd line utility
- 03 Dec 2022, 07:44
- Forum: Ask for Help (v1)
- Topic: remove lines present in both long sorted lists
- Replies: 41
- Views: 2831
Re: remove lines present in both long sorted lists
The .= can become quite slow with larger variables, using VarSetCapacity() will speed things up, so
VarSetCapacity(nvar1, 10240000) ; ~10 MB should help
or try StrLen VarSetCapacity(nvar1, StrLen(var1)) (the new output will be smaller as the original so no need to go bigger)
VarSetCapacity(nvar1, 10240000) ; ~10 MB should help
or try StrLen VarSetCapacity(nvar1, StrLen(var1)) (the new output will be smaller as the original so no need to go bigger)
- 27 Nov 2022, 10:33
- Forum: Ask for Help (v1)
- Topic: How to protect my AHK scripts?
- Replies: 17
- Views: 1194
Re: How to protect my AHK scripts?
I think AutoHotkey_H still has the /nodecompile option which may be enough protection (don't know how it works but no doubt documented somewhere on the forum)
- 15 Nov 2022, 12:41
- Forum: Scripts and Functions (v1)
- Topic: [Class] WinHook
- Replies: 54
- Views: 27029
Re: [Class] WinHook
Useful tips, thanks. I'll play around with it and see how it works out.
- 14 Nov 2022, 16:59
- Forum: Scripts and Functions (v1)
- Topic: [Class] WinHook
- Replies: 54
- Views: 27029
Re: [Class] WinHook
Thank you for your reply, I hadn't noticed the report method. Reason I'm looking into it is that in my F4MiniMenu script (a script to open one or multiple files for editing in one or more programs simultaneously) is that I'm currently using WinWait for the program to start - but some programs - such...
- 13 Nov 2022, 04:44
- Forum: Scripts and Functions (v1)
- Topic: [Class] WinHook
- Replies: 54
- Views: 27029
Re: [Class] WinHook
I'm not sure if I want to use this but
1) how do do you know if a WinHook is already created (apart from keeping track of it yourself)
2) does it matter if you create the same hooks again and again; and is there a practical limit
1) how do do you know if a WinHook is already created (apart from keeping track of it yourself)
2) does it matter if you create the same hooks again and again; and is there a practical limit
- 11 Nov 2022, 17:59
- Forum: Ask for Help (v1)
- Topic: How to copy the FULL file to clipboard from specific path?
- Replies: 8
- Views: 4658
Re: How to copy the FULL file to clipboard from specific path?
I've had good success with just me's ClipboardSetFiles() viewtopic.php?p=63914#p63914
- 06 Nov 2022, 05:32
- Forum: Scripts and Functions (v1)
- Topic: Itemlist extension
- Replies: 8
- Views: 1031
Re: Itemlist extension
ItemList can be useful, it is often easy to build a quick list "item1|item2|item3" which you can easily parse using a loop or use for a "RegExMatch" or "InStr" to see if it matches a criteria - this library will make it easier to work with such list variables. I suggest you edit the first post with ...
- 05 Nov 2022, 04:42
- Forum: Scripts and Functions (v1)
- Topic: Itemlist extension
- Replies: 8
- Views: 1031
Re: Itemlist extension
Useful example, thank you. Reminds me of SafeArray by Infogulch and List by laszlo
https://www.autohotkey.com/board/topic/32078-lib-simplearray-short-fast-string-array-v35/ (I should still have this somewhere I think)
https://www.autohotkey.com/board/topic/3020-list-manipulation-functions/
https://www.autohotkey.com/board/topic/32078-lib-simplearray-short-fast-string-array-v35/ (I should still have this somewhere I think)
https://www.autohotkey.com/board/topic/3020-list-manipulation-functions/
- 02 Nov 2022, 17:55
- Forum: Scripts and Functions (v1)
- Topic: Itemlist extension
- Replies: 8
- Views: 1031
Re: Itemlist extension
How about a short example script to show what it does and which data it can process?
If that makes people curious they can use Google translate to see the descriptions for the functions.
If that makes people curious they can use Google translate to see the descriptions for the functions.
- 01 Nov 2022, 15:27
- Forum: Off-topic Discussion
- Topic: IE's dead.
- Replies: 37
- Views: 14022
Re: IE's dead.
Still a few more months to enjoy IE11 Still using Internet Explorer 11 on Windows 10? It will be disabled in February 2023
https://www.ghacks.net/2022/10/30/still-using-internet-explorer-11-on-windows-10-it-will-be-disabled-in-february-2023/
https://www.ghacks.net/2022/10/30/still-using-internet-explorer-11-on-windows-10-it-will-be-disabled-in-february-2023/