Jump to content
phamtua

Help set value

Recommended Posts

phamtua

-Hi all,  I want to set value to an input and press button to send it!
-I want to set value and send in this website: https://partner.support.services.microsoft.com/en-us/contact/chat/30/
Input to type message's code:
 

<textarea ng-attr-id="{{config.chatTypingBoxId}}" class="text-body vatheme-input-border ng-pristine ng-valid ng-empty ng-valid-maxlength ng-touched" role="textbox" autofocus="" ng-attr-placeholder="{{!chatWizard.inputIsDisabled ? chat.chatting.inputField : ''}}" ng-model="chatWizard.chatInputBoxText" ng-keydown="($event.keyCode == 13 &amp;&amp; !$event.shiftKey) &amp;&amp; chatWizard.chatSubmitClick($event)" ng-keypress="sendTypingIndicator()" ng-disabled="chatWizard.inputIsDisabled" aria-label="Type a message here" maxlength="1997" dir="auto" ng-focus="inputInnerFocus = true" ng-blur="inputInnerFocus = false" data-nolog="" id="chat-client-message-input-textbox" placeholder="Type a message here" aria-invalid="false"></textarea>

 -Button send's code:
+ When it has a value:
 

<span class="win-icon win-icon-Send text-title vatheme-send-action-button-color" ng-class="{'vatheme-send-action-button-color': chatWizard.chatInputBoxText, 'win-color-fg-secondary': !chatWizard.chatInputBoxText}" ng-click="chatWizard.chatSubmitClick()" ng-disabled="chatWizard.submitDisabled" role="button" aria-label="Send" tabindex="0" aria-disabled="false"></span>

+ When it hasn't any value:
 

<span class="win-icon win-icon-Send text-title win-color-fg-secondary" ng-class="{'vatheme-send-action-button-color': chatWizard.chatInputBoxText, 'win-color-fg-secondary': !chatWizard.chatInputBoxText}" ng-click="chatWizard.chatSubmitClick()" ng-disabled="chatWizard.submitDisabled" role="button" aria-label="Send" tabindex="0" aria-disabled="true" disabled="disabled"></span>

- Autoit code (I can set value to input but I can't click the button to send because it's disable)
 

#include <IE.au3>
$oMess = _IEGetObjById ($oIE, "chat-client-message-input-textbox")
_IEFormElementSetValue ($oMess, "Hello")
; How to press send button?

Cheers!

Share this post


Link to post
Share on other sites
phamtua

Can anyone help me?

Share this post


Link to post
Share on other sites
water
Posted (edited)

Welcome to AutoIt and the forum!

Please wait at least 24 hours before bumping a thread.

Just out of curiosity: Why do you want to automate a chat?

Edited by water
  • Thanks 1

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
phamtua

I'm only test my example, I do not want to automate a chat!

 

Share this post


Link to post
Share on other sites
JLogan3o13

Then post what you really want to do. Why ask for help on something you don't intend to do?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
phamtua

I posted

 

Share this post


Link to post
Share on other sites
phamtua

Only to chat with Microsoft, sir, but I can't send!

Share this post


Link to post
Share on other sites
phamtua

No body

Share this post


Link to post
Share on other sites
JLogan3o13

No, because we're waiting for an answer as to why you're trying to automate a chat with Microsoft. Until you answer that question you're not going to get any help


√-1 2^3 ∑ π, and it was delicious!

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

×