Rich4rd

Atlantis Word Processor Autohotkey Setup

May 28th, 2020
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SingleInstance Force
  2. #NoTrayIcon
  3. SetTitleMatchMode, 2
  4.  
  5. if not A_IsAdmin ;the control clicks dont work without this bit here
  6. {
  7.    Run *RunAs "%A_ScriptFullPath%"  ; Requires v1.0.92.01+
  8.    ExitApp
  9. }
  10. SetControlDelay -1
  11.  
  12. Regwrite, REG_SZ, HKCU, Software\Atlantis Word Processor\RegInfo,RegEmail,0000000000000000000000000000000000 ;type your Atlantis key here instead of zero
  13. Regwrite, REG_SZ, HKCU, Software\Atlantis Word Processor\RegInfo,RegTo,Administrator
  14.  
  15.  
  16. ;SetupAtlantisWordProcessor
  17. Run, atlantis3en.exe
  18. WinWait, Atlantis Word Processor - Setup
  19. IfWinNotActive, Atlantis Word Processor - Setup, , WinActivate, Atlantis Word Processor - Setup
  20. WinWaitActive, Atlantis Word Processor - Setup
  21. ;ControlClick, TButton2, ahk_class ahk_class TMainDlgForm, &Next
  22. ControlClick, &Next, ahk_class TMainDlgForm
  23. Sleep, 100
  24. ControlClick, &Next, ahk_class TMainDlgForm
  25. Sleep, 100
  26. ControlClick, &Next, ahk_class TMainDlgForm
  27. Sleep, 100
  28. ControlClick, &Next, ahk_class TMainDlgForm
  29. Sleep, 200
  30. ControlClick, TButton2, Atlantis Word Processor - Setup, &Next
  31. WinWait, Atlantis Word Processor - Setup, Associate With Docum
  32. IfWinNotActive, Atlantis Word Processor - Setup, Associate With Docum, WinActivate, Atlantis Word Processor - Setup, Associate With Docum
  33. WinWaitActive, Atlantis Word Processor - Setup, Associate With Docum
  34. Send, n
  35. WinWait, Atlantis Word Processor - Setup, Installation Complet
  36. IfWinNotActive, Atlantis Word Processor - Setup, Installation Complet, WinActivate, Atlantis Word Processor - Setup, Installation Complet
  37. WinWaitActive, Atlantis Word Processor - Setup, Installation Complet
  38. Control, Uncheck, , TCheckBox1, ahk_class TMainDlgForm, &Launch Atlantis Word Processor
  39. Sleep, 100
  40. ControlClick, TButton2, ahk_class TMainDlgForm, &Finish
  41.  
  42. Sleep, 500
  43. ToolTip, Installed!
  44. Sleep, 2000
  45. ToolTip
  46. ExitApp
  47. return
Add Comment
Please, Sign In to add comment