How to read memory values ​​using VBScript?

I want to use VBScript to read values ​​directly from the memory of another running application.
I can not find usage information ReadProcessMemory()in VBScript.

I intend to use this in Quick Test Pro to screen the screen of an application that needs testing. This application does not use any standard controls and using QTP OCR features does not give us reliable results.

We currently have code written in AutoIT that reads the values ​​of this application directly from memory and converts it to ASCII. But we want to get rid of this, and using VBScript from QTP would be ideal.

So can anyone tell me how can I read values ​​from an executable in memory using VBScript?

+3
source share
1 answer

You cannot do this directly in VBScript. As Josh Einstein commented above, it is not possible to call native Windows API functions from VBScript right away. There are two main reasons why this is so. First, it would create obvious security risks for code written in such a scripting language to be able to directly name its own code. And secondly, VBScript has only one data type ( Variant), which will not work correctly with the return values ​​of most Windows API functions.

API, ActiveX DLL ( COM), , VBScript. DLL- VBScript- , Variant ( !) . VB 6 - , ++, .

+4

Source: https://habr.com/ru/post/1781372/


All Articles