Delay between keys

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
AutoHaleigh

Delay between keys

16 Oct 2018, 14:32

I am trying to write a code for powerpoint to switch directly to a slide with the click of one button. The command for Powerpoint is the number of the slide and the enter key. The programs keep giving me errors. my code so far is

1::
send, 1 {enter}
return

my best guess of what is going wrong is that is is no delay between the two commands.
How do i fix my code
thanks!
eelrod
Posts: 65
Joined: 10 Apr 2018, 11:17

Re: Delay between keys

17 Oct 2018, 07:55

It appears that there may be two issues. The first is that the hotkey is calling itself since the hotkey is "1" and it is sending a "1". The second (possible) issue is that there is a space between "1" and "{enter}"; this will really send a space, so you must be careful unless, of course, that is what you intended. So, to correct the issues, put a dollar-sign in front of your hotkey $1:: and remove the space between the "1" and "{enter}". Does that work for you?
AutoHaleigh

Re: Delay between keys

17 Oct 2018, 13:53

Thank you SO much!!! I was trying to figure what was wrong for weeks for an EAST project! Now I know where to go in case of HotKeys problems! THANKYOU!!!! :D :D :D :D :D :D :D :D :D :D :D :D :D :D :D

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: peter_ahk, septrinus and 315 guests