🤦

🤦


oneofmany
Posts: 1
Joined: 21 Sep 2025
@
22 Sep 2025, 10:11
Hello,

I'm trying to translate a script from V1 (1.1.37.2) to V2 (2.0.19.0).
I'd found this script long time ago (can't remember where) and works perfectly fine for every game, only modifying the first 2 lines between one game and another:
#Requires AutoHotkey v1.1.37.2
#IfWinActive Kingdom Come: Deliverance
h::

GetKeyState, state, w

if state = D
 Send, {w}  
else
 Send, {w down}

return
  
#Requires AutoHotkey v2.0
#SingleInstance

~s::
h:: {

    if GetKeyState(Key := "w") && !GetKeyState(Key, "p")
        Send "{" Key " up}"
    else if ThisHotkey != "~s"
        Send "{" Key " down}"
}
(yas-minor-mode 'toggle) (sgml-delete-tag 1) (yas-new-snippet nil) (mc/mark-more-like-this-extended) (sgml-delete-tag 1) (sgml-delete-tag 1) (sgml-delete-tag 1) (sgml-delete-tag 1) (sgml-electric-tag-pair-mode 'toggle) (sgml-delete-tag 1) (sgml-delete-tag 1) (sgml-delete-tag 1) (xah-select-text-in-quote) (mc/mark-more-like-this-extended) (sgml-skip-tag-backward 1) (write-file "~/.emacs.d/snippets/mhtml-mode/base" t) (message "Repeating command 7 transpose-lines") (find-file "~soul/Uploads/codings/ahk/highlighter.css" t) (find-file "~soul/Uploads/codings/ahk/light.css" t) (mc/mark-all-in-region (region-beginning) (region-end)) (mc/mark-all-in-region (region-beginning) (region-end)) (-remove-tags-any- "span") (-remove-tags-any- "span ") (strip-html) (-remove-tags-any- "span") (-remove-tags-any- "span") (load-file "~/.emacs.d/lisp/-remove-tags-any-.el") (load-file "~/.emacs.d/lisp/strip-html.el") (mc/mark-all-in-region (region-beginning) (region-end)) (mc/unmark-previous-like-this) (mc/unmark-previous-like-this) (mc/unmark-next-like-this) (load-file "~/.emacs.d/lisp/strip-script-tags-html.el") (insert-char 129318 1 t) (insert-char 129318 1 t) (sgml-electric-tag-pair-mode 'toggle) (sgml-electric-tag-pair-mode 'toggle) (mmm-ify-by-class 'html-css) (modus-themes-toggle) (modus-themes-toggle) (modus-themes-toggle) (insert-char 129318 1 t) ↣ "FACE PALM" (insert-char 129318 1 t) (sgml-electric-tag-pair-mode 'toggle) (sgml-electric-tag-pair-mode 'toggle) (mmm-ify-by-class 'html-css) (modus-themes-toggle) (modus-themes-toggle) (modus-themes-rotate '(modus-operandi modus-operandi-tinted modus-operandi-deuteranopia modus-operandi-tritanopia modus-vivendi modus-vivendi-tinted modus-vivendi-deuteranopia modus-vivendi-tritanopia)) (set-mark-command) (mmm-ify-region 'sgml-mode (region-beginning) (region-end)) (mmm-mode) (load-file "~/.emacs.d/lisp/sort-lines-by-length.el") (mc/mark-all-like-this) (read-only-mode 'toggle)