Solved

Shouldn't 'sendkeys' be enough to stop inactivity?

Posted on 2006-10-19
6
246 Views
Last Modified: 2010-04-23
I have a scheduled task that kicks off when I'm "idle".  But I only want it to run at a certain time.  There's no way to accomplish what I want with the task, without having it run 'each' time I'm idle throughout the day.
So, I 'tried' to create a simple app that would use sendkeys to hit the insert key for me every few minutes.
Doesn't appear to be working though - any ideas why not?

Form_Load
  tmr.Start

TimerFired
  Sendkeys.SendWait("{INSERT}")
  Sendkeys.SendWait("{INSERT}")
End Sub

That's about all there is to it...(I didn't want to leave 'insert' off...that's why it's there twice)
0
Comment
Question by:sirbounty
6 Comments
 
LVL 13

Expert Comment

by:newyuppie
ID: 17767174
why dont you put a system time check, if its not what you want, exit the sub, otherwise, check if its idle and run the loop.

ny
0
 
LVL 10

Expert Comment

by:gangwisch
ID: 17767179
what you need to do is:
appactivate "internet explorer"
sendkeys.send("http://")
sendkeys.send("{enter}")
but i do think that
you should try doing
sendkeys.send("{INS}")

good luck
0
 
LVL 67

Author Comment

by:sirbounty
ID: 17767188
So, I can't sendkeys to my form? (since it's already "there")?
I didn't want to have to load IE, or any other app - I thought I could accomplish this within my program...
0
 
LVL 67

Author Comment

by:sirbounty
ID: 17817492
I can sendkeys to my form - I got this working using me.bringtofront
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 17849770
Closed, 500 points refunded.
DarthMod
Community Support Moderator
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Iteration Help (Asp.net VB) 5 24
Very Large data in MYSQL 7 73
DataGridView / get bound table name? 8 27
MYSQL responding very slow 3 24
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question