sorry that I'm only giving this in vb...
you need keybd_event.
Public Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
constants:
Const KEYEVENTF_EXTENDEDKEY As UInteger = &H1
Const KEYEVENTF_KEYUP As UInteger = &H2
using the keybd event, there has to be a interval of at least 10ms between key down and key up.
keybd_event(Keys.F, 0, 0, 0)
'10 ms delay here... figure it out yourself.
keybd_event(Keys.F, 0, KEYEVENTF_KEYUP, 0)
That's it. program the UI, modify to your needs, compile & run as admin. Enjoy your macroing.
- Smyril out.
you need keybd_event.
Public Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
constants:
Const KEYEVENTF_EXTENDEDKEY As UInteger = &H1
Const KEYEVENTF_KEYUP As UInteger = &H2
using the keybd event, there has to be a interval of at least 10ms between key down and key up.
keybd_event(Keys.F, 0, 0, 0)
'10 ms delay here... figure it out yourself.
keybd_event(Keys.F, 0, KEYEVENTF_KEYUP, 0)
That's it. program the UI, modify to your needs, compile & run as admin. Enjoy your macroing.
- Smyril out.