Jump to content
Sign in to follow this  
BinaryBrother

Shift + Enter

Recommended Posts

BinaryBrother

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" ?

Share this post


Link to post
Share on other sites
Andreik

Did you tried this:

_IENavigate($oIE,'javascript:ajaxChat.sendMessage("Hello My +{ENTER} name is Bob.");',0)

When the words fail... music speaks

Share this post


Link to post
Share on other sites
BinaryBrother

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 by BinaryBrother

Share this post


Link to post
Share on other sites
BinaryBrother

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. :(

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.