Search found 403 matches

by TheArkive
06 Nov 2019, 02:09
Forum: Ask For Help
Topic: Extract icon index from ListView/TreeView item/row Topic is solved
Replies: 11
Views: 1780

Re: Extract icon index from ListView/TreeView item/row Topic is solved

- Interesting idea, which I've written some code for. I could imagine it being useful for listview/treeview items that indicate different states. - Did you have any particular programs in mind? (I at least needed some example programs to test it on, fortunately I thought of a few.) ... - Btw nice a...
by TheArkive
26 Oct 2019, 09:40
Forum: Ask For Help
Topic: Extract icon index from ListView/TreeView item/row Topic is solved
Replies: 11
Views: 1780

Extract icon index from ListView/TreeView item/row Topic is solved

Is there a way to extract an icon index from a ListView/TreeView row/item? Of course the index would be in relation to the associated ImageList. I've looked up several SendMessage codes to try and at least get a bearing on where to start. Having some issues determining of this is even possible? EDIT...
by TheArkive
28 Sep 2019, 03:43
Forum: Ask For Help
Topic: Understanding lParam / wParam - WM_MOVE message Topic is solved
Replies: 4
Views: 872

Re: Understanding lParam / wParam - WM_MOVE message Topic is solved

Wow guys! Thanks for this! I'll dive into Wikipedia and try to educate myself. Thanks for the knowledge, explanation, and AutoHotkey examples. That will help me tie things together in my brain. Thanks again! EDIT: jeeswg & Odlanir I have been looking for the equivelant of these functions for a while...
by TheArkive
16 Sep 2019, 18:58
Forum: Scripts and Functions
Topic: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node
Replies: 11
Views: 2572

Re: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node

rommmcek wrote:
16 Sep 2019, 11:45
P.s: Not happy with double click, cause it interferes with TreeView expand/collapse feature.
You can force a re-expand with TV_Modify(ID,"Expand Vis") ... or something like that. I've done that on one of my scripts. A little messy, but works.
by TheArkive
16 Sep 2019, 01:59
Forum: Scripts and Functions
Topic: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node
Replies: 11
Views: 2572

Re: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node

Thanks for explanation! Now I think I get it. I tried to save tree structure from Ahk Example and your function works great! Thanks for Ideas too, but don't bother with the exemple, I have to figure it out by myself! No problem! Glad I could help. I almost forgot ... try not to put a semicolon (";"...
by TheArkive
14 Sep 2019, 23:36
Forum: Scripts and Functions
Topic: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node
Replies: 11
Views: 2572

Re: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node

Comments or just empty lines would improve readability of ServiceTree data for sure. The data in that file isn't really meant to be ready by human eyes. It's like a binary data file, it's read by a computer / script / program. The idea is to launch sites from tree. Any time saving idea? Ok now I un...
by TheArkive
14 Sep 2019, 07:34
Forum: Scripts and Functions
Topic: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node
Replies: 11
Views: 2572

Re: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node

I would add a way to have comments in the file to read and skip over... Skipping comments with ";" "#" or "//" is easy enough. What wold be the point though? The format of the file is linear, but the data expresses a structure that is NOT linear. Unless the comments are up top to try and explain so...
by TheArkive
13 Sep 2019, 18:02
Forum: Scripts and Functions
Topic: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node
Replies: 11
Views: 2572

Re: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node

Thanks for the code, I think it could be quite useful! Q: The format in the .txt file, is it kind of standard or did you invent it for that purpose? I came up with that format just for this purpose. Since the ID's can't be replicated in a different instance of another TreeView, the structure has to...
by TheArkive
13 Sep 2019, 04:58
Forum: Ask For Help
Topic: Help with Run
Replies: 2
Views: 321

Re: Help with Run - environment variables

You need to use EnvGet in order to pull the environment variable out and put it into an AutoHotkey variable. You can also take out #NoEnv from your script. Usualy #NoEnv is put in to prevent checking empty variables to see if they have a corresponding environment variable. As long as you don't ever ...
by TheArkive
13 Sep 2019, 04:43
Forum: Ask For Help
Topic: Identifying unique strings in a block of text
Replies: 32
Views: 3412

Re: Identifying uniue strings in a block of text

Thanks for the advice. Are you aware of code snippet to look at? What you are looking for is InStr() . Specifically: MyVar := InStr("some block of text","block") MsgBox %MyVar% The above MsgBox message would display "6" because the word "block" starts on character position 6 in the string "some blo...
by TheArkive
13 Sep 2019, 04:34
Forum: Ask For Help
Topic: Adress File or Folder to Clipboard
Replies: 7
Views: 959

Re: Adress File or Folder to Clipboard

One easy way, without AutoHotkey is to use SHIFT + Right-Click, and select "Copy as Path". The only downside (for you I think) is that when copied, the path is in quotes, but those should be easy enough to remove for whatever you need.
by TheArkive
13 Sep 2019, 04:27
Forum: Ask For Help
Topic: ListView Number sorting problem
Replies: 5
Views: 795

Re: ListView Number sorting problem

If I'm not mistaken, you need to use: LV_ModifyCol(ColNum,"Integer") ...right after you create the ListView in order to set that column to data type integer. Otherwise, the sorting you see is normal for how numbers are sorted when the sorting scheme (or data type) is for text (strings). Give that a ...
by TheArkive
13 Sep 2019, 04:03
Forum: Ask For Help
Topic: Understanding lParam / wParam - WM_MOVE message Topic is solved
Replies: 4
Views: 872

Understanding lParam / wParam - WM_MOVE message Topic is solved

I'm trying to get into fully wrapping my brain around windows messages. I'm starting with WM_MOVE, lParam. https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-move How exactly are the x/y coordinates stored in lParam? Are they just single 2-character hex bytes smashed together to get a total of...
by TheArkive
11 Sep 2019, 01:29
Forum: Ask For Help
Topic: Saving and loading a TreeView
Replies: 10
Views: 1958

Re: Saving and loading a TreeView

I know this is kinda old, but I wanted to add something that might help. I posted my solution in the Scripts and Functions forum. https://www.autohotkey.com/boards/viewtopic.php?f=6&t=67922 This solution works perfect for me and is easily plug-n-play. It also saves all attributes such as checked, bo...
by TheArkive
11 Sep 2019, 01:11
Forum: Scripts and Functions
Topic: Save/Load a TreeView and save Check/Bold/Expanded attributes for each node
Replies: 11
Views: 2572

Save/Load a TreeView and save Check/Bold/Expanded attributes for each node

EDIT: Function modified for simplicity and examples given for proper handling. I recently came across the need for this and wanted to share. Hope this helps someone. I only saw 2 questions like this on the forum, one of which was in the archvies. The core functions are SaveTree() and LoadTree() . S...
by TheArkive
10 Sep 2019, 07:46
Forum: Scripts and Functions
Topic: ListView - Capture Left-Click with OnMessage() no AltSubmit - UPDATED 2019/10/04
Replies: 0
Views: 614

ListView - Capture Left-Click with OnMessage() no AltSubmit - UPDATED 2019/10/04

Why? I have several uses for detecting a single Left-Click as well as a left double-click. Using no AltSubmit results in the LButton not being detected and the gLabel not even firing. Using AltSubmit ends up missing double-click events when I am also trying to capture single-click via "Normal", unle...
by TheArkive
09 May 2018, 10:57
Forum: Scripts and Functions
Topic: Multi-Click any button - and modify the output
Replies: 0
Views: 700

Multi-Click any button - and modify the output

I've seen some variations on this, and I apologize for not remembering the exact thread I got the idea from, but I did get this idea, and the base of the code to do it, from AHK forums. Please feel free to claim the code (and post a link to your thread/reply). If I'm not mistaken it was an "ask for ...
by TheArkive
11 Apr 2017, 11:23
Forum: Ask For Help
Topic: RegEx Match syntax for ASCII in hex? \0x00 style?
Replies: 3
Views: 978

Re: RegEx Match syntax for ASCII in hex? \0x00 style?

Just wanted to say I did check the documentation, several times. Found several bits about \p(xx) and [:ascii:] but nothing about any variation of specifying a specific non-printable character. EDIT: Does RegExMatch() go past NUL characters? Or does that stop it dead in its tracks? The binary data I'...
by TheArkive
11 Apr 2017, 11:11
Forum: Ask For Help
Topic: RegEx Match syntax for ASCII in hex? \0x00 style?
Replies: 3
Views: 978

RegEx Match syntax for ASCII in hex? \0x00 style?

I'm trying to find the equivalent of how to express individual ASCII \x00 or \0x00. I've tried a few variations, but I can't even match a single x0 / x00 / 0x00 / \x0 / \x00 / \0x00, etc... Is it possible in the AHK flavor of regex to do this? Here's my code so far: FileRead, binData, *c %IndexFile%...
by TheArkive
09 Apr 2017, 11:35
Forum: Ask For Help
Topic: Add script compiled exe path to system %PATH% / get working dir when run?
Replies: 2
Views: 692

Add script compiled exe path to system %PATH% / get working dir when run?

If I make a script, compile it, and add the path to the exe in my system %PATH% environment variable... then run it on the command line, is there a variable or function built-in that will return the working dir as run from the command line? ... without the need to pass the %CD% environment var (the ...

Go to advanced search