Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > VBA / Office Integration > Excel > SendKeys


Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2012, 02:16 PM
leandroct leandroct is offline
Newcomer
 
Join Date: Mar 2012
Posts: 1
Default SendKeys


Hi!
I`m using sendkeys to an application. The sent key do a command at application, and it take a time to process the command (from 1 to 50 seconds). I only can send the next keys after the application end its job. I thought the only solution is to use the use of CPU from the application, to send key only when it go to 0%.
To the sendkeys I have a string with the name of the window of the application. I think this code is what I need, but it`s not working. It dont use the default VBA and I`m not good with this strange structure. Do you can help me on using this program to my case? For example, we can use a notepad and send keys (CTRL F) to find something at a big txt file, waiting it to end the search to send the next keys..
Any kind of help is welcome.. Thanks a lot!
Reply With Quote
  #2  
Old 03-21-2012, 02:24 AM
TheRealTinTin's Avatar
TheRealTinTin TheRealTinTin is offline
Junior Contributor
 
Join Date: Nov 2008
Location: Glasgow, UK
Posts: 328
Default

Hi leandroct and welcome.

Before posting can you please read the rules found here - in particular, rule 15 which states that "Threads that have been inactive (no new posts) for one month or more should be considered archive-only and should be left alone (except by the thread starter). In some cases it may be acceptable to reopen a thread but the moderators have the final say. If your question is similar to another one add a link in your thread back to the older one and explain the relevance to yours." Necroposting is considered bad etiquette and most users will tend to ignore these posts as a result.

I suggest you create a new thread and link back to this one as the rules suggest. I would also point you in the direction of MSDN and WMI (Win32) structure and classes. A combination of these should help find the info you want.

One question would be though, why do you need to send keys to a text file? Could you not simply open the document within your program saving all this hastle?
__________________
Artificial Intelligence is no match for natural stupidity

Last edited by Flyguy; 03-21-2012 at 03:21 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->