Jump to content
Sign in to follow this  
firewzy

How to get an array point

Recommended Posts

firewzy

I want to use a function of a dll file with autoit. But the function needs an array point as an inputed parameter. I don't know whether autoit has the ability to return the point address of an array as visual basic 6 has the varptr/strptr/objptr function to get the point of var/str/obj. Please save me!

Share this post


Link to post
Share on other sites
martin

I want to use a function of a dll file with autoit. But the function needs an array point as an inputed parameter. I don't know whether autoit has the ability to return the point address of an array as visual basic 6 has the varptr/strptr/objptr function to get the point of var/str/obj. Please save me!

I think what you're after is

DllStructGetPtr


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
firewzy

I think what you're after is

DllStructGetPtr

No, it's not answer I want.

Such as below:

dim $temp[3] = [1, 2, 3];

I want to know how to get the point of the array as $temp.

Share this post


Link to post
Share on other sites
/dev/null

No, it's not answer I want.

Such as below:

dim $temp[3] = [1, 2, 3];

I want to know how to get the point of the array as $temp.

what's the "point" of an array ??? Maybe you just tell us the name of the function you are talking about and the parameter in question...

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites
firewzy

what's the "point" of an array ??? Maybe you just tell us the name of the function you are talking about and the parameter in question...

Cheers

Kurt

The point I said means the address of an array as C/C++.

In C/C++ such as below:

--------------------------------------------------

int arrTest[3]={1,2,3}, *arrPtr=NULL;

arrPtr = arrTest;

---------------------------------------------------

Here the arrPtr variable is pointed to the first element of the array arrTest in C/C++.

I don't know whether autoit has the function that returns a point or address of a variable such as the arrTest array.

Cheers! Hope back!

Share this post


Link to post
Share on other sites
PsaltyDS

Please help me!

Martin tried, you weren't interested in the answer. AutoIt is an interpreted scripting language, not a compiled language. You don't normally have access to things at such a low level from a scripting language. One place you might come close is a DllStruct pointer. But you didn't care for that answer.

If you need low-level access to memory that C++ has and AutoIt doesn't, then use C++ for your program.

:D


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
firewzy

Martin tried, you weren't interested in the answer. AutoIt is an interpreted scripting language, not a compiled language. You don't normally have access to things at such a low level from a scripting language. One place you might come close is a DllStruct pointer. But you didn't care for that answer.

If you need low-level access to memory that C++ has and AutoIt doesn't, then use C++ for your program.

:D

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.