Oddly, I've found that this code occasionally fails....  
I'll experiment more to see if it just needs a "sleep" command, or what...  
 Occasionally (but not always) the branch will get moved to the wrong 
spot.   There are two erroneous places that it sometimes goes.  Sometimes, 
it gets moved below the last sub-branch, of the last folder, in the current 
parent folder (i.e. gets moved to the end of its siblings and put at the 
bottom of the last sibling's kids).  Other times (and more often) it gets 
moved to the very last folder in the entire outline, and placed after the 
last child of that folder.  Like the very last possible spot.  


On Wednesday, March 17, 2021 at 3:23:19 AM UTC-7 richar...@gmail.com wrote:

> Definitely going to try this out, thanks for sharing :-)
>
> On Tuesday, 16 March 2021 at 16:21:46 UTC kunk...@gmail.com wrote:
>
>> I've noted there are a few AutoHotkey users on the forum, so I thought 
>> I'd share this bit of code.  I've been using it for a while--seems to work 
>> well.  
>>
>> My own custom MLO setup has a parent branch "COMPLETED" where I move 
>> completed cases (child branches) to.  Also, I have a context called 'Done' 
>> which is set with Ctrl+Alt+Shift+D.  I believe the rest of the below 
>> actions are using the default hotkeys(?)
>>
>> The below script high jacks  Ctrl+Alt+Shift+D and does the steps.  It's 
>> 'context-sensitive' though and only works if activated when a window 
>> containing "MyLifeOrganized" in the title is active.  For this reason, make 
>> sure that TitleMatchMode is set for 2. 
>>
>>
>> #NoEnv ; For security
>> #SingleInstance force ; If it gets restarted, kill and usurp the old 
>> process in RAM.
>> #Persistent ; Keep on keeping on.
>> SetTitleMatchMode, 2 ; Win titles must contain specified string (doesn't 
>> have to be at beginning of title).
>>
>> #IfWinActive, MyLifeOrganized
>> !^+d:: 
>> send,!^+d ; I have a Context "Done" that is set with Alt+Ctrl+Shift+d
>> send,!^+r ; "Replaces contexts in all subtasks..." is set with 
>> Alt+Ctrl+Shift+r
>> WinWaitActive, Confirm ; "Replaces contexts in all subtasks..." results 
>> in a confirmation window. 
>> send,{Enter} ; Closes confirmation window.
>> send,^m ; Default hotkey for "Move." 
>> WinWaitActive, Move task - select new parent
>> send,COMPLETED{Down}{Down}{Enter} 
>> Return
>> #IfWinActive
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"MyLifeOrganized" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mylifeorganized+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mylifeorganized/686e6b2d-e179-4325-b2e1-cfa530e2d97fn%40googlegroups.com.

Reply via email to