Perhaps someone likes the possibility to reach DPLOT functions with only one keyboard action. I do not like to switch through the menu so much for some repeated action (e.g. like killing peak values with Delete Points in Box).
I would like to present my AHK script to all users of this great program. Of course one can change it or implement more or different shortcuts.
It presently uses and overrides some ALT + XY keys for my convenience (but only inside DPLOT). It also starts an instance of DPLOT and shows a splashtext. Below this splashtext-line you can see which keys are defined.
Cut this text below and save it as you like *.AHK.
I also use an autohotkey script to create a macro being activated after loading a Labview LVM data file via command line option. It creates custom titles (overriding the header text lines) and customizes some things according to the file being chosen from a generated filelist. Maybe someone else finds this usefull too...
Perhaps you have more ideas to get some work automated with autohotkey.
Best regards, HaJo
;AHK DPLOT SCRIPT STARTS HERE
#SingleInstance Force
run, %ProgramFiles%\dplot\dplot.exe
Menu, Tray, Icon, %ProgramFiles%\dplot\dplot.exe, 1
Menu, Tray, Tip, DPLOT AHK Enhanced
winwait, DPlot
SplashTextOn,300,280,DPlot AHK - Shortcuts;,
(
ALT S: Symbol/LineStyles
ALT E: Extents/ Intervalls / Size
ALT C: Set Colors
ALT R: Reference Lines
ALT Q: Toggle Cursor
ALT Y: Generate Y(x)-Graph
ALT A: Scan Graph
ALT D: Get Distance
ALT H: Hide Lines
ALT P: Delete Points in Box
ALT N: Notes
ALT Z: Zoom In
ALT T: Title/Axes
ALT U: Undo
)
xcoord:=A_ScreenWidth/2-150
WinMove, DPlot AHK -, , %xcoord%, 86
SetTimer KillSplash,10000
winwaitclose,DPlot
ExitApp
#IfWinActive ahk_class DPLOT
;DPLOT Shortcuts with ALT-key (symbol !):
!S::
WinMenuSelectItem, , , Options, Symbol/Line Styles
TrayTip,DPLOT AHK,Symbol/Line Styles...,10
Return
!E::
WinMenuSelectItem, , , Options, Extents
TrayTip,DPLOT AHK,Change Extents...,10
ToolTip,Change Extents
SetTimer RemoveToolTip,3000
Return
!C::
WinMenuSelectItem, , , Options, Colors, Edit
TrayTip,DPLOT AHK,Edit Colors...,10
Return
!R::
WinMenuSelectItem, , , Options, Reference
TrayTip,DPLOT AHK,Edit Reference Lines...,10
Return
!Y::
WinMenuSelectItem, , , Generate, Y=
TrayTip,DPLOT AHK,Generate Graph...,10
Return
!A::
WinMenuSelectItem, , , Info, Scan
TrayTip,DPLOT AHK,Scan...,10
ToolTip,Scan
SetTimer RemoveToolTip,2000
Return
!D::
WinMenuSelectItem, , , Info, Distance
TrayTip,DPLOT AHK,Distance...,10
ToolTip,Distance
SetTimer RemoveToolTip,2000
Return
!H::
WinMenuSelectItem, , , View, Hide
TrayTip,DPLOT AHK,Hide Curve...,10
Return
!P::
WinMenuSelectItem, , , Edit, Delete Points
TrayTip,DPLOT AHK,Delete Points in Box...,10
ToolTip,Delete Point in Box
SetTimer RemoveToolTip,2000
Return
!Z::
WinMenuSelectItem, , , View, Zoom In
TrayTip,DPLOT AHK,Zoom In...,10
ToolTip,Zoom In
SetTimer RemoveToolTip,2000
Return
!T::
WinMenuSelectItem, , , Text, Title
TrayTip,DPLOT AHK,Title/Axes...,10
ToolTip,Title/Axes
SetTimer RemoveToolTip,2000
Return
!Q::
Send !VC
TrayTip,DPLOT AHK,Toggle Cursor...,10
ToolTip,Toggle Cursor
SetTimer RemoveToolTip,2000
Return
!U::WinMenuSelectItem, , , Edit, Undo
!N::WinMenuSelectItem, , , Text, Add/Edit Note
RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
Return
KillSplash:
SplashTextOff
Return
Fast keyboard shortcuts with Autohotkey
Moderator: DPlotAdmin
- DPlotAdmin
- Posts: 2312
- Joined: Tue Jun 24, 2003 9:34 pm
- Location: Vicksburg, Mississippi
- Contact:
Thanks for pointing this tool out. I'll definitely give it a look.
Visualize Your Data
support@dplot.com
support@dplot.com