Can iMacros send SMS, E-Mail and mobile push notifications?

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
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
wemersonrv
Posts: 35
Joined: Thu Oct 16, 2014 10:25 pm

Can iMacros send SMS, E-Mail and mobile push notifications?

Post by wemersonrv » Fri Mar 04, 2016 9:33 pm

Hi,

There are any way to use imacros to send push notifications to smartphones?

I need to send notifications via e-mail, SMS and push notifications when script ends.

My environment: Windows 7 64 Bits
Browser: Mozilla Firefox 44.0.2
iMacros: 8.9.6
Wemerson Guimaraes
Rio Verde - GO, Brazil
Just an iMacros curious
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Can iMacros send SMS, E-Mail and mobile push notificati

Post by chivracq » Fri Mar 04, 2016 10:40 pm

wemersonrv wrote:Hi,

There are any way to use imacros to send push notifications to smartphones?

I need to send notifications via e-mail, SMS and push notifications when script ends.

My environment: Windows 7 64 Bits
Browser: Mozilla Firefox 44.0.2
iMacros: 8.9.6
Yep of course, well I don't know what a "Push Notification" is, but any Web-Service you can access from a Browser can be automated with iMacros and included at the End of your Script...

Communication in the other Direction is possible as well, I've been playing some stupid Tamagochi Game for more than 10 years that I have completely Reverse-Automated, some other Players can send me some Pre-formatted Msg (via some internal Messaging System), I have a Macro that runs automatically every Hour, goes to check my Inbox and if anybody has sent a Msg, will "read" it and upon which Keywords are contained in the Msg, will launch automatically a specific Script (they can choose among several Actions/Scripts) that will run on their behalf and even upon Completion will automatically send some mini-Msg back with a mini-Report.

I use a bit as well the same System via E-mail, either to remotely launch some specific Macro(s), on top of the ones that already run automatically (via Task Scheduler) or Dynamically modify some Values used in some Scripts for Variables and if needed I can even send a new Version of a Script that will automatically be downloaded and will replace some existing one to run the next time it must run.

And I intended to include SMS Control as well, to be able to send SMS'es to control my Macros remotely, but I haven't investigated yet on which SMS Web-Service to use for the Main 'Listening" Script to listen to...

And I use TeamViewer on top op that for Remote Access to my Main PC, but I don't always have access to a PC with TeamViewer, but I will always find a PC or a Smartphone to send a Mail...

EDIT: (Typo...)
"which SMS Web-Service to use for the Mail 'Listening" Script to listen to..." ="which SMS Web-Service to use for the Main 'Listening" Script to listen to..."
Last edited by chivracq on Sun Mar 06, 2016 4:04 am, edited 1 time in total.
- (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...
wemersonrv
Posts: 35
Joined: Thu Oct 16, 2014 10:25 pm

Re: Can iMacros send SMS, E-Mail and mobile push notificati

Post by wemersonrv » Sat Mar 05, 2016 1:47 am

chivracq wrote:
wemersonrv wrote:Hi,

There are any way to use imacros to send push notifications to smartphones?

I need to send notifications via e-mail, SMS and push notifications when script ends.

My environment: Windows 7 64 Bits
Browser: Mozilla Firefox 44.0.2
iMacros: 8.9.6
Yep of course, well I don't know what a "Push Notification" is, but any Web-Service you can access from a Browser can be automated with iMacros and included at the End of your Script...

Communication in the other Direction is possible as well, I've been playing some stupid Tamagochi Game for more than 10 years that I have completely Reverse-Automated, some other Players can send me some Pre-formatted Msg (via some internal Messaging System), I have a Macro that runs automatically every Hour, goes to check my Inbox and if anybody has sent a Msg, will "read" it and upon which Keywords are contained in the Msg, will launch automatically a specific Script (they can choose among several Actions/Scripts) that will run on their behalf and even upon Completion will automatically send some mini-Msg back with a mini-Report.

I use a bit as well the same System via E-mail, either to remotely launch some specific Macro(s), on top of the ones that already run automatically (via Task Scheduler) or Dynamically modify some Values used in some Scripts for Variables and if needed I can even send a new Version of a Script that will automatically be downloaded and will replace some existing one to run the next time it must run.

And I intended to include SMS Control as well, to be able to send SMS'es to control my Macros remotely, but I haven't investigated yet on which SMS Web-Service to use for the Mail 'Listening" Script to listen to...

And I use TeamViewer on top op that for Remote Access to my Main PC, but I don't always have access to a PC with TeamViewer, but I will always find a PC or a Smartphone to send a Mail...

Understand... well SMS and E-mail is a good idea.

Push notification is an action to send data to an device, like an smartphone... whithout the smartphone request it... as WhatsApp does when receive a new message... It's not access the server, it's receive the notification by push method.

My idea is to develop a litle app to receive messages via push. The reason is because it can be free.
Wemerson Guimaraes
Rio Verde - GO, Brazil
Just an iMacros curious
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Can iMacros send SMS, E-Mail and mobile push notificati

Post by chivracq » Sat Mar 05, 2016 10:43 am

wemersonrv wrote:Understand... well SMS and E-mail is a good idea.

Push notification is an action to send data to an device, like an smartphone... whithout the smartphone request it... as WhatsApp does when receive a new message... It's not access the server, it's receive the notification by push method.

My idea is to develop a litle app to receive messages via push. The reason is because it can be free.
OK, I understand more or less what Push-Notif is..., again, everything you can access on a Browser can be automated, 'Whatsapp' that you mention, can only be accessed through its Web-Interface via CR, if I am correct, we have 1-2-3 Threads about it on the Forum from a few months ago... And I didn't do deep-deep Testing as I didn't have an Account, but it looked like UA Changes were not working, but again, I didn't try to investigate very deep-deep...

If you search a bit, everything is Free..., you managed to find iMacros...!!

You've posted some interesting Qt's since you joined the Forum, but you don't sound "nerdly-gigantically" Technical, so I'm a bit interested/surprised/skeptical about "My idea is to develop a litle app to receive messages via push."... Very interested how you will handle this..., please share...! (And you will get all my Admiration and Apologies for my Doubts once I see stg interesting in that Direction... :oops: )
Last edited by chivracq on Sun Mar 06, 2016 4:06 am, edited 1 time in total.
- (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...
wemersonrv
Posts: 35
Joined: Thu Oct 16, 2014 10:25 pm

Re: Can iMacros send SMS, E-Mail and mobile push notificati

Post by wemersonrv » Sat Mar 05, 2016 11:51 pm

É verdade, eu não sou nenhum super nerd. Sou apenas um entusiasta de tecnologias que acredita ter boas idéias. E após ver boas possibilidades de funcionar, procuro aprender o que é necessário.

Vou pensar em como desenvolver isso e posto aqui o resultado se der certo. Ou um pedido de desculpas se não conseguir.


It's true, I am not a super nerd. I'm just a tech enthusiast that (who believes to) has good ideas. And after seeing good possibilities to the ideas work, I try to learn what is needed to implement them.

I will think of how to do this and post here the result if it works. Or an apology if you can not. :mrgreen: :D \
Wemerson Guimaraes
Rio Verde - GO, Brazil
Just an iMacros curious
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Can iMacros send SMS, E-Mail and mobile push notificati

Post by chivracq » Sun Mar 06, 2016 4:29 am

wemersonrv wrote:É verdade, eu não sou nenhum super nerd. Sou apenas um entusiasta de tecnologias que acredita ter boas idéias. E após ver boas possibilidades de funcionar, procuro aprender o que é necessário.

Vou pensar em como desenvolver isso e posto aqui o resultado se der certo. Ou um pedido de desculpas se não conseguir.
Copy&Paste mistake I guess, the Forum Language is English... :shock:
wemersonrv wrote:It's true, I am not a super nerd. I'm just a tech enthusiast that (who believes to) has good ideas. And after seeing good possibilities to the ideas work, I try to learn what is needed to implement them.

I will think of how to do this and post here the result if it works. Or an apology if you can not. :mrgreen: :D \
Ah-ah...!, no Apology I hope, I find it a very good Idea...!

I'm already working on auto-morphing Scripts (Scripts able to modify and adapt themselves), from some Input from me, but as well from some Searches on Internet using Keywords they can decide..., and I can (still...) control them (remotely) but I am giving them some "Freedom" that I have to be "nice" to them and they can choose by themselves if they accept my Remote Control-Msg's or not...
OK, it sounds weird I guess, but it's part of some "Nerdy Art Project"... And as long as I still have "Physical" Access to my Macros, I can always control them completely, but I'm planning of letting a few completely loose on the Cloud and they could even decide by themselves to change Password so that even I wouldn't have Access to them anymore...! Oops...!!

But afaik, I'm the only one using iMacros for this kind of (IA) Scripts, and I'm already quite advanced, so I'll be interested and willing to help with your "App"...
- (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...
wemersonrv
Posts: 35
Joined: Thu Oct 16, 2014 10:25 pm

Re: Can iMacros send SMS, E-Mail and mobile push notificati

Post by wemersonrv » Sun Mar 06, 2016 5:46 am

chivracq wrote: Copy&Paste mistake I guess, the Forum Language is English... :shock:
Yes, sorry.. I used google translator because do not speak english, and wrote a little; but still need help with google translator. And i forget to remove portuguese parts when copy/paste. Sorry again! :oops: :oops:
chivracq wrote: I'm already working on auto-morphing Scripts (Scripts able to modify and adapt themselves), from some Input from me, but as well from some Searches on Internet using Keywords they can decide..., and I can (still...) control them (remotely) but I am giving them some "Freedom" that I have to be "nice" to them and they can choose by themselves if they accept my Remote Control-Msg's or not...
OK, it sounds weird I guess, but it's part of some "Nerdy Art Project"... And as long as I still have "Physical" Access to my Macros, I can always control them completely, but I'm planning of letting a few completely loose on the Cloud and they could even decide by themselves to change Password so that even I wouldn't have Access to them anymore...! Oops...!!

But afaik, I'm the only one using iMacros for this kind of (IA) Scripts, and I'm already quite advanced, so I'll be interested and willing to help with your "App"...
WOW... too advance for me... but it's a good idea to create a basic mobile app only to receive the warnings from macros.

Well i do not develop to mobile platforms, but let's see what i can do to learn about it fast! At least to do some tests.
Wemerson Guimaraes
Rio Verde - GO, Brazil
Just an iMacros curious
wemersonrv
Posts: 35
Joined: Thu Oct 16, 2014 10:25 pm

Re: Can iMacros send SMS, E-Mail and mobile push notificati

Post by wemersonrv » Wed Mar 09, 2016 11:36 am

Still on the same subject.

Can two iMacros instances in separated browsers exchange any type of messages?

Example. Run one macro as a data server in a website and other macro as a client with other website. The client macro receive data via any type of message and update something in the second site.
Wemerson Guimaraes
Rio Verde - GO, Brazil
Just an iMacros curious
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Can iMacros send SMS, E-Mail and mobile push notificati

Post by chivracq » Wed Mar 09, 2016 12:02 pm

wemersonrv wrote:Still on the same subject.

Can two iMacros instances in separated browsers exchange any type of messages?

Example. Run one macro as a data server in a website and other macro as a client with other website. The client macro receive data via any type of message and update something in the second site.
Yep..., using the Clipboard (though always risky in my Opinion...), or using some Temp '.TXT' File with ('FILEDELETE' +) 'SAVEAS' for the first Macro and the second Macro will use that Temp File as a mini-DataSource (+ 'FILEDELETE' eventually once it has used it...).

But you could use any other Intermediary Web-Site Page that both Macros can access, one to write and the other one to read, like for example sending/receiving a Mail using any (or 2 separate) Web-Mail(s)...

Or you can use some GoogleSheet Doc as well...
For the Clipboard, both Macros / Browser Instances need to run on the same Machine obviously, for the Temp '.TXT' File, on the same Machine or the same LAN Network, for both Machines to be able to access the same (Network) Directory, but for some Temp Web Page (or E-mail or GoogleDoc), the 2 Macros can even run on some completely separate Machines, as long as they both can access that Web-Page...
- (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...
wemersonrv
Posts: 35
Joined: Thu Oct 16, 2014 10:25 pm

Re: Can iMacros send SMS, E-Mail and mobile push notificati

Post by wemersonrv » Wed Mar 09, 2016 1:17 pm

chivracq wrote:
wemersonrv wrote:Still on the same subject.

Can two iMacros instances in separated browsers exchange any type of messages?

Example. Run one macro as a data server in a website and other macro as a client with other website. The client macro receive data via any type of message and update something in the second site.
Yep..., using the Clipboard (though always risky in my Opinion...), or using some Temp '.TXT' File with ('FILEDELETE' +) 'SAVEAS' for the first Macro and the second Macro will use that Temp File as a mini-DataSource (+ 'FILEDELETE' eventually once it has used it...).

But you could use any other Intermediary Web-Site Page that both Macros can access, one to write and the other one to read, like for example sending/receiving a Mail using any (or 2 separate) Web-Mail(s)...

Or you can use some GoogleSheet Doc as well...
For the Clipboard, both Macros / Browser Instances need to run on the same Machine obviously, for the Temp '.TXT' File, on the same Machine or the same LAN Network, for both Machines to be able to access the same (Network) Directory, but for some Temp Web Page (or E-mail or GoogleDoc), the 2 Macros can even run on some completely separate Machines, as long as they both can access that Web-Page...

Thanks my friend.. Good ideas i think using files is the way i will do. Thanks
Wemerson Guimaraes
Rio Verde - GO, Brazil
Just an iMacros curious
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Can iMacros send SMS, E-Mail and mobile push notificati

Post by chivracq » Wed Mar 09, 2016 2:09 pm

wemersonrv wrote:Thanks my friend.. Good ideas i think using files is the way i will do. Thanks
Yep..., and you can even integrate some "Security" Mechanism in the Delete/Write/Read Process, I've done so in one of my Macros (which needs to "communicate" with itself between different Runs, either between Loops or since the last Run, it's a bit the same like 2 different Macros communicating with each others, as all Vars get reset between different Loops/Runs), the Part (or first Macro for you) doing the Delete + Writing, first does some Reading (of the original Data + one Flag and Timestamp) added by the second part/Macro and depending on that Flag and the Difference in Time with that Timestamp will Conditionally delete the File or rewrite the first Row with Original Data and add a second Row with the Current Timestamp and its own Flag, and the Reading part will do more or less the same, with Reading (and using the Data), re-writing the Data with a Timestamp when it used the Data + a Flag and eventually deleting the File as well... + All Actions get saved as well to a separate File that acts as a Log-File to check when the Macro ran (successfully) and if everything went OK and for some long term Calculations on the Data that is being saved...

One more way that I forgot to mention for 2 Macros to communicate with each other is, if you need to hard-code some Vars in Macro1 and you'll need the same Values in Macro2, it is possible to "misuse" Macro1 directly as the DataSource for Macro2. ('.iim' Macros are just Text Files, after all...!)
- (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...
wemersonrv
Posts: 35
Joined: Thu Oct 16, 2014 10:25 pm

Re: Can iMacros send SMS, E-Mail and mobile push notificati

Post by wemersonrv » Wed Mar 09, 2016 3:20 pm

Hi... i just make a little excercise testing message exchanging with CLIPBOARD...

It works, but when i run 2 macros in different browsers... the first (server.js) still waiting until the second (client.js) was stopped...
The first loop runs on server.js... and in the client.js, loop works fine... then when i stop the client.js on other browser instance, the client.js returns to run.

I am using the file server.js in an normal Firefox instance... and client.js in a anonymous Firefox instance...

Below, the code...

Simgle offline HTML content to use on test

Code: Select all

<html>
<head>
	<title>Teste Client Server</title>
	<style>
		div{
			border: 1px solid red; 
			padding-top: 5px;
			padding-left: 10px;
			margin-bottom: 10px;
			width: 300px;
		}

		h4{ 
			margin: 0; 
			padding: 0;
			padding-bottom: 5px;
		}

		input{ width: 280px;}
	</style>
</head>
<body>

	<h3>Imacros messege exchange</h3>
	<div>
		<h4>Server Command</h4>
		<form>
			<input type="text" id="srv-command" value="0">
		</form>
	</div>
	<div>
		<h4>Client Command</h4>
		<form>
			<input type="text" id="cli-command" value="">
		</form>
	</div>

</body>
</html>
server.js

Code: Select all

var macro = "";
var command;
EmptyClipboard();

iimDisplay("Running Message SERVER macro...");
while( true ){
	macro =  "CODE:";
	macro += "\nWAIT SECONDS=10";
	macro += "\nTAG POS=1 TYPE=INPUT:TEXT ATTR=ID:srv-command EXTRACT=TXT";
	iimPlay(macro);
	command = iimGetLastExtract(1);
	if( command !== "0" ){
		macro  = "CODE:";
		macro += "\nSET !CLIPBOARD \""+command+"\"";
		iimPlay(macro);
		iimDisplay("Message send to client...");
	}
}

function EmptyClipboard(){

	macro = "CODE:\nSET !CLIPBOARD \"__empty__\"";
	iimPlay(macro);

}
client.js

Code: Select all

var macro = "";
var command;

iimDisplay("Running Message CLIENT macro...");

while( true ){

	macro =  "CODE:";
	macro += "\nWAIT SECONDS=1";
	macro += "\nSET !EXTRACT {{!CLIPBOARD}}";
	iimPlay(macro);
	command = iimGetLastExtract(1);

	if( command!=="__empty__"){
		macro  = "CODE:";
		macro += "\nTAG POS=1 TYPE=INPUT:TEXT ATTR=ID:cli-command CONTENT=\"Server command received: '"+command+"'\"";
		iimPlay(macro);
		EmptyClipboard();
	}
			
}

function EmptyClipboard(){

	macro = "CODE:\nSET !CLIPBOARD \"__empty__\"";
	iimPlay(macro);

}
Wemerson Guimaraes
Rio Verde - GO, Brazil
Just an iMacros curious
wemersonrv
Posts: 35
Joined: Thu Oct 16, 2014 10:25 pm

Re: Can iMacros send SMS, E-Mail and mobile push notificati

Post by wemersonrv » Thu Mar 10, 2016 7:42 pm

There is any way to allow two browsers instances to run macros without problems ?

I try all setups here and still blocks the first macro when start macro at second browser!

Important.;... it's the same browser running imacros with javscript... one browser (firefox) normal and other browser is firefox too but running at anonymous mode.
Wemerson Guimaraes
Rio Verde - GO, Brazil
Just an iMacros curious
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Can iMacros send SMS, E-Mail and mobile push notificati

Post by chivracq » Thu Mar 10, 2016 7:50 pm

wemersonrv wrote:There are are any way to allow two browsers instances to run macros without problems ?

I try all setups here and still blocks the first macro when start macro at second browser!

Important.;... it's the same browser running imacros with javscript... one browser (firefox) normal and other browser is firefox too but running at anonymous mode.
My Experience is that the FF JavaScript Engine is very "Mono-Tasking" when running 2 Macros (same or different Macro(s)) in 2 FF Instances within the same FF Profile... => It works better if you use 2 different Profiles...
- (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...
wemersonrv
Posts: 35
Joined: Thu Oct 16, 2014 10:25 pm

Re: Can iMacros send SMS, E-Mail and mobile push notificati

Post by wemersonrv » Thu Mar 10, 2016 8:29 pm

chivracq wrote:My Experience is that the FF JavaScript Engine is very "Mono-Tasking" when running 2 Macros (same or different Macro(s)) in 2 FF Instances within the same FF Profile... => It works better if you use 2 different Profiles...
Well... i will do a test with it and see if works on my macro!

Thanks!
Wemerson Guimaraes
Rio Verde - GO, Brazil
Just an iMacros curious
Post Reply