hi! i'm surprised how do you understand words "simplify by split to parts" - it is a great "step one"! so, why do you decided to use mouse hooking? does wm_mousemove not suit you? look at this one: 1667464162__r_4.zip
hello,shoo Thanks you taught me an another method for getting mouse Coordinates. my final aim is used the desktop as background, not windows be cteated like WaterEffect demo. if i didn't use mousehook, mouse Coordinates can be gotten when the mouse is outside windows. regards
ok, got it. so, let's consider step 1 is over. let's do the next one - try to draw clock arrows. do not know how it will be simpler/faster(/smaller) - maybe it is better to use ready table of offsets instead of sine calculation each painting. of course, some intermediate values will be needed: at least one for minutes and three for hours (just a thought)... regards!
hello,shoo problem: 1. the chars are glittering. 2. every char can't fly when mouse is moving. regards. 540082773__charmov_8.rar
Hello,shoo the font size may be modified by following parameter. ;======================================================== invoke CreateFont,19,0,0,0,0,0,0,0,ANSI_CHARSET,\ OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,\ DEFAULT_PITCH or FF_SCRIPT,offset FontName ;======================================================== regards
hi! just had a look at the prog: not easy to get it at once it is possible it will be hard to help you for me - it goes outside my experience, but i'll try 1. each wm_timer you invalidate full window rect and force to fully redraw your clock. full redrawing enough slow thus you get such bad effect. i have no quick solution for this - it would be better if you contact with game writers - it is same game, just letters fly 2. this problem connected with prev: you draw all chars after wm_paint got: no wm_mousehook will be received while you not finish processing prev message (wm_mousehook will be waiting in the message queue) - you should draw letters one by one, and between them check where is the mouse pointer: then your letters will fly separately like in the script. ok, if i'll find anything new, i'll let you know. regards!
hello,shoo Thanks you for response. I did it only for improving my asm ability. no times to be limited. I'v already learned a lot skill from you. regards.
thanks for your credits - it is mostly my common experience. i see you are quite persistent, so, everything is possible with this!