title: AutoHotkey - Open html file with Notepad++ then find and replace, then save, close. Include this in another script
body: <p><strong>1.</strong> In a folder "2" I want to open a selected "example.html" file with Notepad++. Or second mouse button --> Edit With Notepad++</p>
  
  <p><strong>2.</strong> Then find the word "big" and replace it by "small", save and exit Notepad++ and return to a folder "2".</p>
  
  <p>When html file selected - How a single shortcut key can make the 2 first steps.
  Without implementing it into another script.</p>
  
  <p><strong>3.</strong> And how to implement above mentioned script with this script right before it zips and moves the content to "FINAL" folder. Because one of the files there is html file where I need to perform the above two steps. I suppose the script should start before: "Send ^a ; Select All" part.</p>
  
  <pre><code>#IfWinActive ahk_class CabinetWClass
  
  F4::
  for window in ComObjCreate("Shell.Application").Windows
  try Fullpath := % window.Document.Folder.Self.Path
  IfNotExist, %Fullpath%\1\2
  {
  MsgBox, The folder "%Fullpath%\1\2" doesn't exist
      return
  }
  Run, %Fullpath%\1\2
  WinWait, %Fullpath%\1\2
  WinActivate, %Fullpath%\1\2
  WinWaitActive,%Fullpath%\1\2
  StringReplace, Fullpath2, Fullpath, :,
  StringSplit, folder_array, Fullpath2, \,
  FolderName = % folder_array%folder_array0%
  ; MsgBox, % folder_array%folder_array0%
  ; Sleep 2000      ; wait 2 seconds
  Send ^a                 ; Select All
  Send, {AppsKey}         ; Press the "context menu" key
  Sleep 100
  Send n              ; Select "Send to" with the "n" key
  Sleep 100
  Send {Right}            ; Open "Sent to" with the "right arrow" key
  Sleep 100
  Send {Down}             ; Select "Compressed (zipped) folder" with the "arrow down" key
  Sleep 100
  Send {Enter}            ; Execute "Compressed (zipped) folder" with the     "Enter" key
      Sleep 2000      ; wait 2 seconds
      SendInput, % folder_array%folder_array0%
      Send {Enter}
  SetTimer, Move_ZIP, 500
  return
  
  #IfWinActive
  
  Move_ZIP:
  FileCreateDir %A_Desktop%\FINAL
  IfExist, %Fullpath%\1\2\%FolderName%.zip
  {
  SetTimer, Move_ZIP, off
  FileMove, %Fullpath%\1\2\%FolderName%.zip, %A_Desktop%\FINAL
  Sleep 2000      ; wait 2 seconds
  SetTimer, CopyDir, 500
  }
  return
  
  CopyDir:
  IfExist, %Fullpath%\1\2\%FolderName%.zip
  return
  SetTimer, CopyDir, off
  FileCopyDir  %Fullpath%\1\2, %A_Desktop%\FINAL\%FolderName%
  return
  </code></pre>