Search found 32 matches

by neogna2
13 Apr 2019, 07:11
Forum: Tutorials
Topic: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)
Replies: 18
Views: 7096

Re: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)

Thank you, I really appreciate that you're so helpful and post all these great resources in the forum. I had missed that Acc_ObjectFromPoint optionally accepted an X Y screen position as parameters. For example x := 200, y := 150 oAcc := Acc_ObjectFromPoint(vChildID, x, y) That approach works well i...
by neogna2
13 Apr 2019, 02:06
Forum: Tutorials
Topic: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)
Replies: 18
Views: 7096

Re: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)

How can we use Acc to get the path (for example 4.3.2.4.2.1.1.2.3 ) to an element that is shown only when the mouse hovers over a location of the window but that element is to the side of the mouse and not directly under it? For example statusbar text in some browsers behaves like that, it is tempor...
by neogna2
24 Mar 2019, 04:20
Forum: Tutorials
Topic: jeeswg's Explorer tutorial
Replies: 9
Views: 6639

Re: jeeswg's Explorer tutorial

jeeswg wrote:
23 Mar 2019, 18:17
- @neogna2: Here's a COM object approach
Thank you!
by neogna2
23 Mar 2019, 17:48
Forum: Tutorials
Topic: jeeswg's Explorer tutorial
Replies: 9
Views: 6639

Re: jeeswg's Explorer tutorial

jeeswg, or anyone else reading, do you know a PostMessage or other method to *read* the current sort mode from an Explorer Window? Both which column is used to sort and which order of ascending/descending.
by neogna2
08 Mar 2019, 03:16
Forum: Wish List
Topic: Is there an online compiler?
Replies: 30
Views: 10379

Re: Is there an online compiler?

I don't think that a different script name would change the result. There are however other properties that you can add when compiling the script that would cause a different output. I didn't mean filename but file encoding. Even though UTF-8 BOM is strongly adviced in the AutoHotkey FAQ some .ahk ...
by neogna2
03 Mar 2019, 16:23
Forum: Wish List
Topic: Is there an online compiler?
Replies: 30
Views: 10379

Re: Is there an online compiler?

The AHK compiler essentially just makes a copy of autohotkey.exe and adds the script as a resource to it. So yes, builds are reproducible as long as the AHK version is the same. Good. I assume that in addition to AutoHotkey version differences the exe would also vary with the file encoding of the ....
by neogna2
22 Feb 2019, 13:46
Forum: Wish List
Topic: Is there an online compiler?
Replies: 30
Views: 10379

Re: Is there an online compiler?

Let me brainstorm a bit here. Could an official online compiler be useful in response to the problem of false positives for compiled AutoHotkey scripts? I'm thinking it would enable an intermediary between (1) the script developer posts a compiled binary .exe and the user chooses to trust that there...
by neogna2
09 Dec 2018, 05:43
Forum: Tutorials
Topic: jeeswg's Explorer tutorial
Replies: 9
Views: 6639

Re: jeeswg's Explorer tutorial

;PostMessage, 0x111, 31492,, SHELLDLL_DefView1, A ;View, Sort by, Name ;toggle ascending/descending In Windows 10 that message toggles sort ascending/descending for the first column whichever column that is . For example if the user has dragged to rearrange columns so that the Type column is first ...
by neogna2
09 Dec 2018, 04:37
Forum: Ask For Help
Topic: when i run scripts as admin and use hotkeys apps that open, run also as admin.
Replies: 3
Views: 342

Re: when i run scripts as admin and use hotkeys apps that open, run also as admin.

https://autohotkey.com/docs/commands/RunAs.htm
Specifies a set of user credentials to use for all subsequent uses of Run and RunWait.

Code: Select all

RunAs, UserName, MyPassword
Run, RegEdit.exe
RunAs  ; Reset to normal behavior.
by neogna2
01 Sep 2018, 14:02
Forum: Scripts and Functions
Topic: Explorer window interaction (folder windows/Desktop, file/folder enumeration/selection/navigation/creation)
Replies: 15
Views: 3859

Re: Explorer window interaction (folder windows/Desktop, file/folder enumeration/selection/navigation/creation)

Another issue with JEE_ExpOpenContainingFolderEx() specifically this line

Code: Select all

&& (vDir = oWin.Document.Folder.Self.Path)
If vPath is in a root folder like C:\ and a File Explorer window at C:\ is already open then vDir = "C:" but oWin.Document.Folder.Self.Path = "C:\"
by neogna2
31 Aug 2018, 17:11
Forum: Scripts and Functions
Topic: Explorer window interaction (folder windows/Desktop, file/folder enumeration/selection/navigation/creation)
Replies: 15
Views: 3859

Re: Explorer window interaction (folder windows/Desktop, file/folder enumeration/selection/navigation/creation)

JEE_ExpOpenContainingFolderEx() does not detect the already existing window in Windows 10 because Explorer has a new name there. To fix that change this line if (oWin.Name = "Windows Explorer") to if (oWin.Name = "File Explorer") or to make the function compatible with both Windows 10 and older Win...
by neogna2
16 May 2018, 16:35
Forum: Ask For Help
Topic: detect if a file is in the process of being written? Topic is solved
Replies: 5
Views: 569

Re: detect if a file is in the process of being written? Topic is solved

I find no thread here on ImageMagick from the last year. There are a few older threads. But the code is more complicated compared to only controlling ImageMagick over command line and I found no parallel processing examples. The FileMove method above works ok so I'm set for now. But I'm still curiou...
by neogna2
16 May 2018, 12:49
Forum: Ask For Help
Topic: detect if a file is in the process of being written? Topic is solved
Replies: 5
Views: 569

Re: detect if a file is in the process of being written? Topic is solved

When you use the Run command, are you able to return a Process ID Number ( PID ) Run,,,, OutputVarPID ?? You can use this PID in conjunction with a either a SetTimer , a Loop , or an event handler that evaluates if FileExist( "ahk_pid " OutputPID ) . Wouldn't waiting until each identified ImageMagi...
by neogna2
11 May 2018, 07:54
Forum: Ask For Help
Topic: detect if a file is in the process of being written? Topic is solved
Replies: 5
Views: 569

detect if a file is in the process of being written? Topic is solved

Can AutoHotkey detect if a file is in the process of being written by another program/Windows? Background: I'm making a script that modifies images using the ImageMagick command line tool. I want the script to continue only after the ImageMagick output files are completely written. I tried waiting f...
by neogna2
01 May 2018, 08:30
Forum: Tutorials
Topic: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)
Replies: 18
Views: 7096

Re: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)

I've improved AccViewer Basic to better support accSelection (multiple items selected) and accState (provide friendly text for all of an item's state flags). Useful! On small thing is that the Name contents placed first in the tooltip can be very long for example when viewing the text pane of Notep...
by neogna2
27 Apr 2018, 07:26
Forum: Tutorials
Topic: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)
Replies: 18
Views: 7096

Re: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)

Thanks for the reply
jeeswg wrote: - accFocus returns the index of the focused item.
Ok, that explains why it returns 0 when the URL bar has focus.
by neogna2
27 Apr 2018, 03:26
Forum: Tutorials
Topic: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)
Replies: 18
Views: 7096

Re: jeeswg's Acc tutorial (Microsoft Active Accessibility) (MSAA)

Do you know how to use Acc to check if an element has keyboard focus? Specifically I want to check if the URL bar in Firefox and Chrome has keyboard focus or not. This MSDN page seems relevant, but I couldn't figure out the syntax for it in AutoHotkey with Acc.ahk edit: fixed URL edit2: solved it af...
by neogna2
13 Mar 2018, 17:07
Forum: Ask For Help
Topic: Refresh System tray Icons Topic is solved
Replies: 19
Views: 5296

Re: Refresh System tray Icons Topic is solved

Soo, having upgraded to W10 recently, I noticed this doesn't work anymore. Here's the version I came-up with Thank you for the script. It worked for me in Win10 after I modified this line allControls := ["ToolbarWindow321" ,"ToolbarWindow322" ,"ToolbarWindow323" ,"ToolbarWindow324"] into allControl...
by neogna2
24 Feb 2018, 14:51
Forum: Editors
Topic: Atom AHK Support
Replies: 13
Views: 8937

Re: Atom AHK Support

I took another look at getting better AutoHotkey syntax highlight in Atom. No solution yet, but here are some notes. There are two separate Sublime syntax files for AutoHotkey here https://github.com/ahkscript/SublimeAutoHotkey/blob/master/AutoHotkey.tmLanguage https://github.com/cocobelgica/Subl-Au...
by neogna2
06 Feb 2018, 05:45
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 572
Views: 124294

Re: Suggestions on documentation improvements

suggestion 1: make Autohotkey Help default to the Index pane, not Content. suggestion 2: searching (ctrl+F) used to stay within the right side big window pane. But now the search first finds matches in the left side Index pane before searching text on the right side pane. Any way to force the search...

Go to advanced search