flat assembler
Message board for the users of flat assembler.
Index
> Windows > VB - > ASM emulate SendKeys |
Author |
|
Madis731 11 Mar 2005, 10:14
It's all fun and interesting, but please, use [ code] tags
Code: ;to help others read better Thank you! |
|||
11 Mar 2005, 10:14 |
|
r22 16 Mar 2005, 06:20
Everyone's a critic
|
|||
16 Mar 2005, 06:20 |
|
null 20 Apr 2005, 03:04
lol hi
_________________ ::as water fills the lungs, light empties the mind:: |
|||
20 Apr 2005, 03:04 |
|
BigVent 28 May 2008, 13:40
r22,
I really appreciate the code provided. Could you elaborate to a newb on what this does and what I can do with this. I'm trying to make a program that will interact with my remote login (give password to login screen), then click three buttons and exit. Any help is appreciated!!! |
|||
28 May 2008, 13:40 |
|
asmhack 28 May 2008, 15:17
BigVent wrote: r22, Code: invoke keybd_event,VK_NUMLOCK,0,KEYEVENTF_EXTENDEDKEY or 0,0 invoke keybd_event,VK_NUMLOCK,0,KEYEVENTF_EXTENDEDKEY or KEYEVENTF_KEYUP,0 virtual key codes: http://msdn.microsoft.com/en-us/library/ms927178.aspx |
|||
28 May 2008, 15:17 |
|
BigVent 28 May 2008, 15:36
Thank you asmhack!
--edit-- By chance... do you have an example program that will pass a pre-defined password to current window? -- End edit-- ~BIgVent |
|||
28 May 2008, 15:36 |
|
asmhack 28 May 2008, 15:52
well the above code will send keys to foreground/focused edit box for example, the other way is to obtain hwnd (handle of the edit box) and use SetWindowText api function
|
|||
28 May 2008, 15:52 |
|
bitRAKE 29 May 2008, 01:43
Maybe something like:
Code: push esi mov esi,StrToSend push [WindowHandle] call [SetForegroundWindow] SendKeys: lodsb movzx ecx,al jecxz .AllDone push 0 ; extra info push 3 ; flags for key UP push 0 ; scan code push ecx ; VK Code push 0 ; extra info push 1 ; flag push 0 ; key ScanCode push ecx ; Virtual Keycode using ASCII call [keybd_event] call [keybd_event] jmp SendKeys .AllDone: pop esi retn (all those extra instructions just make my head hurt, lol) _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
29 May 2008, 01:43 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.