flat assembler
Message board for the users of flat assembler.
Index
> Windows > how to activate ScreenSaver? |
Author |
|
Dryobates 04 Feb 2004, 11:31
Code: format PE console include '%include%\win32a.inc' WM_SYSCOMMAND = 112h SC_SCREENSAVE = 0f140h section '.code' readable executable entry start start: invoke GetDesktopWindow invoke PostMessage,eax,WM_SYSCOMMAND,SC_SCREENSAVE,0 invoke ExitProcess,0 section '.idata' import data readable writeable library kernel, 'kernel32.dll', \ user, 'user32.dll' import kernel, \ ExitProcess, 'ExitProcess' import user,\ PostMessage,'PostMessageA',\ GetDesktopWindow, 'GetDesktopWindow' That's works |
|||
04 Feb 2004, 11:31 |
|
HarryTuttle 04 Feb 2004, 12:08
I know ,what I'll say can be little strange but your code dryobates dosn't work a well as mine.
THX any way! is it possible that windows or any programm lock the messages? btw : let you upgrade your FASM version to latest 1.51 _________________ Microsoft: brings power of yesterday to computers of today. |
|||
04 Feb 2004, 12:08 |
|
Dryobates 04 Feb 2004, 14:00
Quote: I know ,what I'll say can be little strange but your code dryobates dosn't work a well as mine. It is working on my comp. Maybe you haven't set screensaver? Quote: is it possible that windows or any programm lock the messages? It is possible. E.g. some CD-burners do that. Quote: btw : let you upgrade your FASM version to latest 1.51 I use FASM 1.51 beta 4, WinXP and have set screensaver (but there's now information about it in system.ini) |
|||
04 Feb 2004, 14:00 |
|
HarryTuttle 04 Feb 2004, 14:45
so I think you changed %fasminc% to %include% to support older fasm's sources.(right?)
I have no Idea what happend but on another computer everything: as yours as my code works well, so maybe something blocked the screen saver. I checked settings and screensaver was turn on but worked only when click preview. How to block screensaver or how to check the screensaver is blocked? very thank You Dryobates! regards, _________________ Microsoft: brings power of yesterday to computers of today. |
|||
04 Feb 2004, 14:45 |
|
Dryobates 04 Feb 2004, 16:30
Quote: so I think you changed %fasminc% to %include% to support older fasm's sources.(right?) I've just add another alias How to block screensaver or how to check the screensaver is blocked? [/quote] In Plantform SDK you can read: Quote: Windows does not start the screen saver if any of the following conditions exist: So check them. |
|||
04 Feb 2004, 16:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.