Sign in to follow this  
Followers 0
wahoyaho

Problem with ControlSend

9 posts in this topic

#1 ·  Posted (edited)

I'm trying to send {right down} to a game but for some reason it doesn't respond to it in the main window but if i enter the chat box, i can see that it's sending the right button no problem. How can i fix this?

Controlsend doesn't work but send does :s

Edited by wahoyaho

Share this post


Link to post
Share on other sites



I'm trying to send {right down} to a game but for some reason it doesn't respond to it in the main window but if i enter the chat box, i can see that it's sending the right button no problem. How can i fix this?

Your problem might be that the keys aren't held down long enough. You can change it by AutoItSetOption ( "option" [, param] )

Read the following help snippet:

SendKeyDelay Alters the the length of the brief pause in between sent keystrokes.

Time in milliseconds to pause (default=5). Sometimes a value of 0 does not work; use 1 instead.

SendKeyDownDelay Alters the length of time a key is held down before being released during a keystroke. For applications that take a while to register keypresses (and many games) you may need to raise this value from the default.

Time in milliseconds to pause (default=5).


Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I don't think that's the problem. The left button should turn the camera when not in chat window but nothing happens instead. But in the chat window it's fine.

Also send works...

Edited by wahoyaho

Share this post


Link to post
Share on other sites

Is it possible to do a ControlDragClick type thing? Like MouseDragClick?

Share this post


Link to post
Share on other sites

In your func for the hotkey you might have to add.

func press()

WinActive('window')

WinWaitActive('window')

send ('{right down}')

;whatever else

endfunc


[Cheeky]Comment[/Cheeky]

Share this post


Link to post
Share on other sites

No that's not the problem. The key is being sent fine, it doesn't rotate the camera but if I enter the chat box, I can see that the {LEFT} is being sent. But it just doesn't rotate the camera for some reason.

ControlSend doesn't work but Send does. What is the big difference between the two that's making one work and not the other?

Share this post


Link to post
Share on other sites

Eh, you might have to keep the window active and not use controlsend.

Share this post


Link to post
Share on other sites

1 word: GameGuard

Share this post


Link to post
Share on other sites

Nope, no gameguard. Why would all other keys work except for the keys assigned to move the camera?

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