BinaryBrother Posted August 17, 2009 Posted August 17, 2009 In a lot of text boxes for chat, such as MSN, Yahoo, most Ajax Chat's... etc... You can hit (Shift+Enter) and it will not send the message, better yet it will create a break... So you can type on a new line without actually sending multiple messages. I was wondering what key AutoIt would send in an environment like this, or is it possible? Simple one line Javascript that will cause an Ajax chat to send "Hello My name is Bob." into the chat room... _IENavigate($oIE,'javascript:ajaxChat.sendMessage("Hello My name is Bob.");',0) Would it be possible to say... add that special Shift+Enter break in there, like after "Hello My" ? SIGNATURE_0X800007D NOT FOUND
Andreik Posted August 17, 2009 Posted August 17, 2009 Did you tried this: _IENavigate($oIE,'javascript:ajaxChat.sendMessage("Hello My +{ENTER} name is Bob.");',0)
BinaryBrother Posted August 17, 2009 Author Posted August 17, 2009 (edited) Nope, that posted... "Multiline +{ENTER} Message test." to chat. I wasn't aware that the {ENTER} macros and such worked outside the Send() Function anyway. Edited August 17, 2009 by BinaryBrother SIGNATURE_0X800007D NOT FOUND
WolfWorld Posted August 17, 2009 Posted August 17, 2009 Shift is not a character remember that enter in Windows is @CR&@LF or @CRLF Main project - Eat Spaghetti - Obfuscate and Optimize your script. The most advance add-on.Website more of GadGets!
BinaryBrother Posted August 17, 2009 Author Posted August 17, 2009 Regardless... The {ENTER} macro isn't going to work as Andreik suggested. And it didn't work using something as simple as sending a carriage return, or line feed... Or Both... Or I wouldn't be here... >_< I do overlook things occasionally, but I think this one is going to be a bit more difficult. SIGNATURE_0X800007D NOT FOUND
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