AutoHotkey v2.0-a081-cad307c - SetKeyDelay doesn't work? Topic is solved

Discuss the future of the AutoHotkey language
im too lazy to login

AutoHotkey v2.0-a081-cad307c - SetKeyDelay doesn't work?  Topic is solved

17 Aug 2017, 09:08

Just try this code

Code: [Select all] [Download] GeSHi © Codebox Plus

WinActivate("Bez tytułu — Notatnik") ; change title of window to same as yours
SetKeyDelay(1000)
Send("SetKeyDelay test")


I'm not sure if this is also necessary, but this script just runs and automatically close, even if the UAC is disabled

Code: [Select all] [Download] GeSHi © Codebox Plus

WinActivate("Bez tytułu — Notatnik") ; same as above
SetKeyDelay(1000)
SendPlay("SetKeyDelay test")


What's going on?
just me
Posts: 4685
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: AutoHotkey v2.0-a081-cad307c - SetKeyDelay doesn't work?

17 Aug 2017, 10:06

v2-changes wrote:Default Settings
  • SendMode defaults to Input instead of Event.
Source
Remaining with AHK 1.1.25.02 until v2 will become beta.
_3D_
Posts: 135
Joined: 29 Jan 2014, 14:40

Re: AutoHotkey v2.0-a081-cad307c - SetKeyDelay doesn't work?

18 Aug 2017, 05:27

Code: [Select all] [Download] GeSHi © Codebox Plus

SendMode "Event" ; To take effect Event in quotes.
AHKv2.0 use the future now.

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 2 guests