Jump to content
Deye

Consistency check

Recommended Posts

Deye

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

Share this post


Link to post
Share on other sites
JLogan3o13

@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.

  • Like 1

√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
TheDcoder

My clipboard:

0xFFF0BDC5
0xFFF0BDC4
0xFFF0BDC3
0xFFF0BDC2
0xFFF0BDC1

 

  • Like 1

AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) mean to do that to anybody!!!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites
Deye


Hey guys, thanks for the confirmation
@JLogan3o13 yea, as long as it is functional and does what i need,  will give this a rest for now ..
 

thanks again

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

×