Search found 54 matches
- 26 Apr 2024, 15:25
- Forum: Ask for Help (v2)
- Topic: Cycling through an array of functions...
- Replies: 1
- Views: 162
Cycling through an array of functions...
Good evening, I'm curious what format would a hot key would take in order to change it's effect with three single presses of buttons. For example, the way flip phone's used to text. You would press the number 1 once to get 'a', two or three within a time limit to type 'b' or 'c' respectively before ...
- 26 Apr 2024, 11:42
- Forum: Ask for Help (v2)
- Topic: Stay in effect after release of a button. Topic is solved
- Replies: 2
- Views: 216
Re: Stay in effect after release of a button. Topic is solved
"Variables are local to functions by default. To define or change a global variable within a function, declare the variable as global within the function. Else does not apply to directives." Ah yes, I see that now. I apologize I'm not very code savvy. Looking in the search of the documentation, I co...
- 26 Apr 2024, 08:31
- Forum: Ask for Help (v2)
- Topic: Stay in effect after release of a button. Topic is solved
- Replies: 2
- Views: 216
Stay in effect after release of a button. Topic is solved
How do you press a hotkey and after it's release, allow the function to remain in effect? I've already tried a few different ways and nothing works. I've searched documentation and other websites and found no example to this specific problem. For example: Ins:: { toggle := !toggle KeyWait 'n' If A_P...
- 25 Apr 2024, 20:05
- Forum: Ask for Help (v2)
- Topic: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
- Replies: 16
- Views: 659
Re: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
(...didnt use the GetKeyState function...)Not specifically other than it was only explicitly needed with the mouse cursor movement. The rest achieves the needed outcome without GetKeyState.
- 25 Apr 2024, 19:52
- Forum: Ask for Help (v2)
- Topic: trouble with shifted function to expand limited keyset. Topic is solved
- Replies: 4
- Views: 362
Re: trouble with shifted function to expand limited keyset. Topic is solved
Is there a way to toggle instead of before where it was shifted? I have something like this, but instead of while Ins is held instead press once to switch back and fourth. Ideally a second tap would toggle to another function set. #Requires AutoHotkey v2.0 Ins:: { KeyWait 'm' If A_PriorKey = 'm' Sen...
- 25 Apr 2024, 19:38
- Forum: Ask for Help (v2)
- Topic: trouble with shifted function to expand limited keyset. Topic is solved
- Replies: 4
- Views: 362
Re: trouble with shifted function to expand limited keyset. Topic is solved
That's amazing, you're a genius!
- 25 Apr 2024, 18:53
- Forum: Ask for Help (v2)
- Topic: trouble with shifted function to expand limited keyset. Topic is solved
- Replies: 4
- Views: 362
trouble with shifted function to expand limited keyset. Topic is solved
My goal is that while I hold "shift" and "c"down (for example) so that when I press the "a" key the "m" key gets sent. Is this even possible?
Code: Select all
#Requires AutoHotkey v2.0
#HotIf WinActive("ahk_exe example.exe")
#c::
a:: {
Send "{m}"
}
- 23 Apr 2024, 18:01
- Forum: Ask for Help (v2)
- Topic: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
- Replies: 16
- Views: 659
Re: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
Thanks for your reply Mike, Incidentally, the roku/hisense tv remote was solely at fault for their crappy implementation of an ir remote. I bought another ir remote made by direct-tv (black a white, and shapely, I guess it's called a genie or something) and seems to work flawlessly. Here is the last...
- 22 Apr 2024, 22:15
- Forum: Ask for Help (v2)
- Topic: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
- Replies: 16
- Views: 659
Re: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
fair enough mike, please let me explain... "Instead of having a sequence of hotkeys that are all the same, combine the code into a single hotkey (function). As mentioned, just get one hotkey working, and remove the rest. After it works, add a new hotkey separately. Test iteratively." When you have b...
- 22 Apr 2024, 21:00
- Forum: Ask for Help (v2)
- Topic: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
- Replies: 16
- Views: 659
Re: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
If not for the duplicate hotkey error, ideally it would behave as intended and as follows. #Requires AutoHotkey v2.0 winTitle := 'ahk_exe HD-Player.exe' ; winTitle := 'ahk_exe Notepad.exe' #HotIf WinActive(winTitle) Up:: end:: { While GetKeyState('end', 'P') MouseMove 0, -10, 1, 'R' sleep 100 } Down...
- 22 Apr 2024, 20:55
- Forum: Ask for Help (v2)
- Topic: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
- Replies: 16
- Views: 659
Re: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
Here is an alternative display of the script but executes with-OUT error, as mentioned prior, undesirable due to unruly amount of button maps. #Requires AutoHotkey v2.0 winTitle := 'ahk_exe HD-Player.exe' ; winTitle := 'ahk_exe Notepad.exe' #HotIf WinActive(winTitle) Up:: del:: { While GetKeyState('...
- 22 Apr 2024, 20:47
- Forum: Ask for Help (v2)
- Topic: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
- Replies: 16
- Views: 659
Re: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
Alright, that progressed my script to a degree. I was wanting it to behave such that remapping would occur on the fly, because of the limited number of buttons on the ir remote. Here is what I have so far and the error it spits. #Requires AutoHotkey v2.0 winTitle := 'ahk_exe HD-Player.exe' ; winTitl...
- 22 Apr 2024, 18:09
- Forum: About This Community
- Topic: Issues with registering, Post your username here...
- Replies: 865
- Views: 2072332
Re: Issues with registering, Post your username here...
well whichever account that I have access to my email for. Anything ending in @xyzs.co is a catchall domain. I tried resetting my password, but since I use a catch all domain, i forgot which email I used. jeremy.b@xyzs.co or forums@xyzs.co should be assigned to zed6250jb. I'm okay keeping the accoun...
- 22 Apr 2024, 18:06
- Forum: Ask for Help (v2)
- Topic: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
- Replies: 16
- Views: 659
Re: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
I'm spoiled, used to quickly edit my post, post submit. Will have to refrain from clicking submit before doing a visual inspection. Thanks again.
- 22 Apr 2024, 17:53
- Forum: About This Community
- Topic: Issues with registering, Post your username here...
- Replies: 865
- Views: 2072332
Re: Issues with registering, Post your username here...
jeremybrown82 (not sure if the email on-file is still valid) and 6250zed iirc
- 22 Apr 2024, 17:50
- Forum: Forum Issues
- Topic: How do I edit a pending post
- Replies: 3
- Views: 135
Re: How do I edit a pending post
Yup, Had to abandon two old account usernames. jeremybrown82 and 6250zed or something like that iirc. Thanks anyway.
- 22 Apr 2024, 17:43
- Forum: Forum Issues
- Topic: How do I edit a pending post
- Replies: 3
- Views: 135
How do I edit a pending post
How do I edit a pending post?
- 22 Apr 2024, 17:41
- Forum: Ask for Help (v2)
- Topic: Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
- Replies: 16
- Views: 659
Error: Hotkeys/hotstrings are not allowed inside functions or classes. Topic is solved
Error: Hotkeys/hotstrings are not allowed inside functions or classes. How do I add this functionality in the proper way? Basically I want to bind left, up, right, and down arrows to modify the function of a 5th button. The reason is using the remote only one of the buttons allows itself to be held ...
- 22 Apr 2024, 12:24
- Forum: Ask for Help (v2)
- Topic: rebind error Topic is solved
- Replies: 7
- Views: 211
- 22 Apr 2024, 11:29
- Forum: Ask for Help (v2)
- Topic: rebind error Topic is solved
- Replies: 7
- Views: 211
Re: rebind error Topic is solved
Thanks for the input (nopunintended) mikey. I decieded to just bypass the windows mouse keys and tell ahk to do the action directly with favorable results. Not that it needs it's own repo, here it is, and the code it self. #Requires AutoHotkey v2.0 ;Python code snippet to simulate arrow key presses ...