Jump to content

Consistency check


Deye
 Share

Recommended Posts

Hi,

I need a small confirmation on the matter
Running this Example, My clipboard shows:

0xFFF0BDC5
0xFFF0BDC4
0xFFF0BDC3
0xFFF0BDC2
0xFFF0BDC1

Do you have the same outcome ?
    
Also :
In my main script i get padded returns like : 0x00000000FFF0BDC1 - don't know the reason  why  as yet
And what can make a conversion back to the original posted number ?
    
Thanks

#include <WinApi.au3>

Global Const $WM_MYMSG = _WinAPI_RegisterWindowMessage('WM_MYMSG')
Global Const $HWND_BROADCAST = 0xFFFF
$hGUI = GUICreate('')
GUIRegisterMsg($WM_MYMSG, 'WM_MYMSG')

_Example()

GUIDelete($hGUI)
Exit

Func _Example()
ClipPut('')
_WinAPI_PostMessage($HWND_BROADCAST, $WM_MYMSG, -999995, $hGUI)
_WinAPI_PostMessage($HWND_BROADCAST, $WM_MYMSG, -999996, $hGUI)
_WinAPI_PostMessage($HWND_BROADCAST, $WM_MYMSG, -999997, $hGUI)
_WinAPI_PostMessage($HWND_BROADCAST, $WM_MYMSG, -999998, $hGUI)
_WinAPI_PostMessage($HWND_BROADCAST, $WM_MYMSG, -999999, $hGUI)
EndFunc

Func WM_MYMSG($hWnd, $iMsg, $wParam, $lParam)
    ClipPut(ClipGet() & @CRLF & $wParam)
EndFunc   ;==>WM_MYMSG

 

Edited by Deye
Link to comment
Share on other sites

  • Moderators

@Deye I get the same result from the script you have posted. If you are seeing different results produced from your "main script", we will need to see that to help you determine the difference.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...