AutoHotkey Community

It is currently May 27th, 2012, 11:29 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: September 22nd, 2009, 4:27 pm 
Ok, I've got my scripts working great and have them schduled in Windows Task Scheduler. For some reason, when my scripts run from being awoken from Windows Sleep (not woken by me, but by Task Scheduler), they don't work. It's like the mouse does not work unless I actually wiggle my mouse physically.

I have told Task Scheduler to wake up from sleep to run these scripts and it does that. It just seems like my mouse does not work unless I touch it. I even tried moving the mouse in my script before clicking the buttons on my app.

Code:
MouseMove 500,500,75
Sleep, 1000


Any ideas on how to overcoem this?[/code]


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 22nd, 2009, 4:34 pm 
Offline

Joined: July 5th, 2007, 6:30 pm
Posts: 65
Location: www.newfreethinker.com
Try this?

SendEvent {Click 500, 500}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 22nd, 2009, 5:08 pm 
Rad777 wrote:
Try this?

SendEvent {Click 500, 500}

Thanks, but that didn't work. Now (not because of this code, I think) my pc is waking up, but not runnign the task. So frustrating.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 22nd, 2009, 6:03 pm 
I figured out the problem. I have my computer set to require log-in on wakeup. This is why my script is not working. When I turn off the log-in requirement, everything works.

Any idea, how to get AutoHotkey and/or Task Scheduler to work with my wakeup settings?

PS, I tried adjusting the Task Sheduler settings to run the task "whether user is logged on or not" and that did not fix it. It actually ran it in the background somewhere that I had to forcefully kill.


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group