AutoHotkey Community

It is currently May 26th, 2012, 10:06 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: can't sleep at all
PostPosted: October 18th, 2009, 6:29 am 
Offline

Joined: August 3rd, 2009, 9:10 am
Posts: 21
I use this in the microsoft EXCEL:
Code:
IfWinExist, Microsoft Excel - new
WinActivate
send, {enter}
sleep, 500
send, {home}


but the "sleep,500" does not work,

and when I modify "sleep,500" to "sleep,5000" or "sleep 50000" it still not work .

"sleep" between "ENTER" and "HOME" which always be ignored .

What's the problem ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 18th, 2009, 6:38 am 
looks fine, try changing that to tooltip to debug
Code:
IfWinExist, Microsoft Excel - new
WinActivate
tooltip, Enter
sleep, 5000
tooltip, Home

 


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 18th, 2009, 8:35 am 
Offline

Joined: August 3rd, 2009, 9:10 am
Posts: 21
thank you
but
how can I chang this to tooltip? and to debug?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 18th, 2009, 9:13 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Works fine for me, are you sure it does not sleep?
Possibly when you hit enter it does not jump into next line/cell?

Try:
Code:
IfWinExist, Microsoft Excel - new
WinActivate
send, {enter}{down}{right}
sleep, 500
send, {home}

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 18th, 2009, 2:43 pm 
Offline

Joined: August 3rd, 2009, 9:10 am
Posts: 21
HotKeyIt wrote:
Works fine for me, are you sure it does not sleep?
Possibly when you hit enter it does not jump into next line/cell?

Try:
Code:
IfWinExist, Microsoft Excel - new
WinActivate
send, {enter}{down}{right}
sleep, 500
send, {home}


it works.thank you!
but
I am sure my code does not sleep,and I don't know why :(


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 18th, 2009, 9:57 pm 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
It's probably just a glitch in the Matrix.

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: hyper_, JSLover, Leef_me, patgenn123 and 60 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