Skip to content

Commit

Permalink
Added edit option
Browse files Browse the repository at this point in the history
Added "Edit" to the right-click context menu.
  • Loading branch information
Masonjar13 authored May 12, 2018
1 parent 00dff18 commit 132c9db
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Lib/guis.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@ menu,cmain,add,Reload,reloadScript
menu,cmain,add,Pause,pauseScript
menu,cmain,add,Suspend,suspendScript
menu,cmain,add,Open ListLines,listlinesScript
menu,cmain,add,Edit,editScript
menu,cmain,add,Remove,removeScript
menu,cmain,add,Execute Code,execScript
14 changes: 12 additions & 2 deletions src/ScriptUp.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@ lv_getText(listlinesScript,selectedRow)
sList.listlines(listlinesScript)
return

editScript:
gui,main:default
lv_getText(editScript,selectedRow)
for i,a in sList.scripts{
if(a.name=editScript){
run,% "edit """ . a.path . """"
break
}
}
return

pauseScript:
gui,main:default
lv_getText(pauseScript,selectedRow)
Expand Down Expand Up @@ -208,7 +219,6 @@ splitPath,nDllPath,,fileLastDir

; std or mini
nDllType:=inStr(a_thisMenuItem,"Std")?"Std":"Mini"

sList.setDll(nDllType,nDllPath)
return

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

0 comments on commit 132c9db

Please sign in to comment.