|
Hi there !
I need to copy a string from a webpage, somewhere inside all of the text it has, but I need to automate it. and copy it to a file.
Is that possible to do using vbscript ?
Thanks in advance !
|
|
|
|
|
There's vbscript code to download a webpage here[^] and here[^]. As for extracting the string you want, you'll just have to use some of the various string functions to find what you want.
|
|
|
|
|
Hey thanks!
I need a solution to copy a selection of text (quite a simple string actually) and paste it into a file.
The solutions provided deal with a file as a whole.
[It could be done of course by copying the whole .html file and doing some string manipulations to take that data out, I guess right ?]
Simply put, what I am asking is if it is possible to emulate mouse on IE, so I can copy and paste from clipboard to file.
modified on Saturday, July 5, 2008 1:56 PM
|
|
|
|
|
Oh, sorry! I don't guess I read your original post right.
|
|
|
|
|
Don't get me wrong, your post did the trick, I am sorry if I am misunderstood !
You actually solved my problem,
What I was saying was if vbs can automate mouse hover, select and copy functions...
Sorry again....
|
|
|
|
|
You already have everything you need in a string. Why would you render it as a web page, make a selection in the rendered page, copy it to the clipboard, and then get it back into a string? Just get the part of the string that you need.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
i want to compare two image which is taken by Thumb scanner machine.......
Plz. tell me how..........
i can compare two static and same images but i am not enabled to compare thumb images of human.
Reply.
Hi...
|
|
|
|
|
This is a complex question, no forum reply is gong to answer it. You basically need to detect shapes and define rules by which you work out what 'equal' means ( i.e. the same sort of shapes, etc ).
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Dear Gents,
How to avoid pressing a same key continuously twice in vb.net.
Regards
Azeem
|
|
|
|
|
Do you mean auto repeat ? Not sure that you can, except that you can ignore key presses that are the same, but what if someone wants to type 'aardvark' ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Thanks for your immediate reply.
Actually I need to avoid pressing function keys twice especially F4 only in my vb.net application. Pls tell me ur suggestion
Regards
Azeem
|
|
|
|
|
You could set the KeyPreview property of the form to True, trap function key presses in the KeyDown event of the form, set a flag to indicate the last function key pressed, and then review the flag the next time KeyDown is triggered to see if that function key was pressed twice in a row. And then, as needed, suppress the key press if you don't want it pressed twice in a row. For example, something like the following in the form's KeyDown event might get you started...
If e.KeyValue = Keys.F4 Then
If mb_Key4Pressed Then
e.SuppressKeyPress = True
Else
mb_Key4Pressed = True
End If
Else
mb_Key4Pressed = False
End If
|
|
|
|
|
In my project i want to implement sound recording what we have in windows xp so i want consume that.
Give me suggestion how to implement recording sound in .net any dll is av liable?
help me out
Ashok Nalam
|
|
|
|
|
Please don't spam the whole site before bothering to search the articles. There's tons of info on the site already on this. DirectX is what you use.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Hi,
Have a treeview control and can change the selected node to a (system installed truetype) font like this
trvFonts.SelectedNode.NodeFont = New System.Drawing.Font("Times", ntNodeFontSize)
'FOLLOWING REQUIRED FOR BUG (LARGER TEXT IN NODE WILL CROP WITHOUT THIS)
trvFonts.SelectedNode.Text &= String.Empty
Is there any way (anyone know of a way) that i can use a postcript font (pfb/pfm) from a file (not installed), or even an installed postcript font to use in my treeview or any windows forms control?
Thanks for anyhelp with this
Regards
|
|
|
|
|
Maybe this discussion[^] will help. The link[^] in that article looks good, but it's not .Net.
|
|
|
|
|
Hi
I wanaa use AxShockwaveFlashObjects to show flash file in my project but it give error that:
<br />
Failed to import the ActiveX control. Please ensure it is properly registered<br />
Can anybody give any suggestion 4 this
Looking fwd 4 ur response
Thanks
Unless u don't give ur hundred percent whatever u r doning till there is no result of ur work...
|
|
|
|
|
Make sure you have registered the control with regsvr32, I guess.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Hii
I want to excel column format to time. and time format contains the Mili Seconds Also like
10:10:10:59
There is 10 Hrs 10 Min 10 Sec 59 Mili Seconds.
How i Set Apply this format.
Please suggest.
Thanx
~Khatri Mitesh
|
|
|
|
|
In my application I need to know the public IP Address of my machine which I will get after connecting to the internet. Is it possible to know using VB.Net code?
|
|
|
|
|
use System.Net.Dns class
try Googling.
Hope above link helps you
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Hi,
AFAIK you can't get the public IP address programmatically without the help of some web site.
Here is one for you: http://www.perceler.com/tools1.php[^]
You could use the HttpWebRequest class and GetResponse() method to access such page programmatically.
|
|
|
|
|
Hello every one...
I want to know the difference between
timer.enable=true & timer.start
timer.enable=false & timer.stop
I have two different timers on a form one fires at every 5 sec (timer1) and other every 20 sec (timer2)...
I want the timer2 to be pause when timer1 is fired and continue after the codes in timer1 execute are over
Timer1_Tick
(
'Pause tumer2
----
----
Some codes
'Continue timer2
)
how can i do that
Regards
Nishkarsh
|
|
|
|
|
Both are same thing
timer.start raising the Elapsed event by setting Enabled to True.
while timer.stop raising the Elapsed event by setting Enabled to False.
for more details see MSDN[^]
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Hai.I want to know how to handle printing when the text exceeds one page.
I am Using Draw String Method .
Single Page Printing is not a Problem.But when it exceeds a Page what is the best way to Display the Remaining text in the Next Page?
|
|
|
|