Help - Search - Members - Calendar
Full Version: Executing PHP commands...
AC Tools Everything Macro > General Discussion > C++/Delphi/VB Development
Sniper007
Alright guys, this one is simple in concept, but may be tough if not impossible to implement... I am wondering if there is any way to execute a .php file using ACTool. Obviously I need to do this only after certain conditions are met in my ACTool macro. The php file is already written, and I can run it just find using IE 6.0. Any ideas?

ph34r.gif

Edit: implament => implement, courtesy www.dictionary.com
Ipa
PHP has a command line tool for executing PHP scripts, right ?

Try using ExecProgram command to exec PHP with your script name as the parameter.
Sniper007
I tried:
CODE
ExecProgram 'C:\swamp\php\cli\php.exe -f C:\swamp\www\storage\ffxi\manage\LoadFishLog.php'
But it doesn't work... The exact same command line:
QUOTE
C:\swamp\php\cli\php.exe -f C:\swamp\www\storage\ffxi\manage\LoadFishLog.php
Works perfectly when I use it in a normal dos window (I'm running WinXP).

May the ACTool gods have mercy on me and grant me the power to execute these commands! ph34r.gif
Sniper007
I tried a work-around by making a batch file that contains the command line, then executing THAT... it worked (executed the code successfully) but it broke me out of FFXI fullscreen mode! sad.gif

Any suggestions?
Ipa

Right, forgot, have to use a batch file if you are passing params to a program.

You may need to code an On WindowChange procedure in your macro, to handle the active window changing from FFXI to whatever window the PHP command runs in.
In the handler, you could add a call to SetActiveWindow back to FFXI
Sniper007
blink.gif

That sounds very technical, yet I think I can handle it...

Buuuut... wouldn't that then make FFXI try to minimize or at least loose fullscreen status? Because when that happens, FFXI gets VERY pissy. And there's no way I can RUN in a window (with a window hack): My macro needs FFXI fullscreen for isobject locations. I've never been able to successfully leave FFXI via a system command and return (eg: alt-tab, alt-enter, etc...) I suppose I COULD exit to the playonline shell. From there I CAN alt-tab... But that would be a huge pain in the arse.

...Or does what you described NOT disturb the fullscreen lock FFXI likes to have?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.