AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

can't sleep at all

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
zengjia



Joined: 03 Aug 2009
Posts: 3

PostPosted: Sun Oct 18, 2009 5:29 am    Post subject: can't sleep at all Reply with quote

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 ?
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Oct 18, 2009 5:38 am    Post subject: Reply with quote

looks fine, try changing that to tooltip to debug
Code:

IfWinExist, Microsoft Excel - new
WinActivate
tooltip, Enter
sleep, 5000
tooltip, Home

 
Back to top
zengjia



Joined: 03 Aug 2009
Posts: 3

PostPosted: Sun Oct 18, 2009 7:35 am    Post subject: Reply with quote

thank you
but
how can I chang this to tooltip? and to debug?
Back to top
View user's profile Send private message
HotKeyIt



Joined: 18 Jun 2008
Posts: 1994
Location: GERMANY

PostPosted: Sun Oct 18, 2009 8:13 am    Post subject: Reply with quote

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}

_________________
AutoHotFile - ToolTip(n,text,title,options) Wink
Back to top
View user's profile Send private message
zengjia



Joined: 03 Aug 2009
Posts: 3

PostPosted: Sun Oct 18, 2009 1:43 pm    Post subject: Reply with quote

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 Sad
Back to top
View user's profile Send private message
Eedis



Joined: 12 Jun 2009
Posts: 389

PostPosted: Sun Oct 18, 2009 8:57 pm    Post subject: Reply with quote

It's probably just a glitch in the Matrix.
_________________
Pylons Are Trapped Balls.
http://www.autohotkey.net/~Eedis/
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group