How to add text without deleting previous text in the text box?

Discussions and Tech Support related to website data extraction, screen scraping and data mining using iMacros.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

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
simaros
Posts: 2
Joined: Mon Dec 06, 2021 12:30 pm

How to add text without deleting previous text in the text box?

Post by simaros » Mon Dec 06, 2021 12:33 pm

I want to create a macro which will not delete the previous text in the text box. For example, I have created this

Code: Select all

VERSION BUILD=1011 RECORDER=CR
TAG POS=1 TYPE=SELECT FORM=ID:frmVakaBilgi ATTR=ID:IstemTipi CONTENT=%1
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:frmVakaBilgi ATTR=ID:LabId CONTENT=İSTANBUL<SP>BEYLİKDÜZÜ<SP>DEVLET<SP>H
I want to add similar text in the same text box. I have searched but could not find satisfactory result.

Please help.
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: How to add text without deleting previous text in the text box?

Post by chivracq » Mon Dec 06, 2021 3:19 pm

simaros wrote:
Mon Dec 06, 2021 12:33 pm
I want to create a macro which will not delete the previous text in the text box. For example, I have created this

Code: Select all

VERSION BUILD=1011 RECORDER=CR
TAG POS=1 TYPE=SELECT FORM=ID:frmVakaBilgi ATTR=ID:IstemTipi CONTENT=%1
TAG POS=1 TYPE=INPUT:TEXT FORM=ID:frmVakaBilgi ATTR=ID:LabId CONTENT=İSTANBUL<SP>BEYLİKDÜZÜ<SP>DEVLET<SP>H
I want to add similar text in the same text box. I have searched but could not find satisfactory result.

Please help.

"I have searched but could not find satisfactory result."
=> Hum..., you didn't find the Forum Rules either, ah-ah...! :(
(F)CIM...! :mrgreen: (Read my Sig...)
=> iMacros for CR v10.1.1(...?), 'Free'/'PE'/'Trial'...?, CR96...?, OS...?

And hum, try to select the "correct" Sub-Forum when you open a Thread, this one has nothing specific to the 'iMacros for CR' Sub-Forum... (especially if you don't even mention your FCI...)
=> I'll move your Thread to the 'General' Sub-Forum..., or maybe the 'Data Extraction' one as one possible Technique to use for your Scenario would involve the `EXTRACT` Mechanism...
EDIT: Done...! (Thread moved (=> to the 'Data Extraction' Sub-Forum then...)) :P

>>>

Without waiting for you to mention your FCI, => then..., yep-yep, you have several Options...:
-1 First, extract the "original" Content of that 'INPUT' Field (using the `EXTRACT` Mechanism), and concatenate the "new" Part to it using the `ADD` or the `EVAL()` Command before re-inputting the "whole" Content. :idea:

-2 Or use the `EVENT` Mode, first "directly" to input your Content, to "try" if the "original" Content already gets preserved, and if the existing Content also gets replaced, then add using the Keyboard an `EVENT` Command for the "Arrow-Right" Key for example, or the "End" Key in that 'INPUT' Field, in order to move the Cursor to the End of the existing Content... :idea:
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
simaros
Posts: 2
Joined: Mon Dec 06, 2021 12:30 pm

Re: How to add text without deleting previous text in the text box?

Post by simaros » Mon Dec 06, 2021 5:05 pm

thanks for your reply. I am using it as a chrome extension. my english is not good i have difficulty understanding can you give an example? I didn't do what I read on the forum.
Last edited by chivracq on Mon Dec 06, 2021 5:24 pm, edited 1 time in total.
Reason: Quote removed for Readability...
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: How to add text without deleting previous text in the text box?

Post by chivracq » Mon Dec 06, 2021 5:40 pm

simaros wrote:
Mon Dec 06, 2021 5:05 pm
thanks for your reply. I am using it as a chrome extension. my english is not good i have difficulty understanding can you give an example? I didn't do what I read on the forum.

I edited your Post to remove your unnecessary Quote for Readability, you don't need to quote yourself again (your own previous Post(s)), and you don't even/really react to anything I mentioned/asked...

=> "I am using it as a chrome extension." is not "good enough" to mention your FCI, => you need to "answer" all the Question Marks from the Line in my previous Post that I have now made bold...
(And when FCI is not mentioned, I "normally" don't react to a Thread, I am/was "being nice" as this is your 1st Thread on the Forum... 8) )

And about "can you give an example?", when no URL is posted, I only give "generic" Advice, you can try to search the Forum "a bit", and to try "something" yourself, you have all Info in my previous Reply to "try" to implement yourself the different Solutions I mentioned... :idea:
It's not very "complicated" if you try a bit yourself... :idea:
And all Terms I mentioned with Single Quotes or Backticks are Terms you can use to search the Wiki and/or the Forum..., they are all documented in the Wiki, and you'll find your Examples, both in the Wiki and on the Forum... :idea:
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Post Reply