flat assembler
Message board for the users of flat assembler.

flat assembler > Main > Event Management

Author
Thread Post new topic Reply to topic
Mino



Joined: 14 Jan 2018
Posts: 142
Hello,
it's probably a bit of a special question. Indeed, I would like to know if it was possible to manage program events via FASM, for example :

    Opening the program ;
    Closing the program ;
    As soon as it's X o'clock ;
    When the user presses a button ;
    As soon as there is an user input ;
    ...

It's probably possible, since it's done, but... I have no idea how to do it.
Would you enlighten me a little Very Happy ?
Thank you Smile

_________________
The best way to predict the future is to invent it.
Post 26 May 2018, 21:33
View user's profile Send private message Reply with quote
Melissa



Joined: 12 Apr 2012
Posts: 55
First learn how to do it in particular OS, then do it in assembly.
Post 26 May 2018, 23:37
View user's profile Send private message Reply with quote
Mino



Joined: 14 Jan 2018
Posts: 142
I'm afraid I don't understand. How (and especially why) use an other operating system to then transcribe the events into assembler?
Post 27 May 2018, 07:46
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15904
Location: SDSS J140821.67+025733.2
Events and I/O are controlled by the OS. It doesn't matter about assembly or HLL, they both still have to ask the OS for help with those things. So I guess Melissa is suggesting to learn about what your OS requires for handling events and only then can you start to write assembly code.

So, that suggests the question: For which OS do you want to do this?
Post 27 May 2018, 08:46
View user's profile Send private message Visit poster's website Reply with quote
Mino



Joined: 14 Jan 2018
Posts: 142
A ok, thanks for the supplements, I understand better now Smile
So the OS is Windows at first, although I'd like to export that later on to UNIX.
Post 27 May 2018, 09:04
View user's profile Send private message Reply with quote
Furs



Joined: 04 Mar 2016
Posts: 1201
Well most of the Windows "windows" API is event-driven (if not all of it)...

Obviously I assume when you say "user presses a button" you mean in YOUR app and not another app's, because the latter is harder.

e.g. if it clicks in a button in your app (you need to look up Windows Controls), or inputs something in a text field or whatever.
Post 27 May 2018, 18:49
View user's profile Send private message Reply with quote
Mino



Joined: 14 Jan 2018
Posts: 142
All right, I see better where to go now Smile Thanks to you!
Post 27 May 2018, 20:14
View user's profile Send private message 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-2018, Tomasz Grysztar.

Powered by rwasa.