Hello! Ive been looking around for a good hour now and testing many bits of code but i cant figure it out. Im hoping its OK for me to post the question and hopefully its basic.
So what i am doing is creating lots of lua code for addons for Wow. The problem is Wow does not have a nice sandbox environment really to test code live.
So this is the process: edit some code in Sublime text -> save code -> tab to wow -> reload UI to see changes
Seems easy, and it is. Now do this 500 times. It starts to get tiresome. I would like to automate everything from the save to the UI reload via Auoit it.
What I am stuck on is getting full-screen Wow to activate. Having it as a window is no good because I need the full screen to see my UI changes properly. How do I get the wow.exe window to come up? Sublime-text comes up fine, saves (when i add this in), and then nothing happens. You can see below I also tried WinSetState, and many other flags etc.
Opt("WinTitleMatchMode", 2)
if ProcessExists("sublime_text.exe") Then
winactivate("Sublime")
EndIf
Sleep(1500)
; Wait 4 seconds
WinActivate("World of Warcraft")
;WinSetState("World of Warcraft", "", @SW_MAXIMIZE)