BlueForce 0 Posted January 17, 2005 ok so i have my script and stuff, but how do i make it do those actions in a certain window? i just can't figure it out. i tried winactivate but mabye i was doing it wrong. HotKeySet("{NUMPAD8}", "Closing") $d = 1 While $d = 1 MouseMove (497,491, 0) MouseClick("left") Send("500") MouseMove (270, 302, 0) MouseClick("left") WEnd Func Closing() Exit EndFunc Share this post Link to post Share on other sites
normeus 0 Posted January 17, 2005 I use this function to wait for a program's window and when it starts it activates the window. first I use this option for matching the title of the window AutoItSetOption("WinTitleMatchMode", 1) then send the title I want to match to this function: Func wstart($wname) Do Sleep(15) Until WinExists($wname) WinActivate($wname) Sleep(30) EndFunc http://www.autoitscript.com/autoit3/scite/...iTe4AutoIt3.exe Share this post Link to post Share on other sites