flat assembler
Message board for the users of flat assembler.

Index > Windows > working a mouse

Author
Thread Post new topic Reply to topic
dushlak



Joined: 21 Apr 2021
Posts: 7
dushlak 21 Apr 2021, 07:56
help please write the code for MASM32 task 1 Moving the mouse in the lower half of the window maximizes the window.
Pressing ESC - return the window to its previous view.
task 2 Restore the mouse threshold and its speed of movement on SystemParametersInfo function.
Post 21 Apr 2021, 07:56
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20362
Location: In your JS exploiting you and your system
revolution 21 Apr 2021, 15:20
The very specific criteria makes this look like something for homework.

This, of course, isn't a MASM board so help might be hard to garner.

If you were to post what you have so far, someone might be able to spot something and point out a fix.
Post 21 Apr 2021, 15:20
View user's profile Send private message Visit poster's website Reply with quote
idle



Joined: 06 Jan 2011
Posts: 440
Location: Ukraine
idle 21 Apr 2021, 16:23
wasm.in should help if you speak russian
Post 21 Apr 2021, 16:23
View user's profile Send private message Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 21 Apr 2021, 17:03
You have to setup timer and scan your mouse position by that timer. Almost all work going to be done via WM_NOTIFY

Oh no, there is WM_MOUSEMOVE for mouse
Post 21 Apr 2021, 17:03
View user's profile Send private message Visit poster's website Reply with quote
dushlak



Joined: 21 Apr 2021
Posts: 7
dushlak 22 Apr 2021, 12:54
It turns out that in the wrong topic I wrote my task I need the code in assembler under Windows
Post 22 Apr 2021, 12:54
View user's profile Send private message Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 1228
Location: Belarus
DimonSoft 23 Apr 2021, 11:53
Overclick wrote:
You have to setup timer and scan your mouse position by that timer. Almost all work going to be done via WM_NOTIFY

Oh no, there is WM_MOUSEMOVE for mouse

And WM_TIMER for timer (not WM_NOTIFY) which will not be needed since WM_MOUSEMOVE will appear frequently enough.
Post 23 Apr 2021, 11:53
View user's profile Send private message Visit poster's website Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 669
Location: Ukraine
Overclick 23 Apr 2021, 15:44
Quote:

And WM_TIMER for timer (not WM_NOTIFY) which will not be needed since WM_MOUSEMOVE will appear frequently enough

Exactly as I said
Post 23 Apr 2021, 15:44
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.