BlueForce Posted January 17, 2005 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
normeus Posted January 17, 2005 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now