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!
Delay between keys
Re: Delay between keys
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?
Re: Delay between keys
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!!!!