Search found 18 matches

by Elequosoraptor
21 Dec 2022, 09:25
Forum: Bug Reports
Topic: [v2.0] Compiled Script Throws Error Topic is solved
Replies: 3
Views: 887

[v2.0] Compiled Script Throws Error Topic is solved

Hello. When I try to run a compiled script with '/' as a hotkey and the wildcard modifier, I get an error that there's an extra curly brace. Here is the code: */::{ SendInput("{Blind}¶") } The hotkey works perfectly when running the uncompiled version, and if I do not include the wildcard modifier i...
by Elequosoraptor
19 Dec 2022, 21:47
Forum: Ask for Help (v2)
Topic: OnSuspend?
Replies: 12
Views: 1034

Re: OnSuspend?

That's crazy! And works perfectly! Thanks for this.
by Elequosoraptor
19 Dec 2022, 19:50
Forum: Ask for Help (v2)
Topic: OnSuspend?
Replies: 12
Views: 1034

Re: OnSuspend?

Thanks for the help! That wrapper generally works, though it misses suspensions done from the tray icon and main window unfortunately. Probably the best solution for now though.
by Elequosoraptor
19 Dec 2022, 13:01
Forum: Ask for Help (v2)
Topic: OnSuspend?
Replies: 12
Views: 1034

Re: OnSuspend?

Oh yes, I know about that variable, sorry if I wasn't clear. I'm looking for something that will trigger when the script is suspended or unsuspended; while the variable lets you check you'd have to have something like a constant while loop running in the script monitoring when the variable changes, ...
by Elequosoraptor
19 Dec 2022, 04:15
Forum: Ask for Help (v2)
Topic: OnSuspend?
Replies: 12
Views: 1034

OnSuspend?

In v2 is there a onSuspend function similar to onExit? It seems this would be pretty useful generally, as well as to me for a script I'm working on, but I can't seem to find any official way of detecting when a script is suspended, or unsuspended.
by Elequosoraptor
06 Dec 2022, 11:45
Forum: Ask for Help (v2)
Topic: v2.0-rc.1 Baffling issue with hotkeys
Replies: 5
Views: 655

Re: v2.0-rc.1 Baffling issue with hotkeys

This morning I repeated my tests and the shift issue vanished...........before I got around to adding {Text} as you suggested. No idea why, I just can't seem to replicate the behavior I had observed and recorded previously. The addition of {Text} did not resolve anything else however, the hotkeys st...
by Elequosoraptor
05 Dec 2022, 23:53
Forum: Ask for Help (v2)
Topic: v2.0-rc.1 Baffling issue with hotkeys
Replies: 5
Views: 655

Re: v2.0-rc.1 Baffling issue with hotkeys

I have a US layout. I wanted to make a symbol layer with my own layout that would be more optimal than the key placement on the standard US qwerty board. That includes defining custom shift states, so a physical key can be used to type a special character and then another special character when shif...
by Elequosoraptor
05 Dec 2022, 19:47
Forum: Ask for Help (v2)
Topic: v2.0-rc.1 Baffling issue with hotkeys
Replies: 5
Views: 655

v2.0-rc.1 Baffling issue with hotkeys

Hello. I am trying to put together a symbol layer with hotkeys and #HotIf. In theory, you press a hotkey, change the value of a variable, and a new set of hotkeys for various symbols take effect. I am also using some code that creates alternate symbols on a long press, or key repeat on double tap+lo...
by Elequosoraptor
03 Dec 2022, 14:53
Forum: Ask for Help (v2)
Topic: RAlt Hotkey Issues v2.15-beta
Replies: 2
Views: 389

Re: RAlt Hotkey Issues v2.15-beta

The wildcard modifier was perfect, and I appreciate the refactoring! Looks to be working as expected now thank you.

I just switched to the updated version, I haven't been closely tracking the v2 development, which is why I was still on .15
by Elequosoraptor
02 Dec 2022, 06:46
Forum: Ask for Help (v2)
Topic: RAlt Hotkey Issues v2.15-beta
Replies: 2
Views: 389

RAlt Hotkey Issues v2.15-beta

Hello. I want to make RAlt function as Control, unless it is simply tapped without pressing any other keys, in which case I want it to run a custom function. So while holding it down, it acts as if Control is being held down, but on release if no other keys have been pressed it runs a custom functio...
by Elequosoraptor
24 Nov 2022, 20:17
Forum: Ask for Help (v1)
Topic: Home row modifiers
Replies: 7
Views: 2216

Re: Home row modifiers

You might not be working on this anymore, but I was experimenting with the same general idea. One idea I've been playing with, but haven't fully tested, is having each key send its character on a press as usual, but upon holding the key down for long enough it automatically backspaces and then holds...
by Elequosoraptor
12 Nov 2022, 13:15
Forum: Ask for Help (v2)
Topic: (ahk v2-beta.15) Assiging functions to objects behaves wierdly? Topic is solved
Replies: 5
Views: 497

Re: (ahk V2.15) Assiging functions to objects behaves wierdly? Topic is solved

That works great for my purposes. Shame it isn't supported, but I really appreciate the suggestion (and can't believe I missed it!)
by Elequosoraptor
12 Nov 2022, 13:11
Forum: Ask for Help (v2)
Topic: (ahk v2-beta.15) Assiging functions to objects behaves wierdly? Topic is solved
Replies: 5
Views: 497

Re: (ahk V2.15) Assiging functions to objects behaves wierdly? Topic is solved

iseahound wrote:
12 Nov 2022, 13:02
For now try:

Code: Select all

testObj := {
    key: "a",
    function: (x) => (
        SendInput("l")
    )
}
Shame it isn't supported, but your suggestion works! I'm glad I don't have to restructure my script entirely, thanks for the help.
by Elequosoraptor
12 Nov 2022, 11:21
Forum: Ask for Help (v2)
Topic: (ahk v2-beta.15) Assiging functions to objects behaves wierdly? Topic is solved
Replies: 5
Views: 497

(ahk v2-beta.15) Assiging functions to objects behaves wierdly? Topic is solved

So I was trying to assign a function to an object literal by just writing it out like so testObj := { key: "a", function: script(x) { SendInput("l") } } But it seems those inner curly braces throw an error, which is bizarre to me. After all this works fine: script(x) { SendInput("l") } testObj := { ...
by Elequosoraptor
11 Oct 2017, 17:12
Forum: Ask for Help (v1)
Topic: Short Script
Replies: 8
Views: 1323

Re: Short Script

Hells Bells I got it working. Thank you so much this has been super helpful. Really, this has plagued me literally constantly for the last 10 hours. Thank you.
by Elequosoraptor
11 Oct 2017, 16:35
Forum: Ask for Help (v1)
Topic: Short Script
Replies: 8
Views: 1323

Re: Short Script

Yes I've run into the problem with not having some delay. Currently, I can't seem to get the right size box. Is there a way to set up the if function, but with PixelGetColor? That way I can monitor the change of a specific pixel.
by Elequosoraptor
11 Oct 2017, 14:44
Forum: Ask for Help (v1)
Topic: Short Script
Replies: 8
Views: 1323

Re: Short Script

Hey Thank You. I couldn't figure out how to write comments on my orginal post and then it got sent through by accident and I was a guest. It's a mess. Loop { PixelSearch, 2, 7, 931, 633, 1053, 659, 0x3e3137, 3, Fast if !ErrorLevel { Send, {LButton} Sleep 800 Send, {LButton} } else Sleep 10 } Esc::Ex...
by Elequosoraptor
11 Oct 2017, 14:44
Forum: Ask for Help (v1)
Topic: Short Script
Replies: 8
Views: 1323

Re: Short Script

Hey Thank You. I couldn't figure out how to write comments on my orginal post and then it got sent through by accident and I was a guest. It's a mess. Loop { PixelSearch, 2, 7, 931, 633, 1053, 659, 0x3e3137, 3, Fast if !ErrorLevel { Send, {LButton} Sleep 800 Send, {LButton} } else Sleep 10 } Esc::Ex...

Go to advanced search