Skip to content

Commit 132c9db

Browse files
authored
Added edit option
Added "Edit" to the right-click context menu.
1 parent 00dff18 commit 132c9db

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/Lib/guis.ahk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@ menu,cmain,add,Reload,reloadScript
6969
menu,cmain,add,Pause,pauseScript
7070
menu,cmain,add,Suspend,suspendScript
7171
menu,cmain,add,Open ListLines,listlinesScript
72+
menu,cmain,add,Edit,editScript
7273
menu,cmain,add,Remove,removeScript
7374
menu,cmain,add,Execute Code,execScript

src/ScriptUp.ahk

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,17 @@ lv_getText(listlinesScript,selectedRow)
101101
sList.listlines(listlinesScript)
102102
return
103103

104+
editScript:
105+
gui,main:default
106+
lv_getText(editScript,selectedRow)
107+
for i,a in sList.scripts{
108+
if(a.name=editScript){
109+
run,% "edit """ . a.path . """"
110+
break
111+
}
112+
}
113+
return
114+
104115
pauseScript:
105116
gui,main:default
106117
lv_getText(pauseScript,selectedRow)
@@ -208,7 +219,6 @@ splitPath,nDllPath,,fileLastDir
208219

209220
; std or mini
210221
nDllType:=inStr(a_thisMenuItem,"Std")?"Std":"Mini"
211-
212222
sList.setDll(nDllType,nDllPath)
213223
return
214224

@@ -241,4 +251,4 @@ isMoving(wparam,lparam,msg,hwnd){
241251
global stateUpInt,ghwnd
242252
if(hwnd=ghwnd || hwnd=ghwnd2 || hwnd=ghwnd3 || hwnd=ghwnd4)
243253
setTimer,checkStates,% getKeyState("LButton","P")?"Off":stateUpInt
244-
}
254+
}

0 commit comments

Comments
 (0)