| View previous topic :: View next topic |
| Author |
Message |
zengjia
Joined: 03 Aug 2009 Posts: 3
|
Posted: Sun Oct 18, 2009 5:29 am Post subject: can't sleep at all |
|
|
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 |
|
 |
Guest
|
Posted: Sun Oct 18, 2009 5:38 am Post subject: |
|
|
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
|
Posted: Sun Oct 18, 2009 7:35 am Post subject: |
|
|
thank you
but
how can I chang this to tooltip? and to debug? |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 1994 Location: GERMANY
|
Posted: Sun Oct 18, 2009 8:13 am Post subject: |
|
|
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) |
|
| Back to top |
|
 |
zengjia
Joined: 03 Aug 2009 Posts: 3
|
Posted: Sun Oct 18, 2009 1:43 pm Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
Eedis
Joined: 12 Jun 2009 Posts: 389
|
Posted: Sun Oct 18, 2009 8:57 pm Post subject: |
|
|
It's probably just a glitch in the Matrix. _________________ Pylons Are Trapped Balls.
http://www.autohotkey.net/~Eedis/
 |
|
| Back to top |
|
 |
|