1. Если вы только начинаете программировать на ассемблере и не знаете с чего начать, тогда попробуйте среду разработки ASM Visual IDE
    (c) на правах рекламы
    Скрыть объявление

an another clock

Тема в разделе "WASM.ENGLISH", создана пользователем dcskm4200, 1 июн 2005.

  1. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
  2. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
  3. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
  4. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
  5. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
  6. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
  7. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
  8. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
  9. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    Tulips.bmp is too big to send hardly.
     
  10. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine
    hi! i'm surprised how do you understand words "simplify by split to parts" - it is a great "step one"! :D



    so, why do you decided to use mouse hooking? does wm_mousemove not suit you? look at this one:

    [​IMG] 1667464162__r_4.zip
     
  11. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    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
     
  12. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine
    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!
     
  13. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    hello,shoo



    problem:



    1. the chars are glittering.

    2. every char can't fly when mouse is moving.



    regards.



    [​IMG] 540082773__charmov_8.rar
     
  14. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine
    hi! i will look there little later - i'm just currently too busy with other work. regards!
     
  15. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    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
     
  16. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine
    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 :dntknw: - 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!
     
  17. dcskm4200

    dcskm4200 New Member

    Публикаций:
    0
    Регистрация:
    12 окт 2004
    Сообщения:
    173
    Адрес:
    China
    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.
     
  18. shoo

    shoo New Member

    Публикаций:
    0
    Регистрация:
    17 июл 2003
    Сообщения:
    1.537
    Адрес:
    Ukraine
    thanks for your credits - it is mostly my common experience. i see you are quite persistent, so, everything is possible with this!