tufflax Posted March 28, 2008 Share Posted March 28, 2008 (edited) Hey! I'm trying to use ControlSend to send key strokes to a program called EverQuest. I'm trying the following, but it doesn't work. ControlSend("EverQuest", "", "", "{1 DOWN}") I want to use something that works even if EverQuest is not the active window. AutoIt Window Info doesn't give me any information about any "control", ID field etc is blank. The whole thing: HotKeySet("{F9}", "go") HotKeySet("{F10}", "stop") Func go() Global $Show = 0 While 1 ControlSend("EverQuest", "", "", "{1 DOWN}") Sleep(100) ControlSend("EverQuest", "", "", "{1 UP}") Sleep(1000) If $Show > 0 Then ExitLoop WEnd EndFunc Func stop() Global $Show = 1 EndFunc While 1 Sleep(1000) WEnd Maybe it's not so good to use ControlSend when I don't have any control to send to, but I've seen it work in another script I downloaded. But I can't figure out why this doesn't work Edited March 28, 2008 by tufflax Link to comment Share on other sites More sharing options...
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