open outlook with text box data from chrome

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
prashu44411
Posts: 1
Joined: Mon Jun 21, 2021 7:04 am

open outlook with text box data from chrome

Post by prashu44411 » Mon Jun 21, 2021 7:15 am

hi ALL,

am able to open outlook using imacro using hard coded values like below.
SET !VAR2 EVAL("window.open('mailto:abc@abc.com?subject=abc');")
i need to extract subject from one of the text box and pass to above statement. i tried below but am getting text box value as null. the same statement giving the result in chrome console window.
SET !VAR2 EVAL("var intNo=document.getElementById('sys_readonly.int.number').value;alert(intNo);window.open('mailto:abc@abc.com?subject=abc');").

CAN YOU PLEASE HELP ME IN PASSING SUBJECT VALUE FROM TEXT BOX ?
chivracq
Posts: 9815
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: open outlook with text box data from chrome

Post by chivracq » Mon Jun 21, 2021 10:39 am

prashu44411 wrote:
Mon Jun 21, 2021 7:15 am
hi ALL,

am able to open outlook using imacro using hard coded values like below.

Code: Select all

SET !VAR2 EVAL("window.open('mailto:abc@abc.com?subject=abc');") 
i need to extract subject from one of the text box and pass to above statement. i tried below but am getting text box value as null. the same statement giving the result in chrome console window.

Code: Select all

SET !VAR2 EVAL("var intNo=document.getElementById('sys_readonly.int.number').value;alert(intNo);window.open('mailto:abc@abc.com?subject=abc');").
CAN YOU PLEASE HELP ME IN PASSING SUBJECT VALUE FROM TEXT BOX ?

FCIM...! :mrgreen: (Read my Sig...)
=> FCI:

Code: Select all

iMacros for CR v10.1.1...?, 'Free'/'PE'/'Trial'...?, CR90/91...?, OS...?
I'll have some other Qt's/Remarks but first mention your FCI before I'll do any "Digging"...
(And edit your OP to include that Info, preferably at the very Top of your Post..., this is the first Info "we" need about a Thread...)

And you mention "am able to open outlook", => does it open 'Outlook Webmail' (in a Browser Instance) or 'Outlook' the (Standalone) Client Application...?
=> Mention also your 'Outlook' Version.

>>>

(And no "Need" to use All-Caps on the Forum for "normal" Sentences in a Post..., this is considered "Shouting" on a Tech Forum, especially with "PLEASE HELP ME"... (Mentioned in the Forum Rules... that you didn't read... :idea: ))
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
Post Reply