Thanks for this, I have been having a fiddle and I think I can improve the workflow:
I have written a proof of concept
Autohotkey script to automate the process of getting the data from Maptool into Notepad++
Usage:
1) Set the Hotkey for Edit Token to F9.
2) Make sure Notepad++ is open.
3) Click Edit Token, and undock the window. It MUST be floating for this to work at the moment.
4) Close (X in top right) the Edit Token window.
5) Install Autohotkey, save the script below to an .ahk file, and double click it. You should have a green icon with a white H in your taskbar.
6) Hit F12 - this should open the "Edit Token" window, click Load, hit Enter to pass the dialog, click in the text box, hit ctrl+a, ctrl+c, tab into Notepad++ and hit ctrl-a, ctrl-v
CAVEATS:
No error checking at the moment, assumes it is going to work.
I suspect that if you have a different version (ie not Sun) of Java installed, it may not work.
May not work if font sizes are different or something - it is based on pixel offsets.
To Alias:
Is it maybe possible to add a Prefix to the name of the window? Maybe if you could I could get this to work with a docked dialog.
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
coordmode, mouse, window
loadx = 75
loady = 70
textx = 50
texty = 150
savex = 160
savey = 70
closex = 595
closey = 10
F12::
WinActivate, ahk_class SunAwtFrame
send {F9}
WinWait,ahk_class SunAwtDialog, , 2
MouseMove, %loadx%, %loady%
Click
WinWait,ahk_class SunAwtDialog, , 2
Send {Enter}
Sleep, 1000
MouseMove, %textx%, %texty%
Click
Send, ^a
Send, ^c
MouseMove, %closex%, %closey%
Click
WinActivate, ahk_class Notepad++
Send, ^a
Send, ^v
return