Search found 37 matches

by mshafer1
24 May 2020, 16:04
Forum: Editors
Topic: AHK Gen.com - looking for beta testers for new features
Replies: 4
Views: 381

Re: AHK Gen.com - looking for beta testers for new features

Round 2: new features pushed.

Re-ordering entries now supported!
by mshafer1
24 May 2020, 15:57
Forum: Editors
Topic: AHK Gen.com - looking for beta testers for new features
Replies: 4
Views: 381

Re: AHK Gen.com - looking for beta testers for new features

@hasantr
Can you explain a little?
Yes, but it would help if you post (or message) specific questions.
Have you checked out the site? Was it clear how to use it? (If not, I'ld love to get on a video call with you and have you walk me through where you're getting stuck).
by mshafer1
15 May 2020, 19:22
Forum: Editors
Topic: AHK Gen.com - looking for beta testers for new features
Replies: 4
Views: 381

AHK Gen.com - looking for beta testers for new features

Hey all, I've been working on some new updates to ahkgen.com - while some of it includes a lot of new automated testing, due to the level of refactoring to enable this testing and new features in the near future I would like to really hammer these changes before pushing them to the server. So, would...
by mshafer1
07 May 2020, 08:44
Forum: Ask For Help
Topic: Disable the hotkey when no window is active Topic is solved
Replies: 19
Views: 544

Re: Disable the hotkey when no window is active Topic is solved

Unfotunately, from AHK's perspective there's never a case of "no active window" - however you can detect if the desktop is the "active window" by checking for "ahk_exe Explorer.exe ahk_class WorkerW" So, your script would change to be something like (untested): ^Backspace:: IfNotWinActive, ahk_exe E...
by mshafer1
07 Jan 2020, 19:56
Forum: Ask For Help
Topic: Need some help with a simply ahk
Replies: 1
Views: 209

Re: Need some help with a simply ahk

To right click, call `MouseClick` with `right` as an argument: ( MouseClick ) MouseClick, Right Or, Send , Send, {RButton} To move, use MouseMove : MouseMove, 10, -10,,R (the R makes it relative even if CoordMode isn't set). For looping till a key is pressed, checkout this previous thread: https://a...
by mshafer1
23 Dec 2019, 10:57
Forum: Gaming
Topic: I need a script that would send something from the clipboard Topic is solved
Replies: 2
Views: 379

Re: I need a script that would send something from the clipboard Topic is solved

Sending from the clipboard is fairly simple: Send, ^v ; type control v to use standard paste Send, %CLIPBOARD% ; type the contents of the clipboard out For making it wind up in the chat region, consider triggering this off of a hot string or key that you press/type when the cursor is in the window, ...
by mshafer1
17 Dec 2019, 22:20
Forum: Ask For Help
Topic: I need help improving an AHK.
Replies: 2
Views: 317

Re: I need help improving an AHK.

A) post in these questions under "Ask for Help" (as opposed to "Tutorials") B): > CTRL + I = loop ASDW till released Check out: https://autohotkey.com/board/topic/72012-solved-loop-while-pressed-only/ In theory, this should work (untested) ^i:: while GetKeyState("Ctrl","P") { Send, A Send, S Send, D...
by mshafer1
28 Mar 2019, 19:12
Forum: Scripts and Functions
Topic: Using AutoHotkey from Python
Replies: 11
Views: 7026

Re: Using AutoHotkey from Python

Awesome! I'd been putting off taking one of those and upgrading it to Python3 myself.
by mshafer1
24 Aug 2018, 06:25
Forum: Scripts and Functions
Topic: Cycle through active program-if not open, open program
Replies: 1
Views: 592

Re: Cycle through active program-if not open, open program

First: https://autohotkey.com/boards/viewtopic.php?f=6&t=34663 Also: (untested) https://www.ahkgen.com/?length=1&comment0=&func0=KEY&skeyValue0=F3&Code0=%0D%0A%09next+%3D+GetNextProgram%28%29%0D%0A%09get_exe_name+%3D+GetExe%28next%29%3B%0D%0A%09%3B+MsgBox%2C+Next+Program%3A+%25next%25%60nExe%3A+%25g...
by mshafer1
22 Jul 2018, 13:25
Forum: Ask For Help
Topic: Ctrl G + Spacebar = V
Replies: 2
Views: 662

Re: Ctrl G + Spacebar = V

I'm not sure if your asking for CTRL + G + Space = v, or CTRL + Space = v, but if it is the latter - then here is a sample of code that works. https://www.ahkgen.com/?length=1&comment0=CTRL+%2B+Space+%3D+v&func0=KEY&skey0%5B%5D=CTRL&skeyValue0=Space&input0=v&option0=Send If asking for CTRL + G + Spa...
by mshafer1
22 Jul 2018, 07:34
Forum: Scripts and Functions
Topic: Guidelines: sharing code, no pranks, etc.
Replies: 9
Views: 14829

Re: Guidelines: sharing code, no pranks, etc.

In order to share your script in the "Scripts and Functions" forums, it is necessary to share the source code of your script in some form. It is not enough to share compiled .exe files - though it is possible to extract the source from them. Obfuscating your Source Code using any sort of method is ...
by mshafer1
17 Jun 2018, 07:33
Forum: Ask For Help
Topic: Help on writing a specific script
Replies: 6
Views: 1299

Re: Help on writing a specific script

Because there is a hotkey defined, you don't need #persistent

Code: Select all

1::
    Send, d
    Sleep, 700
    MouseMove, 0,70,,R
    Click
    Sleep, 100
    Send, d
    Sleep, 700
    MouseMove, 0,-70,,R
    Click
    return
This works on my machine (with or without the sleep)
by mshafer1
16 Jun 2018, 21:24
Forum: Ask For Help
Topic: (Script) Set a delay
Replies: 22
Views: 3716

Re: (Script) Set a delay

Because AHK would get notified by the same Windows event (if using the mouse), AHK cannot make you click with a faster response than the mouse. If you were to grammatically decide when to click, you could do that on the order of machine time (much faster than a human ever will), but that is extremel...
by mshafer1
16 Jun 2018, 21:19
Forum: Ask For Help
Topic: Help on writing a specific script
Replies: 2
Views: 578

Re: Help on writing a specific script

If you use the scan code (https://autohotkey.com/docs/KeyList.htm#sc) you can specify keys more precisely (including ones that aren't included in the language by default). On my keyboard (and I suspect on yours) - numeric 1 (not the numpad 1) has a scan code of 002, so you can use this version inste...
by mshafer1
16 Jun 2018, 21:17
Forum: Ask For Help
Topic: How to detect a specific window and execute only if open
Replies: 2
Views: 691

Re: How to detect a specific window and execute only if open

Check this out: (untested - but should do exactly what you asked for) https://www.ahkgen.com/?length=1&comment0=focus+gimp&func0=KEY&skey0%5B%5D=CTRL&skey0%5B%5D=ALT&skeyValue0=g&Code0=%0D%0A++++IfWinExist%2C+ahk_exe+gimp.exe%0D%0A++++%7B%0D%0A++++++++WinActivate+%3B+uses+last+found+window+-+Gimp+in...
by mshafer1
16 Jun 2018, 21:11
Forum: Ask For Help
Topic: Help on writing a specific script
Replies: 6
Views: 1299

Re: Help on writing a specific script

(tested) - use this version If you use the scan code (https://autohotkey.com/docs/KeyList.htm#sc) you can specify keys more precisely (including ones that aren't included in the language by default). On my keyboard (and I suspect on yours) - numeric 1 (not the numpad 1) has a scan code of 002, so yo...
by mshafer1
16 Jun 2018, 20:52
Forum: Ask For Help
Topic: Help on writing a specific script
Replies: 6
Views: 1299

Re: Help on writing a specific script

This probably should be in the Ask For Help forum . . . That being said - try this script out https://www.ahkgen.com/?length=1&comment0=&func0=KEY&skeyValue0=1&Code0=%0D%0A++++Loop%2C+%3B+loop+forever%0D%0A++++++++Send%2C+d%0D%0A++++++++Sleep%2C+7000+%3B+7%2C000+ms+%3D+7+s%0D%0A++++++++%0D%0A+++++++...
by mshafer1
15 Jun 2018, 14:59
Forum: Ask For Help
Topic: Need a very simple 'script' but i'm dumb
Replies: 4
Views: 936

Re: Need a very simple 'script' but i'm dumb

That looks like this : sleep, 1000 (1000 is milliseconds ?) , i put the delay after the comma ? Yes - that will cause a 1s delay (so for a small delay, maybe consider 30 (if its not a Windows/program time you're allowing for), or 500 (if it is a window/program time you're allowing to catch up), or ...
by mshafer1
15 Jun 2018, 14:38
Forum: Ask For Help
Topic: Need a very simple 'script' but i'm dumb
Replies: 4
Views: 936

Re: Need a very simple 'script' but i'm dumb

That sounds like ~$a up::Send, D ~$d up::Send, A (testedA - seems to work asD asDkedA for) :) ahkgen link: https://www.ahkgen.com/?length=2&comment0=releasing+a+sends+D&func0=KEY&skeyValue0=~%24a+up&input0=D&option0=Send&comment1=releasing+d+sends+A&func1=KEY&skeyValue1=~%24d+up&input1=A&option1=Send

Go to advanced search