In a multithreaded environment it's possible that your process might loose processor after the focus setting instruction, and if the new running process also uses the focus setting instruction you might loose the keystrokes you're going to send to the file input... The probability of this scenario happening is very small, although it exists.
It seems that the only option is to guarantee that your process doesn't get kicked out between the two most important instructions (focus and sendKeys), and i don't think that vb6 is powerful enough to handle this kind of stuff...
Seriously, i'm not questioning the article, i'm just alerting to a possibility that i was confronted some time ago to avoid people making the same mistakes that i did at the time.
Discussion on:
View:
Show:
If the only purpose is to upload a file inside the intranet the server, then why not use simple html file which has a vbscript which does the following job:
1. create msxml object.
2. enclose the required file in an xml document.
3. send the xml document to the server using http post.
Isnt this simpler than messing around with sendkeys etc?
1. create msxml object.
2. enclose the required file in an xml document.
3. send the xml document to the server using http post.
Isnt this simpler than messing around with sendkeys etc?
I am create the vb activex and htmal page but the value of filebrowse can't change
Can you give me the reason why this value not changed.
Thank you.
Kartik Patel
Can you give me the reason why this value not changed.
Thank you.
Kartik Patel
- Keyboard Shortcuts:
- Prev
- Next
- Toggle

































