Search found 4 matches

by Pscyking
07 Mar 2021, 17:39
Forum: Gaming
Topic: 'Send' Commands Do Not Work At All in 'Total War: Warhammer II'
Replies: 0
Views: 39

'Send' Commands Do Not Work At All in 'Total War: Warhammer II'

There are a couple of other topics that touch on this, but none quite match my predicament. Warhammer seems to be ignoring almost everything I throw at it. I want to have WASD act like arrow keys while Alt is pressed; I've just used {W}/{Up} in my examples for brevity. !w::Send("{Up}") ; Nothing hap...
by Pscyking
08 Oct 2020, 21:43
Forum: AutoHotkey v2 Help
Topic: Force Conversion of String to Integer Topic is solved
Replies: 1
Views: 253

Force Conversion of String to Integer Topic is solved

What is the preferred method to explicitly convert a string to an integer? I have a large predefined Map<int → string> called Lookup . I receive an Input string which contains a valid integer, but it sometimes includes leading zeroes. E.g. AHK looks for Lookup["01"] instead of Lookup[1] . I am curre...
by Pscyking
25 Sep 2020, 17:29
Forum: AutoHotkey v2 Help
Topic: How to check if a variable is a string? Topic is solved
Replies: 3
Views: 408

How to check if a variable is a string? Topic is solved

Considering that I can't find any other up-to-date threads asking this question, I'm sure I must be missing something incredibly trivial, but is there a simple way to check whether a variable is a string? I could use the expression (!IsNumber(Var) && !IsObject(Var)) , but (a) I am not certain that N...
by Pscyking
25 Sep 2020, 10:15
Forum: AutoHotkey v2 Help
Topic: Is there an Object.HasKey() function in v2? Topic is solved
Replies: 1
Views: 261

Is there an Object.HasKey() function in v2? Topic is solved

I can't find the HasKey() function in the v2 documentation, even though it is mentioned on the Beginner Tutorial page (Which I unfortunately can't link with this being my first post). Was this a v1 function that was removed in v2? If so, what is the v2 equivalent for checking whether an object has a...

Go to advanced search