Help converting v1 script regarding Excel to v2

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
maiqbal
Posts: 1
Joined: 17 Apr 2024, 15:38

Help converting v1 script regarding Excel to v2

Post by maiqbal » 17 Apr 2024, 15:41

Hi, I am just trying to convert the following code which was working fine in AHK version 1 to version2:

Code: Select all

^e::
Run, Excel
return

#X::
FormatTime, xx,, yyyMMdd
SendInput, %xx%
return

[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]

[Mod action: Split post from a very loosely related topic and added a subject specific to this post. Please create new topics for questions rather than adding to an existing thread that has little to do with your question.]

User avatar
Datapoint
Posts: 302
Joined: 18 Mar 2018, 17:06

Re: Help converting v1 script regarding Excel to v2

Post by Datapoint » 17 Apr 2024, 16:43

Here you go:

Code: Select all

^e::Run "Excel"

#x:: {
	xx := FormatTime("yyyMMdd")
	Send xx
}
Last edited by Datapoint on 17 Apr 2024, 22:22, edited 2 times in total.

User avatar
mikeyww
Posts: 27188
Joined: 09 Sep 2014, 18:38

Re: Help converting v1 script regarding Excel to v2

Post by mikeyww » 17 Apr 2024, 22:17

Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0
^e::Run 'EXCEL'
#x::Send FormatTime(, 'yyyMMdd')

Post Reply

Return to “Ask for Help (v2)”