Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/10/2012 in all areas

  1. $iPost += 1
    1 point
  2. Ask and you shall receive.
    1 point
  3. Maffe811, Part 2. The 2 words we extract from $wParam are the Code for that message and the IDFrom telling us the ControlID of the control which sent it. $EN_CHANGE is a message sent by an Edit control (hence the E prefix) when something has changed within it. This is useful when looking to see if the user has entered something when we need to act upon it - we can use IDFrom[/i to check which edit control sent the message. Here is a good example of both of them being used - see if you can follow it now. M23
    1 point
  4. Maffe811, Stand by for short course in Bit arithmetic. $wParam is 8 bytes wide - think "12345678", although each digit can actually be 0-F. Sometimes the value in $wParam is divided into 2 separate 4 byte values - the "High" and the "Low" words. In the example above, these are: High = "1234"; Low = "5678". It is a clever way of passing 2 values within a single parameter. So how to separate these values? We could use _WinAPI_HiWord and _WinAPI_LoWord, but that would mean including WinAPI.au3. So we manipulate the value ourselves. High word first: here we just shift the the whole parameter to the right: Local $iCode = BitShift($wParam, 16)Remember that each byte has 4 bits (Hex 0-F = Binary 0000 - 1111) - so if we shift the whole number 4x4 bits to the right, we get just "1234" - the "High" part. Now the Low word: here we use another of the Bit operators to blank out the "High" bytes: Local $iIDFrom = BitAND($wParam, 0xFFFF)BitAND says only keep bit where there is a value in both of the operators - in our case we get this: 12345678 0000FFFF - remember that F = 1111 = 00005678 - as only the final 4 bytes can possibly have 1's set in both valuesSo basically we keep all the Low bytes and set all the High bytes to zero - the result is the Low word. Still with me? I will come back with the second part after the Germany/Portugal match has finished. M23
    1 point
  5. Delighted to hear it! Please ask if you have any questions after reading the tutorial and I shall do my best to clarify - although as I wrote it that might be a bit difficult! M23
    1 point
  6. Maffe811, Then I suggest reading the GUIRegisterMsg tutorial in the Wiki to get it all explained. You have been here long enough to have read the Forum Rules - can you assure me that this does not interact with the game and is something entirely separate? M23
    1 point
  7. Here another method to play wave audio files from memory! Source code here: http://autoit.pastebin.com/0fYwC9tZ Original code by wolf9228 from this topic: To create a binary string look to post #11. Br, UEZ
    1 point
×
×
  • Create New...