Page 1 of 1

open outlook with text box data from chrome

Posted: Mon Jun 21, 2021 7:15 am
by prashu44411
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 ?

Re: open outlook with text box data from chrome

Posted: Mon Jun 21, 2021 10:39 am
by chivracq
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: ))