Do macros ability to send commands to external applications?

locomonkey

New member
Joined
Sep 20, 2007
Messages
4
Reaction score
0
Points
0
Do macros have the ability to send commands to external applications?

I was just wondering if macros have the ability to send commands to external application in windows like curve? Or even texts.
 
Last edited:
I have wondered this too... best I could think of is have the macro output to a .INI file and have a different custom application monitor that .INI file for ques.
 
Dosent MQ2Winamp plugin run the executable from inside EQ to start the player?
And wasnt there a lifetime plugin that let you txt people from inside the game? On that note I looked p the plugins but didnt see any tagged as lifetime, did they go away or just not listed for us plebs?
 
As JJ mentioned, you can send texts via that plugin or do pretty much anything you want with your system if you know how to code it. A "simple" example could be mq2eqbcs.exe and mq2eqbc to see how the separate application interacts with a plugin. I think xeniaz even wrote his new server in python instead of c++ to interact with the c++ plugin. I'm not smart enough on it, but if you stop by the IRC channel and talk to the other devs, you could get more info.
 
I could easily create a plugin that sends a text to your phone for free using the google calendar for example... I don't know if that's what you mean by "text" though or if you mean send actual text to another application... Either way both are simple enough if you can specify your needs.
 
Texts typically can be done via an email to SMS gateway. Most major providers have them. I imagine it wouldn't be too difficult.

Also, I don't think you need a plugin to run an external command via EQ, that is if /system is still around.
 
What I'm wanting to do is something like the following:

1) If GM enters the zone - macro makes call to curl to php page to send email alert and sms or

2) in the event of a character dying while grinding, call curl --data "post blah" url... notify me via email/sms.

Taking it one step further to include a push notification to mobile app. I just don't know too much about how the macro's making external calls.
 
What I'm wanting to do is something like the following:

1) If GM enters the zone - macro makes call to curl to php page to send email alert and sms or

2) in the event of a character dying while grinding, call curl --data "post blah" url... notify me via email/sms.

Taking it one step further to include a push notification to mobile app. I just don't know too much about how the macro's making external calls.

/exec should execute any command you put after it as if it is executed from the command line. So if you have a Curl executable on Windows simply

/exec Pathtocurl.exe parameters

And it should work.

Or if you want to use internet explorer to do it you can do:

/exec "C:\Program Files\Internet Explorer\iexplore.exe" http://domain.com/phppage.php

Granted, that will leave the page open until you close it. And of course if you are running your php page on your local computer you most likely already know to use localhost or 127.0.0.1 for your domain.com. All depends on how you have it set up.
 
devestator thanks for the info! I'm going to give this a whirl. I will be calling the php file on the server to send out some alerts. So all will be good at this point :)

Thanks again!

T
 
Last edited:
Can someone give me some insight on the correct usage for calling this external application?

Application being called: C:\curl.exe

current conditional set in mainloop for testing purposes. I also am checking for false for the time being to make sure everything is working.

The command I'm running via command line is:
c:\curl.exe --data "sendingpostdatahere" http://www.somedomain.com/script.php?

When running this command in dos I see the hit in my webserver logs.

When running my macro and the conditional returns false the app is called as I see it being echoed to my chat window in eq but I see no access in the web server logs.


| Going to try to add conditional to check for a GM and if true
| call curl to send a notification
/if (!${GMCheck}) { | temporarily being set to false for the time being...
/exec "c:\curl.exe http://www.domainname.com/eq/gmcheck.php"
}

Currently I'm not sending any post data because I'm just trying to figure out why the url isn't being hit.
In my chat window I see "Opening c:\curl.exe http://......." I'm beginning to wonder if there might be a permission problem with one process trying to execute another..

Any ideas?

thanks in advance!

T
 
Can someone give me some insight on the correct usage for calling this external application?

Application being called: C:\curl.exe

current conditional set in mainloop for testing purposes. I also am checking for false for the time being to make sure everything is working.

The command I'm running via command line is:
c:\curl.exe --data "sendingpostdatahere" http://www.somedomain.com/script.php?

When running this command in dos I see the hit in my webserver logs.

When running my macro and the conditional returns false the app is called as I see it being echoed to my chat window in eq but I see no access in the web server logs.


| Going to try to add conditional to check for a GM and if true
| call curl to send a notification
/if (!${GMCheck}) { | temporarily being set to false for the time being...
/exec "c:\curl.exe http://www.domainname.com/eq/gmcheck.php"
}

Currently I'm not sending any post data because I'm just trying to figure out why the url isn't being hit.
In my chat window I see "Opening c:\curl.exe http://......." I'm beginning to wonder if there might be a permission problem with one process trying to execute another..

Any ideas?

thanks in advance!

T

Your quotes are wrong. Setting a command like that in all quotes is going to try and run the command exactly like that. The only reason you really need quotes in a command prompt command is if you have spaces in something that needs to be treated as a single argument. For example if your path to curl was C:\Some Folder\Curl.exe you would want to put quotes around that path, otherwise it would try to run the command C:\Some with the first parameter being Folder\Curl.exe.

So in your case with no space in the path most likely
/exec c:\curl.exe http://www.domainname.com/eq/gmcheck.php

Will work.

Running /exec "c:\curl.exe http://www.domainname.com/eq/gmcheck.php"
Is most likely trying to treat the url as part of the path, although I'm not sure exactly how windows will interpret the /, most likely it converts them to \, but then it would get to the // after http: and error out there if no where else due to no sub folder being specified.
 
Last edited:
Strange....

What I had to do to get things working was write a batch file that contains the call to curl. I tried escaping the / and nothing worked. Here is what I have now:

| Going to try to add conditional to check for a GM and if true
| call curl to send a notification
/if (!${GMCheck}) {
/exec c:\curl\curl.bat bg
}

I had to append the bg because I was receiving a warning in the chat window:
/exec [application "parameters"] [fg|bg]

All works now. Thanks again for the assistance. I'm a unix guy and only fire up my windows machine to play eq so scripting on windows ins't my strong suit :)