flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
lilljocke 17 Jun 2005, 19:41
I wonder how can i get all my windows on my computer?
can i use EnumWindows? How? |
|||
![]() |
|
lilljocke 17 Jun 2005, 20:37
thanks a lot
![]() ![]() |
|||
![]() |
|
lilljocke 26 Jun 2005, 13:41
I notice that EnumWindows doesn't get the windows after the Taskbar's order how can i get the taskbar windows order?
|
|||
![]() |
|
coconut 26 Jun 2005, 15:37
i dont understand what you mean by 'after taskbar's order' could you be more specific? maybe the windows youre looking for are child windows of some other window, did you try EnumChildWindows?
|
|||
![]() |
|
Azu 03 Apr 2009, 20:59
I think he wants to get the windows in the order they appear in the taskbar.
|
|||
![]() |
|
LocoDelAssembly 03 Apr 2009, 22:28
Yep, I think that too, but " 17 Jun 2005, 17:37" probably means that he doesn't care anymore
![]() |
|||
![]() |
|
Azu 03 Apr 2009, 22:51
I'm kind of curious to though. :p
|
|||
![]() |
|
Picnic 23 Jun 2009, 13:13
Searching google for a simple way to shut off my monitor through code, i discovered this small tip that seems to work.
I felt it's better not to start a new topic and just glue it here. Code: ; shut off monitor ; tested on Windows XP SP3 format PE GUI 4.0 include 'include\win32ax.inc' HWND_BROADCAST = -1 main: .code ; stop interaction for 500 ms invoke Sleep, 500 ; lParam value -1 - turn on, 1 - low power, 2 - shut off invoke SendMessage, HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2 ; terminate process invoke ExitProcess, 0 .end main |
|||
![]() |
|
eskizo 24 Jun 2009, 18:51
Is this code dangerous to monitor hardware?
Code: format PE GUI 4.0 include 'include\win32ax.inc' HWND_BROADCAST = -1 .code mov ecx, 0x0000FFFF @@: push ecx invoke SendMessage, HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, -1 invoke SendMessage, HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2 invoke Sleep, 1 pop ecx loop @b invoke ExitProcess, 0 .end |
|||
![]() |
|
Picnic 29 Jun 2009, 09:03
Hi eskizo,
I guess it's not safe to rely on this method. It works on my monitor(s) but beyond that i don't know. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.