Search found 2876 matches

by Exaskryz
07 Feb 2018, 20:18
Forum: Ask For Help
Topic: Getting a script to stay off. On a toggle.
Replies: 3
Views: 474

Re: Getting a script to stay off. On a toggle.

F12::Suspend should work for you; not sure why the complex scripts requesting you work off of using a second script? This would disable all hotkeys in your script. If you need to be selectively disabling this hotkey, it can be done by using #If and custom variables. See toggle examples in (Note: Th...
by Exaskryz
07 Feb 2018, 15:18
Forum: Ask For Help
Topic: PixelSearch saying it found the right color even though it's not there
Replies: 2
Views: 294

Re: PixelSearch saying it found the right color even though it's not there

Not sure what part you're having problems with, but you're lacking brackets around if !ErrorLevel, MsgBox, Color not found! break else tooltip, color currently found Sleep 500 tooltip Brackets should group your MsgBox/break and the tooltip/sleep/tooltip. Otherwise, it always breaks. But also, you're...
by Exaskryz
05 Feb 2018, 15:16
Forum: Bug Reports
Topic: Mouseclick command doesn't check if mouse is already pressed when activating
Replies: 10
Views: 1493

Re: Mouseclick command doesn't check if mouse is already pressed when activating

I may not be understanding properly, but it appears it is your code that you designed to have a small chance of a drag. Just don't hold your mouse down when your code executes, and it should be fine. When I run a Click, 500, 500 command while holding down the mouse, it drag-highlights 100% of the ti...
by Exaskryz
04 Feb 2018, 17:02
Forum: Gaming
Topic: how to use shift+key in World of Warcraft?
Replies: 5
Views: 644

Re: how to use shift+key in World of Warcraft?

You are close.

1) As alluded to in the previous reply, use #IfWinActive to control a hotkey.

2) Next, GetKeyState() works on one key at a time. You can use If not (GetKeyState("Shift","P") and GetKeyState("4","P"))
by Exaskryz
04 Feb 2018, 13:20
Forum: Ask For Help
Topic: Loading a second app
Replies: 9
Views: 622

Re: Loading a second app

Does ahk_Exe work like that? I would have expected you'd need to just call it ahk_exe Cubase9.5.exe . What does Window Spy , which can be accessed by right-clicking the tray icon (by the system clock) of a running script, say the ahk_exe title would be on these programs? I skimmed over the last seve...
by Exaskryz
04 Feb 2018, 10:16
Forum: Forum Issues
Topic: Forum really really slow...
Replies: 67
Views: 21395

Re: Forum really really slow...

As of 15:14 GMT on Sunday, Feb 4th it seems that it is working faster. The initial first topic loaded (this one) was snappier than it was for the last week. And then all other topic loads after have been really quick. Working out of midwest USA.
by Exaskryz
03 Feb 2018, 10:54
Forum: Ask For Help
Topic: [Q] assignment and value
Replies: 4
Views: 538

Re: [Q] assignment and value

In regards to OP's code appearing to "work" and make the If statement return True, this is because everything after the % is its own variable. Essentially, if any of ProgramKey["cmd"] is alnum hold a true value, the whole thing returns true; kind of like using OR operators. But what is really going ...
by Exaskryz
02 Feb 2018, 19:49
Forum: Ask For Help
Topic: If,then,else condition
Replies: 2
Views: 189

Re: If,then,else condition

You'll need COM to establish the XXX and YYY (Excel guides/references for AHK have been published, you can search for those in Tutorials section), and this looks like VBA. But something to this effect would work in AHK: If (@>1) ; if @ is allowed as a variable name, never tried it, guess it could be...
by Exaskryz
02 Feb 2018, 10:26
Forum: Ask For Help
Topic: StringReplace with a variable Topic is solved
Replies: 2
Views: 164

Re: StringReplace with a variable Topic is solved

output:=StrReplace(inputVariable,"Send","Go") DisplayThisText:="Send something" DisplayThisText:=StrReplace(DisplayThisText,"Send","Go") ; the inputVariable is the same as the output in this case, which is fine MsgBox %DisPlayThisText% or DisplayThisText:="Send something" MsgBox % StrReplace(Displa...
by Exaskryz
02 Feb 2018, 10:22
Forum: Ask For Help
Topic: I can't use this variable correct
Replies: 2
Views: 134

Re: I can't use this variable correct

"{Control + V}" isn't anything intelligent to AHK. Using such a value in the Send command won't do anything, there's no key as "{Control + V}". Let alone a {Right {Control + V}} What you'd want is to use either MyVar = {Control Down}{v}{Control Up} like you did use in like 10, or you can use MyVar =...
by Exaskryz
01 Feb 2018, 16:56
Forum: Forum Issues
Topic: saying thanks
Replies: 2
Views: 922

Re: saying thanks

I haven't seen such a feature. I think it would be a good idea; I know I've wanted to thank people for their good posts, but did not want to bump the topic with a post that was not contributing anything to the discussion.
by Exaskryz
30 Jan 2018, 22:58
Forum: Ask For Help
Topic: What do YOU use AHK for?
Replies: 30
Views: 3407

Re: What do YOU use AHK for?

AHK is the primary reason I cannot go to Linux. While Linux, to my knowledge, has automation tools, they're not as convenient to set up as AHK. I have done a number of things with AHK over the years: * Process Excel Data * Process CSV Data * Process Web Scraped (HTML) Data * Text Replacement * Repet...
by Exaskryz
29 Jan 2018, 18:07
Forum: Ask For Help
Topic: Multiple msgboxes at random positions
Replies: 13
Views: 941

Re: Multiple msgboxes at random positions

Honestly, I'm not sure. I didn't try it out... Maybe you can use a single MoveMsgBox label, and if you don't need variety in your MsgBox, then the create MsgBox label would work. I was thinking of random done like this: MoveMsgBox: Random, x, 100, 1200 Random, y, 100, 500 WinMove, MsgBox, %x%, %y% r...
by Exaskryz
29 Jan 2018, 07:36
Forum: Ask For Help
Topic: Creating a Delete Key
Replies: 10
Views: 2445

Re: Creating a Delete Key

That should be working. In fact, I ran your code as is and it worked for me. Technically, you could use the hotkey >!l:: to limit it to the right-alt key; using just !l:: lets both left-alt and right-alt key work. You can also reduce this to a single line hotkey, and the {} are not necessary for a s...
by Exaskryz
29 Jan 2018, 06:37
Forum: Ask For Help
Topic: Creating a Delete Key
Replies: 10
Views: 2445

Re: Creating a Delete Key

Yep, you should be able to. Have you read Hotkeys and the Send command? See if you can create this one yourself.
by Exaskryz
28 Jan 2018, 22:21
Forum: Ask For Help
Topic: Multiple msgboxes at random positions
Replies: 13
Views: 941

Re: Multiple msgboxes at random positions

Yeah, feel free to open more. Using A_Index, A_ThisLabel, and stacked labels , we can do some good concise trickery: Loop, 5 SetTimer, MsgBox_%A_Index%, % -100*A_Index ; the times need to be different or else it conflicts as threads interfere and can't have launched simultaneously Sleep 600 return M...
by Exaskryz
28 Jan 2018, 19:04
Forum: Ask For Help
Topic: Multiple msgboxes at random positions
Replies: 13
Views: 941

Re: Multiple msgboxes at random positions

You can trigger multiple MsgBoxes through SetTimer: SetTimer, MsgBox_1, -300 SetTimer, MsgBox_2, -400 SetTimer, MsgBox_3, -500 Sleep 700 ; bypass #Persistent and ExitApp by making the auto-execute section last longer than it takes for the first MsgBoxes to appear return MsgBox_1: SetTimer, MoveMsgBo...
by Exaskryz
27 Jan 2018, 23:26
Forum: Wish List
Topic: Hotstrings option for requiring a preceding alphanumeric
Replies: 2
Views: 573

Re: Hotstrings option for requiring a preceding alphanumeric

Even better thinking. I at least tried the first suggestion; your solution was far better than I could come up with evidently; I limited myself to autoreplace strings and tried to make single-case exceptions like a th . Ah well, embarrassing on my part for finding one convoluted workaround which I r...
by Exaskryz
27 Jan 2018, 23:19
Forum: Ask For Help
Topic: playsound and overlay text
Replies: 6
Views: 522

Re: playsound and overlay text

Are any actions occuring outside the loop after the soundplay? If you just want to soundplay, then it's fine as is. But if you have other code that you are executing when the image is found, make sure your SoundPlay is set to asynchronous. (Add ,1 after the sound file I believe.) The point of MsgBox...

Go to advanced search