2015/02/01 08:14:17
BobF
A way to edit this list would be handy.  The only way to remove an item from the list from within Sonar is to delete or move the project folder, then select the project from the list.  Sonar will then report an error and remove the project from the list.
 
Yes, I realize this is small in the grand scheme.  I'm putting it here so it can be documented and maybe addressed when somebody is doing other work nearby anyway 
 
UPDATE:  As the above process crashes Sonar, it is a big deal after all. 
2015/02/01 14:11:28
Kev999
BobF
A way to edit this list would be handy.  The only way to remove an item from the list...

 
Isn't this a Windows issue rather than a Sonar one? Try deleting the relevant project's shortcut the from the Window's "Recent" folder. [Sorry that I can't advise right now about where to find this folder, as I am currently sitting in front of an XP machine].
2015/02/01 14:25:10
BobF
I see it as cake issue since cake decided to use the win implementation, which has people in the registry to deal with it.
 
The crash is definitely Sonar.  I'll try to find where you mentioned .
2015/02/01 14:30:54
scook
The file names are stored in HKEY_CURRENT_USER\Software\Cakewalk Music Software\SONAR\Platinum\Recent File List.
2015/02/01 14:36:37
BobF
scook
The file names are stored in HKEY_CURRENT_USER\Software\Cakewalk Music Software\SONAR\Platinum\Recent File List.




yep, that's what I was referring to when I mention having people in the registry
2015/02/01 18:52:02
scook
Here is an autohotkey script bound to Windows+R to delete selected projects from the recent file list in SONAR Platinum
 
#r::
  ;HKCU path, modify for your version of SONAR
  recentFileList := "Software\Cakewalk Music Software\SONAR\Platinum\Recent File List"
  varCount = 0 ; count of registry entries with data
  totalCount = 1 ; total count of registry entries
 
  Gui, New, , SONAR Recently Used List
  Gui, Add, Text, , Check items to delete then click OK
  ; loop to create check list of projects from registry Recent File List
  Loop, Reg,  HKEY_CURRENT_USER\%recentFileList%, V
  {
    RegRead, value
    If ErrorLevel
    {
      MsgBox, 16, Error, Unable to read %A_LoopRegName%
      Goto GuiClose
    }
    
    ; only show checkboxes for keys with data
    if value
    {
      Array%A_Index% := value
      Gui, Add, Checkbox, vFile%A_Index%, %value%
      varCount += 1
    }
    totalCount += 1
  }
  Gui, Add, Button, w60 default xm Section, OK
  Gui, Add, Button, x+80 ys w60, &Cancel
  Gui, Show
  Return

ButtonOK:
  Gui, Submit
  Gui, Cancel
  keyCount = 1 ; used to create registry keys
  ; loop to write out unchecked projects
  Loop, %varCount%
  {
    variable := File%A_Index% ; checkbox variables
    element := Array%A_Index% ; registry string values
    IfEqual, variable, 0
    {
      RegWrite, REG_SZ, HKEY_CURRENT_USER, %recentFileList%, File%keyCount%, %element%
      keyCount += 1
    }
  }
  ; loop to delete extra keys
  While keyCount < totalCount
  {
    RegDelete, HKEY_CURRENT_USER, %recentFileList%, File%keyCount%
    keyCount += 1
  }
 
ButtonCancel:
GuiClose:
GuiEscape:
  Gui, Destroy
  ExitApp


Edit: updated code
2015/02/02 13:56:58
panup
Removing recent file items is also possible in Duckbar version 2.2.7 or newer:
 

 
In Duckbar you can also save / recall lists and clear all items at once.
2015/02/03 09:14:36
BobF
panup
Removing recent file items is also possible in Duckbar version 2.2.7 or newer:
 

 
In Duckbar you can also save / recall lists and clear all items at once.


Nice
I just visited and tried it out.  See "I don't get it" at the DB forum
© 2024 APG vNext Commercial Version 5.1

Use My Existing Forum Account

Use My Social Media Account