Capturing Text Content Of A Running Application
hey guys! i'm creating ang application for string processing purposes. I would like to know if it's possible to capture a text content of a currently running application (any text editor), for instance, Microsoft Word or Notepad.. or any other text editor. I would like to know if we can capture the current text content and put it in a textbox. please help. Thank you so much!! ^^
Edit by moderator: I've moved this to the Legacy forums from .NET based on your posting history. If you truly are looking to develop this in .NET, please PM one of our moderators and we'll move it for you.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Capturing Title Bar Text Of Running App
Have mercy! I did read the FAQ's and yes there is something there that is right along the line of this question but I am not a guru at API calls. The sample code errored on compile for me ("Invalid use of AddressOf operator") and I have no idea how to fix it.
Win2K Access/VB to SQL Server
I need to capture the title bar info from an app that is running. I know that the title bar text will start with "PKG" and will then have several additional characters followed by ".TIF - Imaging". Essentially it is the name of a file that has just been created in my temp folder by the app. I need that file name.
Any assistance would be greatly appreciated!
Capturing Onject Content
Hi,
As earlier posted in the Graphics part, I have an app that captures images from the MediaPlayer ActiveX control. Problem is that this app needs to be running as a topmost window to prevent capturing content of overlapping windows.
How can I capture the content of the control without concerning about being the topmost window, i.e. capture content when running minimized or as a tray icon?
Jeroen van den Bergh
Capturing Content Once File Is Loaded
Guyz,
2 to 3 weeks ago, i found a solid piece of code in this forum..
It captures the content of a html file once the content is loaded in the browser using vba..
If anyone happens to come across the code, pls paste the link in this thread..
thank you very much
Capturing Content Of A Bound Control??
I have a textbox "txtBox1"whose datasource is Data1, and it's linked to field, "FirstName."
I have a seconed "txtBox2" who is Bound the same way but linked to field "LastName"
Last but not least a third textbox "txtBox3" not bound at all.
How do I allow this:
txtBox3.Text = txtBox1.text & " " & txtBox2.text
A bound textbox dosen't seem to have an accessable .Text property???
THANX.
I really appreciate all the help that all of you have given me in the past, and those yet to come.
Running Application And Setting Text Boxes [*RESOLVED*]
I have a program called Internl_Cracked.exe and it is on my desktop, i want to run this on command1_click, i tried doing it with a shell but i did it wrong can anyone help? I also have a couple more questions, there are four text boxes in the aplication and i want to be able to set them from my application, how do i find their names and how do i send the info to them? ( im pretty sure i can send the info if i have the names of them). and there is a button on thje program that i want to click from my application. an help is greatly appreciated!
Capturing Running Programs In A Listbox
I am using This to currently get the running applications and display them in a listbox. The problem, is that it doesnt display the programs running in the system tray, I guess only the programs that show up on the taskbar. So it would be a great help if somebody could tell me how to get ALL of the currently running applications, and display them in a listbox as I am currently doing.
Capturing DOS Output From Console While Program Is Running
Okay, I've been searching around for ages, but can't find an answer.
I want to be able to capture DOS output from a console program, whilst it is running. All the examples I've seen have been capturing the output AFTER the program has finished executing. Does anyone know how to capture the console output whilst the console program is still executing?
Also, if possible, I want to have my own console window which can display the output of the console program. I know that if I can capture the output, I can easily send it back, however, I think this will cause all the cursor positions to be lost (eg the console program will be outputing a progress indicator).
Anyways, thanks in advance for any ideas!
Could Two Applications Running Share Content ?
Hello all,
Simple question here.
Is it possible to fill or copy the content of a control (let's say a treeview) from one VB EXE running application to another running VB EXE application ?
In fact I have two apps that must share the same content : the first one will calculate the result and it must be reused by the second application. I have already a solution using a temporary file (or clipboard) but could we bypass this ?
Thanks.
DOS Application Capturing
There's a DOS app that I want to control using vb6, i've looked into sending commands to the app. Using API functions, like opening the process w/e. But it doesn't work. The application is on going, it needs to stay opened for it to work.
However, I don't actually need to know the return value, I just want to send some commands to the program.
I've tried shelling, send keys, piping and that's all I could find. If you know how I could do this please post.
Capturing An Application.
Hi, I posted this a little while ago and I can't seem to find it again. I have a .exe that I want to 'capture' in my form. So, my form basically players host to this other application. I hope that makes sense. When I run my program, this program is loaded up inside of it.
Hope you understand me,
Syrillia
Capturing The Status Of An Another Application
Hi,
I want a help from you all (...as usual !!!)
My application is calling an another application by shell command. That application takes few seconds and check the availability of the remote server connection and promting a messagebox (Prompting the status of the connection ;success or Failure)
How can I capture that status (Messgebox) ? Is it possible in VB 6 ?
Pls help me
Capturing Control Variables On Another Application.
Hi... I'm trying to trigger an event when i receive or send a call from skype along with google talk,aim,yahoo,etc... the way i'm trying to go about it is to capture the variable of a label in each of those apps that says incomming call or outgoing call.... any ideas on how to accomplish that..? or perhaps another method? Thanks in advance...
Capturing Keystrokes Outside Application...* RESOLVED *
Here's what I am struggling with... I have an application (VB6 and SQL Server2000). One of the screens allows the user to enter production rejects and other such data as the day goes on. The bad part is this: if I have a power issue or even something as simple as a runtime error, the app goes away and they lose their input. Currently, we are runing parallel with the "paper" system, so they can, with a modicum of grumbling, re-enter the data. However, in another week the paper will be gone.
I am trying to come up with a semi elegant way to capture their input so they won't lose it. However, I'm not sure I want to do a db update everytime they enter data, but I can if I have to. I had considered a "capture data" button and a "retrieve captured data" button.
I had considered copying the data to the clipboard but that just doesn't feel right for some reason.
Any thoughts?
Capturing Image From A Camera To VB Application
Hi guys,
How can I achieve having a command button captioned "Caputure" that will be capable of snapping directly into my VB application and as well saving file (may be in an access database)
thanks.
okoban
Background Process And Capturing Application Opening
Hello,
How to capture an "application opening" (e.g. Internet Explorer opening) event by a VB application? Something that anti-virus applications do - they keep running in the background, capture a file open event and scan them.
Thanks for your time,
Manish
Subscript Out Of Range While Running Exe When Onother Application Is Running.
Hi all...
Application is build on VB6,Crystal reports8.5,Visdata(MS Access)
My application has been implemented in a system where another one is installed.
The problem: When my application is started after the other one had started.. while generating reports from my application..its giving an error "RTE 9 Subscript out of range"
This wprks fine if the other application is not running.
In another module of my application.. in the same situation another error is coming "Invalid procedure call"
Can anybody give a solution..
regards
Sabu.
Application Isnt Running When Screensaver Running
Hi:
I run my Visual Basic Application on the server machine to monitor the SQLServer Database on other machine. But when my server machine is on inactive mode (such as screensaver, engery saver is start) then my application will stop monitor the SQLServer database.
So what wrong with it?
Thank you so much for your help
Mike
Copying The Web Browser Content To Word Application
Hi,
I want to copy the web Browser Content to a Word Application. My Web-Browser in VB application at run-time contains an image that I have populated from a web site. Now How can I send that image to a new Word Application? I also want to open a new Word Applcation through VB by making an object. Can Somebody help?
Regards,
Yash
Creating Vb Application To Generate A Web Page W/ Content Management
hi good day I know that theres a lot of here that are very much experience in wrinting code in Vb. I want to ask if creating an application to generate a web page with conntent management would be possible in vb.
The project goes like this...
I want to create a vb application in a form of wizard to generate a webpage with content management. This application would help those non web developer to develop thier own site without enough knowledge in web programming. The output webpage would also enable the user to change the background, the content and even the design is it possible???
please give me some idea on how to do this....
TextBox.text Content Retreival Of A Portion Of Text
Hi all,
I am stuck at a place where i have a text of 9 char length.
I need to retrieve the middle 3 characters....
eg:-
123456789
i can retrieve the first 3 characters(123) using the
Code:left("123456789",3)command
and retrieve the last 3 using the
Code:right("123456789",3)command
but how do i get the middle 3 characters(i.e. 456) extracted??
here is what i tried.
Code:str1 = txtBackground.Text
'store contents into a variant variable
str1 = Replace(str1, Left(str1, 3), "")
'replace the first 3 chars with ""
str1 = Replace(str1, Right(str1, 3), "")
'replace the last 3 chars with ""
finalstr = str1
'the final string in above example(456)
but, result of above operation is ""
any help shall be appreciated...
Please help me fast.
Thanks in Advance.
P.S.: I DONT WANT TO USE THE MID FUNCTION
------------------------------------------------------------------------------------------------
www.Tech-Arena.com/forums
The Indian Perspective Of Technology.
Edited by - Crazycoder on 9/19/2004 3:14:39 AM
Running A VB Application From MS Office Application Menu
Is there a way of adding a custom button to the main menu of a MS Office product (eg Outlook, Word etc) which when pressed will activate my VB6 application?
I have read about creating an app as a COM add-in but was hoping there is a simple way.
Thanks
Mike
When you call out for help in the darkness, and you hear a voice in return, you're probably just talking to yourself again!
Running As Application Vs. Running As A Service
How do I tell an existing application to run as a service over there on the taskbar next to the system time? Would I be introducing any limitations by converting a program from running as a program to a service? Thank you.
Help With Capturing Text
need help with summut i need to do fast.
I need to capture all of what is typed in whole, say if i was typing in notepad then it would capture all the text thats being tpyed in
Capturing Text From Another Window
Hi,
I'm trying to figure out how to capture text from another window, and save it in a string.
The point of the porgram I'm making is to, perhaps, search a webpage for specified text, and take action based on it.
Thanks,
Ghandi
Capturing 'return' Key Event In Text Box
I am trying to capture a change event in my text box only if the user hits the 'return' key after entering some text in my text box. Anyone know how to only capture that key?
Small Question About Capturing Text
I'm kinda new with programing in VB in 6.0 i'm more use to 3.0. Really haven't programed in about 6 years either just started again and having a pretty good time. I'm having a big problem though with capturing some text on a window in IRC. On the Get window specificly, the Rate of download, Time life, and amount received, they don't show up as being a class with my spy. Now i'm pretty sure i had this problem before with 3.0 and i was able to get around it, but i can't seem to do it now. If anyone can maybee tos me a few hints on where to go with this would be awesome. Thanks.
Capturing Text In Active Window?
Hi,
I want to add a feature in my Crypto Program similar to what
PGP and GNUPG.
My application starts as an icon in the system tray. Now if a user
has typed a message on Notepad and wants to encrypt it, I want that
as he selects the "Current Window" option from my Tray Icon, the
message typed in the Notepad window (opened on desktop) should
get selected and copied to the clipboard.
And similarly, when my application has encrypted the clipboard data,
I want to send it back to the Notepad Window.
Any Idea?
Capturing Text From Active Window
i m using an mdi form with instances of another form created as
i m making a word editor.....my app creates instances of a form(containing a rich text box) as new documents.
i need to pick up the text of the richtextbox in the current activewindow and place it in a variable.
how is it possible?
thnx.
Capturing Active Window Text.
Hi,
I want to add a feature in my Crypto Program similar to what
PGP and GNUPG.
My application starts as an icon in the system tray. Now if a user
has typed a message on Notepad and wants to encrypt it, I want that
as he selects the "Current Window" option from my Tray Icon, the
message typed in the Notepad window (opened on desktop) should
get selected and copied to the clipboard.
And similarly, when my application has encrypted the clipboard data,
I want to send it back to the Notepad Window.
Any Idea?
---------------------------------
Securing a computer system has traditionally been a battle of wits: the penetrator tries to find the holes, and the designer tries to close them. � M.Gosser
Capturing Text In Command Window
hi
I execute a dos-based program from my visual basic app. that sends its output to the commandline... is there anyway I can get my visual basic app to capture the output from the dos program ?
thank you
Capturing Forms Text Box Values
Hi,
I have 2 forms namely form1 and form2. In the command click event of form1 i am showing form2 as vbmodal. I have placed 3 text boxes in form2. While close form2 , I want the 3 textbox values to be displayed in form1 . Is it possible
Capturing Text Of Any Desktop Window (like PGP)
Hi,
I want to add a feature in my Crypto Program similar to what
PGP and GNUPG.
My application starts as an icon in the system tray. Now if a user
has typed a message on Notepad and wants to encrypt it, I want that
as he selects the "Current Window" option from my Tray Icon, the
message typed in the Notepad window (opened on desktop) should
get selected and copied to the clipboard.
And similarly, when my application has encrypted the clipboard data,
I want to send it back to the Notepad Window.
Any Idea?
Textbox Capturing Listbox Text Scenario
Bad title description probably...
I have two listboxes and one text box,basically whatever item is selected in listbox1 ,the listindex of listbox2 matches the item of listbox1...
example:
listbox1 first item is orange,listbox2 first item is apple,so if listbox1 item is selected then apple is automatically selected on listbox2...simple enough so far,but i want the textbox to capture the text of listbox2 and store it in the textboxes text property...
problem is the textbox only stores the second item of listbox2 and not the first item..now i realize from previous posts on this forum that the listbox starts with 0 ,and ends with -1
but im having problems coding an IF statement on the listbox1 click event :
Code:
Private Sub lstfruits_Click()
If lstbox1.ListIndex Then
lstbox2.ListIndex = lstbox1.listindex
txtstoredfruit.Text = lstbox2.Text
End If
End Sub
so my question is,how would I fit the 0 and -1 into this IF statement?.
edit*** nevermind i figured it out ..sorry
Capturing Text From Window Displayed On Screen
Using Windows 95/98/2000.
A program returns text and data to a window displayed on the screen. The data cannot be saved to a file.
HOW do I capture the data, maybe to a variable, which then allows me to use the data, possibly inserting it into Excel for further analysis. The Clipboard doesn't really help me, I've already tried that.
Ignore the Excel part for the moment, capturing the data is my main problem. I've tried reading VBScript, ASP, VB... books, but nothing there to help me.
Is this a temporary memory access problem ? i.e. accessing data from the windows temp memory place...
Any help/advice gratefully received. Thanks.
Capturing Text Data On The The Monitor Screen Using VB6
I wonder if it is possible to capture text data from another application that displays the text data on the monitor screen. It is a window application but when it is running the display occupies the whole monitor screen like DOS with black background and the text information are on the specific spot on the screen of the minitor. Is there a way wherein writing another application in VB6 to capture those text information on the monitor screen displayed by the other application? If there is How? I have seen an application capturing the text information but I don't know how it was done.
Thank you very much forlooking into it,
blim85
Deleting Content Of Text Box
When I delete the content of text box in a form and update the recordset... I get the next error: Multiple step operation generated errors.
However if I don't delete that content... then, the next code works perfectly.
Private Sub Command_Click()
DE.rscmdGrupos.CancelUpdate
DE.rscmdGrupos.Fields("Fechafin") = Null
DE.rscmdGrupos.Update
If Not (DEGesact.rscmdGrupos.BOF And DEGesact.rscmdGrupos.EOF) Then
DEGesact.rscmdGrupos.MoveFirst
End If
End Sub
PD.- I work all the time with Data Environment attached SQL-Server
Please, help me. Thanks
How To Scroll Text Box Content?
I WAS WONDERING HOW TO SCROLL THE TEXTBOX CONTENT WITH UP SIDE DOWN?
I HAVE ALREADY SET THE TEXTBOX PROPERTY TO MULTILINE.
THEN WHAT ELSE I NEED TO DO?
I HAVE TRY OUT USING THIS:
TEXT1.SCROLLBAR=2
BUT NOTHING HAPPEN BUT ERROR MESSAGE POP UP~
ANYBODY CAN GIVE ME A CLUE,WHAT IS THE CODING FOR SCROLLING THE TEXT CONTENT UP AND DOWN...??
Text Box Content Format
Is there a way to have the data in a text box formatted in Excel? I am pulling data from cells on a worksheet with a specific format (i.e. telephone number). But when it appears in the text box in my custom form it drops all formating. So if I update the data in the userform and try to apply the changes to the worksheet it over writes the original formatting so it's a real pain.
I need to find a way to force the Form's Text Box to alter the format of the data within it.
Any Suggestions?
Thanks,
Adam
Get Text Content Of Any Window
hi
ive searched the net and the forum for the answer, but i've found nothing,
but getting text from a window of a specific class (witch i allready know how to do).
i'm writing a screen-reader, and i need to be able to get the text content of any window the mouse pointer is over.
for ex. if a mouse is over a "document part" of the MS Word application, it gets the content of the document.
i could also live with the option of selecting the text - u guess that would be easier to do. besides ive done something simmilar in the past.
i was using GetAsyncState (or something like that) to get last pressed key (this includes mouse buttons). ive checked if the mouse was pressed, and released (with no in betwen events), and if so, i was sending "CTRL+C" and getting the selected text from the clipboard, but that is what i would like to avoid - the clipboard.
so if anyone has an idea how to achive option one or option two (same as described, but without clipboard) please share with me.
thanks in advice.
Printing Content Of Text Box
I would like to print contest of text box , but when I print it with printer object it is all in one line. I what that it looks same on paper as in text box on screen.
Thanks !
|