|
-
Oct 11th, 2005, 12:36 AM
#1
Thread Starter
Lively Member
What do else do I have to do?
I have a function that (SendKeys "ESC") to my app. It works, however the if the main screen loses focus to a msgbox the function stops working. My question is, is there something that I'm doing wrong?
Thanks in advance.....
-
Oct 11th, 2005, 01:03 AM
#2
Hyperactive Member
Re: What do else do I have to do?
MsgBox:es are modal so to answer your question No, you cant.
You could create another form/process to sendkeys so that a msgbox will not halt it's instructions.
Signed, Rodik ([email protected])
Programmer,usesVB6ED
===========================
Copyright©RodikCo,2002.
Dont mind this signature ;] Its old
-
Oct 11th, 2005, 01:06 AM
#3
Re: What do else do I have to do?
Since its in your app then couldnt you change the focus to another control quite easily with .SetFocus?
Sendkeys are dependent upon the form/control having input focus.
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 
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
|