ArcMap comands

Get help with using AutoHotkey and its commands and hotkeys
skin
Posts: 1
Joined: 03 Nov 2017, 08:18

ArcMap comands

03 Nov 2017, 08:51

Hi,

I'm working in ArcMap 10.5 and would like to run some autokeys.
ArcMap has several "windows" inside. One of them is Table of Contents.
Inside there are layers.
I need to do following:
1. Select one layer inside TOC window inside ArcMap(I would do that manually)
2. Right click
3. Send E, Send E, Send {right}, Send S
4. Right click
5. Send S, Send M

Problem is I can't get this commands to work and I think problem is in identifying right window.
First set of commands under 2 and 3 are shown in video below at 42 second of video:


When I click random layer WinSpy say:
ahk_exe ArcMap.exe
ClassNN: SysTreeView325
Text: Tree1

All I have so far is:

Code: Select all

SetTitleMatchMode 2
#IfWinActive ArcMap
SetKeyDelay,25,25 
q::
click, right
Send, S
Send, M
; Start EDITING
Click, Right
Send, E
Send, E
Send {Right}
Send, S
What am I doing wrong? Thnx in advance.
bordop
Posts: 10
Joined: 03 Jun 2018, 23:03
GitHub: bordop

Re: ArcMap comands

21 Aug 2018, 11:07

Hi there, I have been making all sorts of commands for ArcMap for a while now. Something similar to what you desire (to begin editing a layer) I have set up like this:

#IfWinActive, ahk_exe ArcMap.exe
^RButton:: ;Begin Editing layer when selected in TOC
{
Click, Right
Send, {e 2}
Send, {Right} {Enter}
return
}

Hold down control and right-click the layer to begin editing.

I find the most reliable way to send clicks with ArcMap is by using the FindText application that another user developed and you can find it on the boards.

Return to “Ask For Help”

Who is online

Users browsing this forum: ader5429, AHKStudent, brotherS, btonasse, dreamery16, Google [Bot], kczx3, Lem2001, Visioneer and 53 guests