Jump to content
Sign in to follow this  
GaryFrost

2 values into a word

Recommended Posts

need to be able to put 2 values into a word

1st value goes into the low-order of the word

2nd value goes into the high order of the word

Haven't a clue how to do this.

<{POST_SNAPBACK}>

You certainly mean in a double word

dword= hiword* 65536 + loword

dword has the same size as an integer

Share this post


Link to post
Share on other sites

here's what the documentation says:

lParam

The low-order word specifies the zero-based index of the first item to select. The high-order word specifies the zero-based index of the last item to select.

This message can select a range only within the first 65,536 items

Edit: yep that worked thanks jpm.

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

here's what the documentation says:

lParam

The low-order word specifies the zero-based index of the first item to select. The high-order word specifies the zero-based index of the last item to select.

This message can select a range only within the first 65,536 items

<{POST_SNAPBACK}>

so my formula is correct provided hiword and loword is less than 65535 and greater or equal to 0

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...