flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 07 Nov 2011, 11:52
semiono wrote: How to press ALT+SHIFT on winxp desktop? |
|||
![]() |
|
typedef 07 Nov 2011, 13:26
semiono wrote:
Let the fear inside you ! ![]() Seriously, use the modifiers dude. Read the documentation thoroughly |
|||
![]() |
|
Picnic 07 Nov 2011, 22:34
semiono here are few lines that work on my 32 bit xp.
Simulating a Left Windows key keystroke that pops the Start menu. Code: format pe console 4.0 include "win32ax.inc" .data macro union [def] { common size@union = 0 origin@union = $ forward virtual def if $-origin@union > size@union size@union = $-origin@union end if end virtual common rb size@union } struc MOUSEINPUT { ._dx dd ? ._dy dd ? .mouseData dd ? .dwFlags dd ? .time dd ? .dwExtraInfo dd ? } struc KEYBDINPUT { .wVk dw 0 .wScan dw 0 .dwFlags dd 0 .time dd 0 .dwExtraInfo dd 0 } struc HARDWAREINPUT { .uMsg dd ? .wParamL dw ? .wParamH dw ? } struc INPUT { .type dd ? union .mi MOUSEINPUT,\ .ki KEYBDINPUT,\ .hi HARDWAREINPUT } virtual at 0 INPUT INPUT INPUT.size: end virtual inp INPUT define INPUT_KEYBOARD 0x1 define VK_LWIN 0x5B define KEYEVENTF_KEYUP 0x02 .code main: mov [inp.type], INPUT_KEYBOARD mov [inp.ki.wVk], VK_LWIN mov [inp.ki.wScan], 0 mov [inp.ki.dwFlags], 0 mov [inp.ki.time], 0 mov [inp.ki.dwExtraInfo], 0 invoke SendInput, 1, inp, INPUT.size mov [inp.ki.wVk], VK_LWIN mov [inp.ki.wScan], 0 mov [inp.ki.dwFlags], KEYEVENTF_KEYUP mov [inp.ki.time], 0 mov [inp.ki.dwExtraInfo], 0 invoke SendInput, 1, inp, INPUT.size invoke ExitProcess, 0 .end main p.s I'm not sure if -or how- is possible to simualte ALT+SHIFT with sendinput(). |
|||
![]() |
|
semiono 08 Nov 2011, 00:50
Picnic, thank You!
revolution wrote: I use keybd_event to send keystrokes to other windows. True! invoke keybd_event,VK_ESCAPE,NULL,NULL,NULL without dancing with a tambourine! msdn wrote: Note This function has been superseded. Use SendInput instead. la-la-la ![]() _________________ Windows 9, FL Studio 19 |
|||
![]() |
|
typedef 08 Nov 2011, 02:20
semiono wrote: Picnic, thank You! Note Old people have been superseded. Go to young people instead. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.