Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir

i created the vbs for sending keys to the notepad..

code is:
C#
set wshshell = CreateObject("wscript.shell")
dim w
w = wshshell.AppActivate("notepad")
wshshell.sendkeys" "
wshshell.sendKeys"%{f} ^{p}"
wshshell.sendkeys"^{p}"


but the prob is is sending first keys only..

how to send more key..

i want to enable and disable the wordwrap..

how can i do it..
Posted

1 solution

Try by enclosing special key codes (for Alt key etc) in braces {}.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900