I had a hotkey under version 1.37 that was working perfectly. It would copy a cell in Excel that contained a customer ID and then it would open the customer in my company software by using the ID in the URL. Essentially it allowed me with one click from an Excel workbook to open the customer in my system. I can't make the code work in version 2 and I'm not sure what I'm doing wrong, any help would be greatly appreciated! Unfortunately downloading and using the old version of AFK is not an option for me because my company's anti-virus blocks it.
My old code that worked:
Code: Select all
^numpad5::
Clipboard:=""
SendInput, ^c
ClipWait, 1
Run, https://app.hubspot.com/contacts/1234567/contact/%clipboard%
return
The new code that is not working:
Code: Select all
^numpad5::
{
A_Clipboard:=""
SendInput "^c"
ClipWait 1
Run "https://app.hubspot.com/contacts/1234567/record/0-1/%A_Clipboard%"
}
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code!]