Jump to content
Macro Express Forums

How to make Output from External Script


Recommended Posts

I confuse to make output from Autoit External Script...

 

 

External Script

#RequireAdmin
#include <NomadMemory.au3>
$PID = ProcessExists( "Tutorial-i386.exe" )
$hOpen = _memoryopen($PID)
$Adresse = "0x0008BF98"
$Read = _MemoryRead($Adresse, $hOpen, 'dword')
MsgBox(0,"", $Read) ;<-- i want this value is reading by macro express
$write = _MemoryWrite($Adresse, $hOpen, "", 'dword')
_MemoryClose($hOpen)

Macro Script

<EXTERNAL SCRIPT Language="AutoIt" Dest="%T[2]%" Script="#RequireAdmin\r\n#include <NomadMemory.au3>\r\n$PID = ProcessExists( \"Tutorial-i386.exe\" )\r\n$hOpen = _memoryopen($PID)\r\n$Adresse = \"0x0006EDE8\"\r\n$Read = _MemoryRead($Adresse, $hOpen, 'dword')\r\nMsgBox(0,\"\", $Read)\r\n$write = _MemoryWrite($Adresse, $hOpen, \"\", 'dword')\r\n_MemoryClose($hOpen)\r\n"/>
<TEXT BOX DISPLAY Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil Tahoma;}{\\f1\\fnil\\fcharset0 Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 %T\\f1 [1\\f0 ]%\r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/>

i Make output into %T[1]% But the value is not display... how to make value is reading by macro express

 

thx for advice

 

Link to comment
Share on other sites

  • 2 weeks later...

The AutoIt command you need is ConsoleWrite. Here's a simple example.

Variable Set String %T[1]% to ""Input Parameter""

External Script: AutoIt

Text Box Display:
<VARIABLE SET STRING Option="\x00" Destination="%T[1]%" Value="\"Input Parameter\""/>

<EXTERNAL SCRIPT Language="AutoIt" Dest="%T[2]%" Script="ConsoleWrite($CmdLine[1] & \" - suffix added by AutoIt!\")" Parameters="%T[1]%" Encoding="0"/>

<TEXT BOX DISPLAY Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang3081{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 Passed in:\r\n\\par    %T[1]%\r\n\\par \r\n\\par Returned:\r\n\\par    %T[2]%\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="450" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/>
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...