wahoyaho Posted November 27, 2007 Share Posted November 27, 2007 (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 November 27, 2007 by wahoyaho Link to comment Share on other sites More sharing options...
SadBunny Posted November 27, 2007 Share Posted November 27, 2007 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. Link to comment Share on other sites More sharing options...
wahoyaho Posted November 27, 2007 Author Share Posted November 27, 2007 (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 November 27, 2007 by wahoyaho Link to comment Share on other sites More sharing options...
wahoyaho Posted November 28, 2007 Author Share Posted November 28, 2007 Is it possible to do a ControlDragClick type thing? Like MouseDragClick? Link to comment Share on other sites More sharing options...
lordicast Posted November 28, 2007 Share Posted November 28, 2007 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] Link to comment Share on other sites More sharing options...
wahoyaho Posted November 28, 2007 Author Share Posted November 28, 2007 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? Link to comment Share on other sites More sharing options...
Nevin Posted November 28, 2007 Share Posted November 28, 2007 Eh, you might have to keep the window active and not use controlsend. Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted November 28, 2007 Share Posted November 28, 2007 1 word: GameGuard Link to comment Share on other sites More sharing options...
wahoyaho Posted November 28, 2007 Author Share Posted November 28, 2007 Nope, no gameguard. Why would all other keys work except for the keys assigned to move the camera? 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