Deye

Consistency check

4 posts in this topic

#1 ·  Posted (edited)

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



#2 ·  Posted

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

1 person likes this

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

Share this post


Link to post
Share on other sites

#3 ·  Posted

My clipboard:

0xFFF0BDC5
0xFFF0BDC4
0xFFF0BDC3
0xFFF0BDC2
0xFFF0BDC1

 

1 person likes this

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

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

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

Share this post


Link to post
Share on other sites

#4 ·  Posted


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