Here is the blog entry http://www.sadeghi85.info/articles/using-php-functions-inside-autoit/#more-189
If anyone has any ideas or pointer id appreciate it.
Edited by evol, 27 April 2012 - 08:17 AM.
Posted 23 April 2012 - 09:47 PM
Edited by evol, 27 April 2012 - 08:17 AM.
Posted 23 April 2012 - 09:50 PM
Posted 25 April 2012 - 09:54 AM
Ok ive done that now what ? where does php4autoit.7z go now because they dont tell you and i always get a error on line 17 of there code.Download latest version of PHP if you haven’t already done so, we only need "php.exe" and "php5.dll"(or "php5ts.dll"). Then create a text file, name it "index.php" and paste the code below into it:
<?php $input = STDIN; $command = ''; while(!feof($input)) { $command .= fread($input, 8192); } eval($command); exit; ?>
Now pack all these three files to "php4autoit.7z".
#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Compression=4 #AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <constants.au3> $rand = "\~" & Random(1, 100000, 1) $_7_zip32_dll_path = @TempDir & "\7-zip32.dll" $files_7z_path = @TempDir & "\php4autoit.7z" $extracted_files_path = @TempDir & $rand DirCreate($extracted_files_path) FileInstall("7-zip32.dll", $_7_zip32_dll_path) FileInstall("php4autoit.7z", $files_7z_path) DllCall($_7_zip32_dll_path, "long", "SevenZip", "HWND", Chr(0), "str", 'x -hide -y "' & $files_7z_path & '" "' & @TempDir & "\" & '" "' & $extracted_files_path & '\"', "str", "", "long", 0) $s = "test" $s = StringToBinary($s, 4) $php = "$au3_text = '" & StringMid($s, 3) & "'; echo base64_encode(hex2bin($au3_text));" $foo = Run($extracted_files_path & "\php.exe -f index.php", "", @SW_HIDE, $STDIN_CHILD + $STDOUT_CHILD) StdinWrite($foo, $php) ; Calling with no 2nd arg closes stream StdinWrite($foo) ; Read from child's STDOUT and show $data = '' While True $data &= StdoutRead($foo, false, True) If @error Then ExitLoop Sleep(25) WEnd MsgBox(0, 'base64 encoded text', BinaryToString($data)) DirRemove($extracted_files_path, 1) Exit
Posted 26 April 2012 - 01:25 PM
AutoIt v3 →
Example Scripts →
AutoIt Remote Procedure Call (RPC) - (Version 1.0)Started by Dhilip89 , 29 May 2013 |
|
|
||
General →
Developer Chat →
Need advise on my WSA TCP functions [C]Started by matwachich , 15 May 2013 |
|
|
||
AutoIt v3 →
General Help and Support →
Rotate a WindowStarted by Loken , 05 May 2013 |
|
|
||
AutoIt v3 →
General Help and Support →
Redirect exit code of the AutoIt windowStarted by FireFox , 29 Apr 2013 |
|
|
||
AutoIt v3 →
General Help and Support →
Some big questions about au3 syntax ! Must see !Started by Rickname , 28 Apr 2013 |
|
|
0 members, 0 guests, 0 anonymous users