|
-
Sep 4th, 2002, 06:48 AM
#1
Thread Starter
New Member
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
-
Sep 4th, 2002, 07:09 AM
#2
Fanatic Member
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
THE TIME/WEATHER IS 
Don't know how to use APIs or have problem with them,
Download API-Guide & API-Viewer from http://www.allapi.net
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|