Jump to content

Recommended Posts

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
Posted

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.

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
Posted

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]
Posted

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?

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
×
×
  • Create New...