Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Nested Structure?

$
0
0
Hi mates. it's me again.


I'm stuck trying with a  nested structure, I can find the best way to do the structure, I Thought making a long  byte structure and then Peek the byte that y need, but I thinks is not efficient.


I have this:

[ autoit ]      
$pointer="here my pointer" $str=DllStructCreate("long;word;byte[4];Ptr;long",$pointer) $b1=DllStructCreate("byte",DllStructGetPtr($str,3)) $b2=DllStructCreate("byte",DllStructGetPtr($b1)+1) $b3=DllStructCreate("byte",DllStructGetPtr($b2)+1) $b4=DllStructCreate("byte",DllStructGetPtr($b3)+1) ;msgbox(0,"",DllStructGetData($b3,1))


My ask is: is there some best way to do it.


I mean something like this:


[ autoit ]      
$pointer="here my poitner" $STRB=DllStructCreate(DllStructCreate("byte;byte;byte;byte") $stra=DllStructCreate("long;word;HELLO as $STRB;Ptr;long",$pointer) ;obviously this is wrong

:sweating:

any suggestions is wellcome.

Regards.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>