-
help?????
i've to send information to edit.com to print a file!!!thx to someone i can open edit.com and browse the file!!now i've to print the file within my project but i can't!i use sendkeys to print the file but it doesn't work can anyone pls help me!!how i can send the information to activate print and then close the editor!!!
to open the edit.com and browse the file it's like that
r = shell("edit.com the path of my file)
now i've to print the file and close the editor????????????
for notepad i used sendkeys it works but here it doesn't
can anyone help me how can i print the file and close the edit.com!!pls
thx in advance
-
I haven't tried this, but try sending a the 'Print Screen' key.
[Highlight=VB]
Private Declare Sub keybd_event Lib "user32.dll" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Const VK_PRINT = &H2A
Const KEYEVENTF_KEYUP = &H2
Private Sub printScreen()
keybd_event VK_PRINT, 0, 0, 0 ' press key
keybd_event VK_PRINT, 0, KEYEVENTF_KEYUP, 0 ' release key
End Sub