Good Day!
I am new to scripting using Autohotkey. Basically what i want to do is to automate a task in Excel using one hotkey. I am using a laptop with no key to simulate the right mouse click so created a autohotkey script to remap CTRL+Delete to simulate the right mouse click.
Im stumped on what to do next, after the right click simulation i need to send some keys so that Excel will do some functions for me
E.g.
Press the hotkey i assigned so simulate right click
press s for paste special
press v for values
and then press enter
this is what the ahk looks like
^Ins::Send, {SHIFTDOWN}{F10}{SHIFTUP}
WinWait, ,
IfWinNotActive, , , WinActivate, ,
WinWaitActive, ,
Send, s
WinWait, Paste Special,
IfWinNotActive, Paste Special, , WinActivate, Paste Special,
WinWaitActive, Paste Special,
Send, v{ENTER}
id appreciate it if someone helps me. thanks..