请求帮助

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: 请求帮助

Re: 请求帮助

by garry » 17 May 2020, 08:29

var GGman is empty , if empty : a_now
example with languageCode , US-en = L0x0409

Code: Select all

;- 请求帮助 
;- https://www.autohotkey.com/boards/viewtopic.php?f=27&t=75997

;- example with languageCode
;- https://www.autohotkey.com/docs/misc/Languages.htm
;- https://www.science.co.il/language/Locale-codes.php

run,notepad
return
esc::exitapp

#IfWinActive, ahk_exe notepad.exe
~$f12::
    {
        Enter::
            FormatTime,Japan,L0x0411,dddd MMMM yyyy-MM-dd
            SendInput, %Japan%`n
        Return
    }
#IfWinActive
return

Re: 请求帮助

by Yakshongas » 16 May 2020, 10:30

通过这种方式可以:

Code: Select all

Enter::
    FormatTime, Time, GGman, HH:mm
    SendInput, %time%
Return
但是,如果您希望它仅在特定的应用程序(例如记事本)中运行,则必须使用指令 #if

从而:

Code: Select all

#IfWinActive, Ahk_exe notepad.exe
    {
        Enter::
            FormatTime, Time, GGman, HH:mm
            SendInput, %time%
        Return
    }
#IfWinActive

请求帮助

by andypku » 16 May 2020, 00:59

我想在编辑文档的时候,每回车一次就输出一个系统时间hh:mm,这个利用autohotkey是否可以实现?

Top