如何在汇编中模拟按键跟读取内存址的值
刚学汇编,用VB写的程序想改成汇编程序
读取内存址值:
invoke FindWindow,0,addr szCaption
mov hWnd,eax
invoke GetWindowThreadProcessId, eax, addr pid
invoke OpenProcess,PROCESS_VM_READ, FALSE, pid
mov pHandle,eax
invoke ReadProcessMemory, pHandle,offset Addr3, offset tmp,2,0 :得不到所需值?
模拟按键:
invoke keybd_event,VK_F1,0,KEYEVENTF_KEYUP,0 可是不起作用?
请指点一下,谢谢