Visual Basic Help! (key simulation)

Mattyl110792

Daemon Poster
Messages
1,027
Hi,

I am pretty bad at programming (with Visual Basic) as i am at the early stage of learning lol....but i would like to know what code should be used in the following environment....

Ok, i have a remote which came with my tuner card, and i have a little prog i downloaded which makes the remote buttons perform small tasks, such as playing and pausing winamp/windows media player and turning the screen saver on and off.

Now it has the option of you assigning exe files to a button. On that note, i would like to create an exe that simply presses the CTRL, Shift and K keys (for those who don't know that activates/deactivates Winamp visualizations). I just can't seem to make Visual Basic simulate the key press. Any help would be much appreciated.

Note: and yes i realise i have to make sure its winamp that recognises the key press, so i just made it Shell winamp before the key action lol....sorry if im confusing ya'll

Thanking you,

Matt
 
vb6 i presume
use the

SendKeys

ie:
Dim pId As Long
pId = Shell("notepad.exe")
AppActivate id, True
SendKeys "%{F4}", True

% is alt
 
Back
Top Bottom