Search found 193 matches

by JJohnston2
19 Sep 2017, 00:13
Forum: Scripts and Functions
Topic: Excel: get selection screen coordinates (selected cells)
Replies: 1
Views: 455

Re: Excel: get selection screen coordinates (selected cells)

Interesting idea. I like the proof of concept on translating screen coordinates, that may come in handy. Functionally, this doesn't do so well when the selected cell is off-screen (which would go for any highlight mechanism, except for in this case, the code draws a highlight box on top of the ribbo...
by JJohnston2
15 Sep 2017, 20:13
Forum: Ask For Help
Topic: Size the SciTE Output window
Replies: 1
Views: 319

Size the SciTE Output window

In SciTE there is an output window that can be used split screen. The class for the window on top is usually Scintilla1 and Scintilla2 for the window on bottom. The splitter bar in the middle appears to show SciTEWindowContent1, which actually encompasses both Scintilla1 and Scintilla 2, but draggin...
by JJohnston2
14 Jul 2017, 14:49
Forum: Ask For Help
Topic: .NET Windows
Replies: 3
Views: 356

Re: .NET Windows

I have just been coming up to speed on using the AccViewer recently... I'll check that out and see if it finds anything.

I saw some of the other posts you had on executing the default action for Excel buttons... are there any other neat things you know of that can be done with it?
by JJohnston2
14 Jul 2017, 02:37
Forum: Ask For Help
Topic: .NET Windows
Replies: 3
Views: 356

.NET Windows

I think SourceTree is written in .NET, the title/class/process info in Window Spy look like so: SourceTree ahk_class HwndWrapper[SourceTree.exe;;75302d1d-4350-49ed-81e5-c98f7e7b3b2d] ahk_exe SourceTree.exe No ClassNN values for any of the controls (mousing over things) Nothing for Status Bar Text No...
by JJohnston2
05 Jul 2017, 10:48
Forum: Ask For Help
Topic: A Better Way to Read Stdout
Replies: 3
Views: 1099

Re: A Better Way to Read Stdout

Didn't find these posts during previous searches... these look promising. Thanks.
by JJohnston2
05 Jul 2017, 00:32
Forum: Ask For Help
Topic: A Better Way to Read Stdout
Replies: 3
Views: 1099

A Better Way to Read Stdout

Does anyone have a good code example that shows stdout captured from a console command? Without a console window popping up Without redirecting command output to a file using > or >> and then reading the file Code below is from the RunWait help topic. It captures stdout from an executed command (or ...
by JJohnston2
02 Jul 2017, 18:09
Forum: Ask For Help
Topic: Capture all keystrokes on a GUI
Replies: 3
Views: 593

Re: Capture all keystrokes on a GUI

>Are you talking about an AHK gui/edit control? No. Talking about detecting keystrokes when a ListBox is active, not a an Edit control. >https://autohotkey.com/board/topic/5835 ... ompletion/ This auto-completion script is neat! Very close to the type of GUI interface I was looking for. I see the im...
by JJohnston2
30 Jun 2017, 17:09
Forum: Ask For Help
Topic: Capture all keystrokes on a GUI
Replies: 3
Views: 593

Capture all keystrokes on a GUI

If you open the "Run" dialog in Windows, you can type into an Edit control while simultaneously viewing a popup list of auto-complete options that can be navigated using up/down arrows. Even while you navigate this list with up/down arrows, you can also still continue to type (because the Edit contr...
by JJohnston2
30 Jun 2017, 16:38
Forum: Ask For Help
Topic: Most efficient way to do an array lookup
Replies: 13
Views: 1590

Re: Most efficient way to do an array lookup

@Helgef: InStr() will yield the search string location in bytes (characters), not in line numbers.
by JJohnston2
30 Jun 2017, 14:53
Forum: Ask For Help
Topic: Most efficient way to do an array lookup
Replies: 13
Views: 1590

Re: Most efficient way to do an array lookup

Thanks, this is very close to what I was considering doing but it would have taken me a while to get to what you are showing here. Also, if anyone wanders along later, it looks like the StringSplit function can be used regarding my original Question #1. This solution however needs the loop to assign...
by JJohnston2
30 Jun 2017, 13:53
Forum: Ask For Help
Topic: Most efficient way to do an array lookup
Replies: 13
Views: 1590

Most efficient way to do an array lookup

For... A search string I'd like to find in a text file The string will be an exact match of one full line in the text file, and one line only i.e., there are no duplicates in the file And if there were, only the first result is needed The files have potential to be thousands of lines long and maybe ...
by JJohnston2
03 May 2017, 23:42
Forum: Ask For Help
Topic: #Include lib\*.ahk Topic is solved
Replies: 2
Views: 495

Re: #Include lib\*.ahk Topic is solved

Already had a launcher running for the scripts that needed this, so this solution worked quite nicely without having to add very much... thanks.
by JJohnston2
26 Apr 2017, 17:54
Forum: Ask For Help
Topic: #Include lib\*.ahk Topic is solved
Replies: 2
Views: 495

#Include lib\*.ahk Topic is solved

Is it possible to include all function libraries in the lib\ folder via a single include statement somehow? For a few scripts I am calling functions via fn.call() where I want to automatically include libraries. Since the function isn't explicitly referenced, the include statements have to list the ...
by JJohnston2
05 Mar 2017, 21:19
Forum: Ask For Help
Topic: Set Script Icon in Alt+Tab Window
Replies: 3
Views: 679

Re: Set Script Icon in Alt+Tab Window

So the tray icon selector index (for lack of a better term) is not the same lookup number when used with the LoadImage DLL call, i.e., it does not reference the same icon. When the value 255 is used for the Tray Icon it yields one thing and when 255 is used for the Resource ID it yields another. I c...
by JJohnston2
04 Mar 2017, 20:36
Forum: Scripts and Functions
Topic: Animation on Mouse Click
Replies: 1
Views: 1173

Animation on Mouse Click

This is proof-of-concept code that will animate mouse clicks with concentric/fading circles that can be adjusted to taste. I wanted something like this to show an automated mouse-click event at a particular location--this demo code fires the animation any time the user clicks the mouse. It also requ...
by JJohnston2
12 Feb 2017, 22:55
Forum: Ask For Help
Topic: Detect Keys with RDP Full Screen
Replies: 1
Views: 247

Detect Keys with RDP Full Screen

When you are on a local machine that is connected via Remote Desktop to another machine and full screen mode is active locally, the local keystrokes pressed are sent to the remote machine. On the local machine, if an AutoHotkey script is running, the keystrokes (for the most part) will not be detect...
by JJohnston2
12 Feb 2017, 22:38
Forum: Ask For Help
Topic: What is the genuine shortcut key for turning off editing mode in MS Excel? Topic is solved
Replies: 11
Views: 1221

Re: What is the genuine shortcut key for turning off editing mode in MS Excel? Topic is solved

I stumbled upon the same solution recently (Ctrl+Enter) trying to get Jethrow's accessibility function to work more reliably when retrieving a reference to an Excel window in edit mode. I took the following approach (this particular syntax requires a separate function for ControlGetFocus()) xlWinTit...
by JJohnston2
30 Dec 2016, 02:59
Forum: Ask For Help
Topic: minimize/hide a process
Replies: 3
Views: 417

Re: minimize/hide a process

Looks like your pid variable would be null at the WinWait statement since you didn't add it as an argument to the Run command.
by JJohnston2
30 Dec 2016, 02:56
Forum: Ask For Help
Topic: Address Pointed to by Value in an Offset
Replies: 3
Views: 684

Re: Address Pointed to by Value in an Offset

Have you looked into possible Dll Calls that might be able to do that?

Go to advanced search