phamtua Posted June 3, 2018 Share Posted June 3, 2018 -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 && !$event.shiftKey) && 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! Link to comment Share on other sites More sharing options...
phamtua Posted June 3, 2018 Author Share Posted June 3, 2018 Can anyone help me? Link to comment Share on other sites More sharing options...
water Posted June 3, 2018 Share Posted June 3, 2018 (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 June 4, 2018 by water phamtua 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
phamtua Posted June 3, 2018 Author Share Posted June 3, 2018 I'm only test my example, I do not want to automate a chat! Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 3, 2018 Moderators Share Posted June 3, 2018 Then post what you really want to do. Why ask for help on something you don't intend to do? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
phamtua Posted June 4, 2018 Author Share Posted June 4, 2018 I posted Link to comment Share on other sites More sharing options...
phamtua Posted June 4, 2018 Author Share Posted June 4, 2018 Only to chat with Microsoft, sir, but I can't send! Link to comment Share on other sites More sharing options...
phamtua Posted June 9, 2018 Author Share Posted June 9, 2018 No body Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 9, 2018 Moderators Share Posted June 9, 2018 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 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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