mrbellek

Microsoft Ultimate Word Games crossword solver

Aug 18th, 2020 (edited)
902
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 1 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5.  
  6. ; INSPIRED BY THIS SOLUTION ON TRUEACHIEVEMENTS: https://www.trueachievements.com/viewcomment.aspx?commentid=1173427#sc1173427
  7. ; PRESS CTRL-J TO START THE SCRIPT
  8. ; ENTER THE TWO BUTTON COORDINATES INTO THE FUNCTION BELOW FIRST
  9.  
  10. ; this will work on any crossword puzzle up to 15x15, excluding daily challenges
  11.  
  12. ClickSolve()
  13. {
  14. Click, 650, 330 ; use window spy to find the correct position (mouse position > client) of the checkmark button
  15. Sleep, 1000
  16. Click, 930, 310 ; use window spy to find the correct position of the 'check puzzle' button
  17. Sleep, 1200
  18. }
  19.  
  20. #IfWinExist, Microsoft Ultimate Word Games
  21. ^j::
  22. WinActivate, Microsoft Ultimate Word Games
  23. WinWaitActive, Microsoft Ultimate Word Games
  24. SetKeyDelay, 50, 50
  25.  
  26. ; vowels
  27. Send {e 300} ; the first few letters always lag a bit because scrolling the clues is slower
  28. Sleep, 500 ; so we're going to send them twice, and wait a bit between them
  29. Send {e 300}
  30. ClickSolve()
  31. Send {a 300}
  32. Sleep, 500
  33. Send {a 300}
  34. ClickSolve()
  35.  
  36. Send {o 350}
  37. ClickSolve()
  38. Send {i 350}
  39. ClickSolve()
  40. Send {u 350}
  41. ClickSolve()
  42. Send {y 350}
  43. ClickSolve()
  44.  
  45. ; consonants
  46. Send {t 350}
  47. ClickSolve()
  48. Send {n 350}
  49. ClickSolve()
  50. Send {s 350}
  51. ClickSolve()
  52. Send {r 350}
  53. ClickSolve()
  54. Send {h 350}
  55. ClickSolve()
  56. Send {d 350}
  57. ClickSolve()
  58. Send {l 350}
  59. ClickSolve()
  60. Send {c 350}
  61. ClickSolve()
  62. Send {m 350}
  63. ClickSolve()
  64. Send {f 350}
  65. ClickSolve()
  66. Send {w 350}
  67. ClickSolve()
  68. Send {g 350}
  69. ClickSolve()
  70. Send {p 350}
  71. ClickSolve()
  72. Send {b 350}
  73. ClickSolve()
  74. Send {v 350}
  75. ClickSolve()
  76. Send {k 350}
  77. ClickSolve()
  78. Send {x 350}
  79. ClickSolve()
  80. Send {q 350}
  81. ClickSolve()
  82. Send {j 350}
  83. ClickSolve()
  84. Send {z 350}
  85. ClickSolve()
  86.  
Add Comment
Please, Sign In to add comment