Sign in to follow this  
Followers 0
tufflax

Problem with titles and ControlSend

1 post in this topic

#1 ·  Posted (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 by tufflax

Share this post


Link to post
Share on other sites



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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0