Search found 12 matches

by manotop
Thu Sep 08, 2016 2:31 pm
Forum: General Support & Discussions
Topic: How to chanage only sepecific part of string
Replies: 2
Views: 1115

Re: How to extract text and chanage only sepecific part of i

Solved: After some deep diving and trail and error I figured it out: SET !VAR2 EVAL("'{{!EXTRACT}}'.includes('ABC') ? '{{!EXTRACT}}'.replace('ABC','') : '{{!EXTRACT}} ABC';") P.S. I looked through other's code on the forum to make this up, but honestly I want to learn about the iMacro syntax proper...
by manotop
Thu Sep 08, 2016 1:55 pm
Forum: General Support & Discussions
Topic: iMacro script syntax highlighting in Notepad++ editor
Replies: 52
Views: 236665

Re: iMacro script syntax highlighting in Notepad++ editor

It would be awesome if someone can make this for SublimeText as well :P
by manotop
Thu Sep 08, 2016 9:38 am
Forum: General Support & Discussions
Topic: How to chanage only sepecific part of string
Replies: 2
Views: 1115

How to chanage only sepecific part of string

I want to do the following in the form please help me making this script: if form text include = "ABC" (for example: "Whatever words ABC") then delete the word "ABC" (so it become "Whatever words") AND if form text doesn't include = "ABC" then add the word at the end "ABC (so it become "Whatever wor...
by manotop
Sat Sep 03, 2016 8:58 am
Forum: General Support & Discussions
Topic: Help with code for switching the text? Anyone?
Replies: 14
Views: 6500

Re: Script for replacing the text with condition?

F*cking nice. I am also learning JS too. How much time do i have to spend to get to your level? I am learning from Treehouse and Codeacademy sites is it ok to learn from them or do you have a better recommendation? For example: Check if the today is Monday or Wednesday or Friday if true Continue the...
by manotop
Fri Sep 02, 2016 7:04 am
Forum: General Support & Discussions
Topic: Help with code for switching the text? Anyone?
Replies: 14
Views: 6500

Re: Script for replacing the text with condition?

@iimfun u are a genius! It actually works! BTW I am not sure if I am allowed to ask it out on the same post or not but I will ask you anyway as I have made a post on the forum a while back and nobody was able to answer it. Right now the last piece of this whole thing is I want the script to check wh...
by manotop
Fri Sep 02, 2016 6:56 am
Forum: General Support & Discussions
Topic: Help with code for switching the text? Anyone?
Replies: 14
Views: 6500

Re: Script for replacing the text with condition?

So sorry about that I will pay attention to the forum rules next time. I want to build a code for the form: if text is = XYZ then switch it to ABC. AND if text is = XYZ then switch to ABC. Please pay attention to the Script number 2: Script number 1: Extract text line (this will get the text): TAG P...
by manotop
Thu Sep 01, 2016 7:55 am
Forum: General Support & Discussions
Topic: Help with code for switching the text? Anyone?
Replies: 14
Views: 6500

Re: Script for replacing the text with condition?

First of all thanks for taking the time to reply. For some reasons the code isnt working when I run it. Its not even replacing ABC to XYZ. How about if the text is XYZ then switch it to ABC? Also please keep in mind that I want this to be run in one single code. Because if there are two separate cod...
by manotop
Tue Aug 30, 2016 3:25 pm
Forum: General Support & Discussions
Topic: Help with code for switching the text? Anyone?
Replies: 14
Views: 6500

Script for replacing the text with condition?

I want to build a code for the form: if text is = XYZ then switch it to ABC. AND if text is = XYZ then switch to ABC. Please pay attention to the Script number 2: Script number 1: Extract text line (this will get the text): TAG POS=1 TYPE=INPUT:TEXT FORM=ID:newOffer ATTR=ID:add-title EXTRACT=TXT Scr...
by manotop
Tue Aug 30, 2016 3:03 pm
Forum: General Support & Discussions
Topic: Run Macro only on certain days of week on AlertFox
Replies: 1
Views: 1219

Run Macro only on certain days of week on AlertFox

I want to setup a Macro on AlertFox where it has option to run everyday of the week. I want the macro to check if the day is monday or wednesday or friday if true then continue the Macro script otherwise stop the macro right there. I haven't prepared any code for it please help me with this script. ...
by manotop
Fri Aug 26, 2016 8:17 am
Forum: General Support & Discussions
Topic: Help with code for switching the text? Anyone?
Replies: 14
Views: 6500

Re: Help with code for switching the text? Anyone?

I feel like a total noob right now :cry: Sorry, i accidently made duplicate thread. BTW what does CIM and FCI stands for? I googled but found very odd abbreviations :oops: Thanks for the hint! Hum, I googled as well " CIM + FCI + iMacros " and the first Hit is on the iMacros Forum and the second one...
by manotop
Fri Aug 26, 2016 5:22 am
Forum: General Support & Discussions
Topic: Help with code for switching the text? Anyone?
Replies: 14
Views: 6500

Re: Help with code for switching the text? Anyone?

Sorry, i accidently made duplicate thread. BTW what does CIM and FCI stands for? I googled but found very odd abbreviations :oops: Thanks for the hint! For example if text is = abc then switch it to xyz. or if text is = xyz the switch to abc. Please help me with the code! No need to open Duplicates ...
by manotop
Wed Aug 24, 2016 1:06 pm
Forum: General Support & Discussions
Topic: Help with code for switching the text? Anyone?
Replies: 14
Views: 6500

Help with code for switching the text? Anyone?

For example
if text is = abc then switch it to xyz.

or

if text is = xyz the switch to abc.


Please help me with the code!