Search found 2876 matches

by Exaskryz
01 Mar 2018, 20:05
Forum: Ask For Help
Topic: Environment detection and sending
Replies: 5
Views: 296

Re: Environment detection and sending

Try WinGet instead of ControlGet to get a window's Hwnd.
by Exaskryz
25 Feb 2018, 16:16
Forum: Ask For Help
Topic: How can I use SC or VK with Keywait?
Replies: 3
Views: 274

Re: How can I use SC or VK with Keywait?

I would expect that. The KeyWait is still timing out, but whenever you've tested it the ErrorLevel has been set to 1. To be clear, the code's intention is to execute Ctrl+Alt+Tab only when you press and release, all within 1 second, the Fn key. The Fn key is notorious for not being something AHK can...
by Exaskryz
25 Feb 2018, 12:55
Forum: Ask For Help
Topic: Autohotkey Key sequence Topic is solved
Replies: 1
Views: 137

Re: Autohotkey Key sequence Topic is solved

(Note: The first link is from the old forums, the second link is on these forums) http://www.autohotkey.com/board/topic/6 ... re-thread/ or https://autohotkey.com/boards/viewtopic.php?f=7&t=11952

Try those topics.
by Exaskryz
25 Feb 2018, 12:18
Forum: Ask For Help
Topic: How can I use SC or VK with Keywait?
Replies: 3
Views: 274

Re: How can I use SC or VK with Keywait?

Considering it's the Fn key, which doesn't usually play nicely with AHK, you may be out of luck. Check with using a different key value. For me, the ` key is vkC0sc029 ; you can try using a hotkey of ~SC029:: or whichever value matches some other key you want to test on. This'll make sure you're doi...
by Exaskryz
24 Feb 2018, 22:51
Forum: Ask For Help
Topic: PixelSearch Hang Up -- Resolved using Fast
Replies: 0
Views: 127

PixelSearch Hang Up -- Resolved using Fast

XButton2:: CoordMode, Mouse, Screen CoordMode, Pixel, Screen Click Sleep 100 PixelSearch, OutputX, OutputY, 104, 352, 330, 999, 0x097138,,RGB If ErrorLevel { MsgBox Ahhhh return } OutputX+=5 OutputY+=5 MouseClick Left, %OutputX%, %OutputY% return This code resulted in my script hanging and never pr...
by Exaskryz
23 Feb 2018, 19:22
Forum: Ask For Help
Topic: Issue with sending and receiving F13 - F24 Topic is solved
Replies: 2
Views: 719

Re: Issue with sending and receiving F13 - F24 Topic is solved

You may be able to get around these limitations by using SendLevel and/or # InputLevel . I'll do some testing to see if it is actually a problem using the #if directive, but it may not be. (But you are sure you're inside of Notepad++ when you press F12, right?) I had an initial suspicion that the #I...
by Exaskryz
22 Feb 2018, 16:03
Forum: Ask For Help
Topic: Hotkey for formulae with superscript
Replies: 2
Views: 246

Re: Hotkey for formulae with superscript

I only know of Superscript 1, 2, and 3 -- ¹, ², and ³. I don't know of them for 4-9; and technically not 0, although ° as 0 kind of works. I don't know that Notepad++ supports a superscript like Microsoft Word as a text editor does, or the superscript HTML tags for websites, but you would want to be...
by Exaskryz
21 Feb 2018, 17:46
Forum: Ask For Help
Topic: GUI Scroll Topic is solved
Replies: 4
Views: 404

Re: GUI Scroll Topic is solved

My scrolling was sourced from http://www.autohotkey.com/board/topic/26033-scrollable-gui-proof-of-concept/#entry168174 by Lexikos. There may be better ways nowadays. But it worked for me. These are snippets of code; you should be able to implement just with this. OnMessage(0x115, "OnScroll") ; WM_VS...
by Exaskryz
20 Feb 2018, 23:31
Forum: Ask For Help
Topic: Unbind a key?
Replies: 5
Views: 495

Re: Unbind a key?

Explain what you may be trying to do. LShift::Return would probably work just fine in a video game to prevent me from performing an action; I don't know of any non-video games that react to just a shift press. It also works to prevent capitalization of letters for me. The one other use case I can th...
by Exaskryz
20 Feb 2018, 11:21
Forum: Ask For Help
Topic: Need help with executing different code when modifier is released Topic is solved
Replies: 6
Views: 351

Re: Need help with executing different code when modifier is released Topic is solved

I think this would work:

Code: Select all

!Down::Send 1
~Alt up::Send 2
Now I've tested it.

The potential problem is that Alt will send 2 if you didn't even press Alt+Down. So you may use this untested code:

Code: Select all

!Down::Send 1
~Alt up::
If (A_PriorHotkey="!Down")
   Send 2
return
by Exaskryz
20 Feb 2018, 09:29
Forum: Ask For Help
Topic: Need help with executing different code when modifier is released Topic is solved
Replies: 6
Views: 351

Re: Need help with executing different code when modifier is released Topic is solved

Oh, Down as in the Down Arrow. I see.

The hotkey can be changed to !Down:: because ! is the Alt modifier.

Do you mean it should repeat sending 1 and repeat sending 2? I would change Send 2 into

Code: Select all

While GetKeyState("Down","P")
{
Send 2
Sleep 100
}
And it would end when you release Down.
by Exaskryz
19 Feb 2018, 15:23
Forum: Ask For Help
Topic: Need help with executing different code when modifier is released Topic is solved
Replies: 6
Views: 351

Re: Need help with executing different code when modifier is released Topic is solved

Using a modifier alone on this is a bit weird, but you can try this:

Code: Select all

LAlt:: ; change to RAlt if you want right, or Alt if you want to try either
While GetKeyState("LAlt","P")
{
Send 1
Sleep 100
}
Send 2
return
by Exaskryz
18 Feb 2018, 22:52
Forum: Ask For Help
Topic: Hold Key> Keypresses
Replies: 2
Views: 205

Re: Hold Key> Keypresses

You may want While GetKeyState("XButton2","P")
by Exaskryz
17 Feb 2018, 22:25
Forum: Ask For Help
Topic: Multiple ControlClicks Window PID's Topic is solved
Replies: 6
Views: 541

Re: Multiple ControlClicks Window PID's Topic is solved

You're not utilizing the ahk_pid, so it just targets the active window when multiple windows would otherwise match "ahk_class ahk_class Chrome_WidgetWin_1". First, ignore the timer. Get one thing working at a time. It is not good form to include a timer label inside of a loop, so avoid it if you can...
by Exaskryz
17 Feb 2018, 11:19
Forum: Ask For Help
Topic: Multiple ControlClicks Window PID's Topic is solved
Replies: 6
Views: 541

Re: Multiple ControlClicks Window PID's Topic is solved

I think it's going to be easiest to use F1 only for turning on and off the While loop. Use a second button, like F2, to add windows. You may even add F3 to remove the currently active window if it is inside the loop. (Loop the array and compare captured variable to each value in the array, if it's a...
by Exaskryz
16 Feb 2018, 17:18
Forum: Ask For Help
Topic: Multiple ControlClicks Window PID's Topic is solved
Replies: 6
Views: 541

Re: Multiple ControlClicks Window PID's Topic is solved

Sometimes with Chrome, and I'll assume all Chromium browsers, the ahk_class can change to "Chrome_WidgetWin_1". Also, not sure that ahk_class ahk_class should be repeated, only use ahk_class . What I would do is this for creating a list of windows to target: array:=[] ; we're going to store all our ...
by Exaskryz
15 Feb 2018, 21:58
Forum: Ask For Help
Topic: Creating Listings From Clipboard
Replies: 2
Views: 241

Re: Creating Listings From Clipboard

Note that your SEC, ROW, SEAT, Confirmation Number, Order Summary are all blank values here, because you didn't pass them as strings. RegExMatch() has an output parameter to capture the matching needle. You can then break it up by specifying a certain portion to be captured in a pseudo-array. (I'm g...
by Exaskryz
15 Feb 2018, 16:48
Forum: Ask For Help
Topic: How can I do this while loop in 1 line
Replies: 2
Views: 216

Re: How can I do this while loop in 1 line

I do this set up pos:=1 while (pos<=LengthLim) && (pos>0) ; it returns 0 when not found, not sure if you could use ErrorLevel here { pos:=regexmatch(haystack,needle) do stuff } This does assume that you will find a result each time. You could work around that with this logic actually: pos:=regexmatc...
by Exaskryz
15 Feb 2018, 09:48
Forum: Ask For Help
Topic: Excel COM Insert (and Delete) Methods
Replies: 4
Views: 669

Re: Excel COM Insert (and Delete) Methods

Thanks Black. I got as far as section 4 to verify methods would be formatted like functions. Didn't go beyond that. Thanks jeeswg, I figured it'd be some numerical value, but had no idea where to find it. If I follow the link on the Insert docs I found for the constants, I get this page with no numb...

Go to advanced search