|
-
Jan 11th, 2005, 08:27 PM
#1
Thread Starter
Frenzied Member
Just Curious...
Is there a method to view the text that was displayed in a message box?
For example:
VB Code:
Private Sub Form_Load ()
Msgbox "This is a test",vbinformation,"Test"
'now how can i view "This is a test" ...or if the msgbox were different 'everytime... can i extract the value into a string?
End Sub
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Jan 11th, 2005, 08:41 PM
#2
Re: Just Curious...
You'd have to create system wide hook to monitor system's activities and this is not easy thing tio accomplish.
-
Jan 11th, 2005, 08:42 PM
#3
Hyperactive Member
Re: Just Curious...
In your own application or another?
To the world you may just be one person, but to this one person, you just might be the world.
-
Jan 11th, 2005, 08:43 PM
#4
Re: Just Curious...
M$ suggests Dim Message, Style, Title, Help, Ctxt, Response, Mystring
then
Response = Msgbox (Msg, Style, Title, Help, Ctxt)
that's about the only way to keep the info.
-
Jan 11th, 2005, 08:44 PM
#5
Re: Just Curious...
What's the point to monitor your own application ??? - You may simply write last message to some global var so it will always be available.
-
Jan 11th, 2005, 08:46 PM
#6
Hyperactive Member
Re: Just Curious...
What can i say, I'm just curious
To the world you may just be one person, but to this one person, you just might be the world.
-
Jan 11th, 2005, 09:01 PM
#7
Thread Starter
Frenzied Member
Re: Just Curious...
oh lol i was just wondering.
Was just thinking about how i could take certain actions based on what a msgbox said (without knowing before hand what the msgbox will say)
Like using Instr to find a keyword in the msgbox.. etc
Well, thx for the replies
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Jan 11th, 2005, 09:02 PM
#8
Thread Starter
Frenzied Member
Re: Just Curious...
oh and, in my own app of course
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Jan 11th, 2005, 09:06 PM
#9
Hyperactive Member
Re: Just Curious...
Use
On Error Goto ErrHandle:
ErrHandle:
Dim ErrMsg as String
ErrMsg = err.Number & " " & Err.Description
Last edited by johnweidauer; Jan 11th, 2005 at 09:06 PM.
Reason: forgot the or in Error
To the world you may just be one person, but to this one person, you just might be the world.
-
Jan 11th, 2005, 09:53 PM
#10
Thread Starter
Frenzied Member
Re: Just Curious...
 Originally Posted by johnweidauer
Use
On Error Goto ErrHandle:
ErrHandle:
Dim ErrMsg as String
ErrMsg = err.Number & " " & Err.Description
What does that have to do with anything in this thread?
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Jan 11th, 2005, 10:20 PM
#11
Re: Just Curious...
It is possible to get the text from a message box outside of your application. I
also write code in WinBatch which has a function to read any message box
text so it must be possible in VB.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 11th, 2005, 10:34 PM
#12
Re: Just Curious...
Rhetorically speaking (or philosophically if you will) - nothing is impossible - it's just a matter of "is it worth doing ?"
-
Jan 11th, 2005, 10:49 PM
#13
Thread Starter
Frenzied Member
Re: Just Curious...
Well, somethings are impossible with the materials & tools your given at least. I just thought there might be an EASY way that i didn't know about
No need to involve a windows hook to achieve a theory of which i can accomplish the goal using something alot simpler.
Shall i set this thread to resolved or anyone else want to add their input?
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
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
|