Клик левой кнопкой мыши на Assembler

я новичок в Assembler пишу программу которая будет кликать левую кнопку мыши на Assembler Nasm

вот мой код который компилируется и запускается но самого клика левой кнопкой мыши нет

section .data
inputMouseInput times 28 db 0 ; Структура INPUT (28 байт)
section .text
global _start
extern GetCursorPos
extern SendInput
extern ExitProcess
_start:
push inputMouseInput
call GetCursorPos

mov eax, inputMouseInput
mov dword [eax], 0 
mov dword [eax + 4], 0
mov dword [eax + 8], 0 
mov dword [eax + 16], 0 
mov dword [eax + 20], 0 
mov dword [eax + 24], 0 

push 1 
push inputMouseInput 
call SendInput

mov eax, inputMouseInput
mov dword [eax + 16], 2 


push 1
push inputMouseInput 
call SendInput

push 0 
call ExitProcess

компилирую его с помошью nasm и golinker

вот команды которыми я его компилирую в cmd

nasm>nasm -f win32 mouse.asm -o mouse.obj

golink /entry:_start /console kernel32.dll user32.dll mouse.obj

Если я неправильно составил вопрос, заранее извиняюсь


Ответы (0 шт):