Featured post
winapi - How to read memory values using VBScript? -
i want use vbscript read values directly out of memory of running application.
can't seem find information on using readprocessmemory()
in vbscript.
i intend use in quick test pro screen scraping of application needs testing. application not use standard controls , using qtp's ocr abilities not provide reliable results.
we have code written in autoit reads values of application directly memory , converts ascii. want remove reliance on , using vbscript within qtp ideal.
so can tell me how can read values executable in memory using vbscript?
you can't in vbscript directly. josh einstein's comment above mentions, it's impossible call native windows api functions directly vbscript. there 2 major reasons why case. first, pose obvious security risks code written in such scripting language able call native code directly. , second, vbscript has 1 data type (variant
), not going work return values of of windows api functions.
instead, you'll have wrap native api functions need in activex dll (com automation object), and call functions library vbscript. wrapper dll designed vbscript-interoperability , take care of necessary data-type conversions, exposing variant
types , containing of necessary (or potentially necessary!) error handling routines. using vb 6 quickest , easiest way , doesn't require learn new language, can c++, if you're comfortable there.
- Get link
- X
- Other Apps
Comments
Post a Comment