Search found 2882 matches

by Exaskryz
26 Jun 2018, 14:39
Forum: Ask for Help (v1)
Topic: AHK with 2 programs?
Replies: 3
Views: 1220

Re: AHK with 2 programs?

Reading through your post, I think you've got it. As far as I understand the #persitent thingie (does the #persistent make the stuff after it run nonstop?) # Persistent prevents the script from closing when it reaches the auto- execute section. Normally people start out with AHK using a Hotkey , whi...
by Exaskryz
25 Jun 2018, 15:16
Forum: Ask for Help (v1)
Topic: AHK with 2 programs?
Replies: 3
Views: 1220

Re: AHK with 2 programs?

Here's a template, you will have to change this. Click on any links in the code to look at the documentation. Oh, it's not in the code, but check out CoordMode to make sure your coordinates are right between ImageSearch and Clicks. #Persistent SetTimer, Routine, 30000 ; checks every 30 seconds retur...
by Exaskryz
13 Jun 2018, 16:10
Forum: Forum Issues
Topic: +1 feature on the forum
Replies: 31
Views: 10546

Re: +1 feature on the forum

I would use a +1 at times. It'd be my way of saying "This post is quality", "It helps the user", "It is a great example", "It uses a good technique", etc. without bumping a thread.
by Exaskryz
13 Jun 2018, 16:08
Forum: Ask for Help (v1)
Topic: Hotkey Topic is solved
Replies: 4
Views: 1720

Re: Hotkey 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
by Exaskryz
09 Jun 2018, 00:56
Forum: Ask for Help (v1)
Topic: help with playing macro only once Topic is solved
Replies: 7
Views: 2869

Re: help with playing macro only once Topic is solved

Use Qysh's code, but add KeyWait, \ before the return line. See KeyWait.
by Exaskryz
03 Jun 2018, 13:23
Forum: Ask for Help (v1)
Topic: For a simple CTRL+AX, should I make it longer so that AHK will have enough time to process?
Replies: 1
Views: 795

Re: For a simple CTRL+AX, should I make it longer so that AHK will have enough time to process?

It isn't necessarily that AHK needs time to process, but the target program does. AHK can send input to a program too fast for it to handle at times. You can try to avoid interlacing the Sleep, 100 by instead using SetKeyDelay . CTRLDOWN isn't a key, but CTRL is. You can use Send {Ctrl Down} and Sen...
by Exaskryz
02 Jun 2018, 16:46
Forum: Ask for Help (v1)
Topic: How to use different variables in the same "if"? Topic is solved
Replies: 7
Views: 1776

Re: How to use different variables in the same "if"? Topic is solved

Looking at the direction you were taking OP, I'd do this.

Code: Select all

If (cKey = "Main_B") OR (cKey = "Main_C") OR (cKey = "Main_D") ...
   gosub, Last_Key
You could also use If var in to do

Code: Select all

If cKey in Main_B,Main_C,Main_D,Main_E,Main_F
    gosub, Last_Key
by Exaskryz
23 May 2018, 04:51
Forum: Ask for Help (v1)
Topic: Please help me with this code!1 I would greatly appreciate it!
Replies: 7
Views: 1334

Re: please help me I really need it

You have the code structured just fine. I do encourage you to read over the documentation. And look over these couple posts that give you instructions on setting up an "autofire", even though yours is more complex. (Note: The first link is from the old forums, the second link is on these forums) htt...
by Exaskryz
15 May 2018, 16:44
Forum: Ask for Help (v1)
Topic: Can someone assist with this Loop statement?
Replies: 9
Views: 1627

Re: Can someone assist with this Loop statement?

If WinExist vs IfWinExist.

You had it right in your "Else" statement.
by Exaskryz
14 May 2018, 08:14
Forum: Ask for Help (v1)
Topic: Really new to this, need help with macro
Replies: 2
Views: 660

Re: Really new to this, need help with macro

Ooh, I noticed that the Ctrl+Volume_Up hotkey ^Volume_Up:: does *not* work on my system as is. When I press the Ctrl key, it defaults to using the normal F1-F12 key functions. Take my keyboard as an example. F5 refreshes webpages, but I need to press Fn+F5 to get the F5 behavior. Otherwise, it does ...
by Exaskryz
10 May 2018, 07:37
Forum: Ask for Help (v1)
Topic: Repeating Hotkey for Twitch ads in X-split
Replies: 1
Views: 558

Re: Repeating Hotkey for Twitch ads in X-split

I assume you understand and intend for ! to be the Alt key. What you need is to tell AHK you want to press the Numpad5 key instead of typing out N u m p a d 5. Use Send, !{Numpad5}

Also, do not include the ExitApp inside the loop. Or else your script will close after the first time you do the loop.
by Exaskryz
08 May 2018, 19:46
Forum: Ask for Help (v1)
Topic: if statement just isn't having any of it
Replies: 3
Views: 709

Re: if statement just isn't having any of it

I think the i ++ should be without a space, so i++. However, without having access to your Array nor what current_xp is, it's hard to diagnose an issue. And what is it you expect each variables value to be at the end of your process?
by Exaskryz
08 May 2018, 08:55
Forum: Ask for Help (v1)
Topic: WASD key combo to numpad movement? Topic is solved
Replies: 5
Views: 3212

Re: WASD key combo to numpad movement? Topic is solved

I may be shortsighted, and this issue has come up before on the forums (check out the gaming section), but try something like this: w::Up ; Numpad8? a::Left ; Numpad4? ~w & a::Numpad7 ~a & w::Numpad7 ; starts a comment on the line. This uses the ~ modifier to permit the native action of w and a, in ...
by Exaskryz
04 May 2018, 20:54
Forum: Ask for Help (v1)
Topic: Really new to this, need help with macro
Replies: 2
Views: 660

Re: Really new to this, need help with macro

Fn key is difficult to use, because often not even Windows can see it, only the system BIOS. See https://autohotkey.com/docs/KeyList.htm#SpecialKeys See https://autohotkey.com/docs/Hotkeys.htm#combo for how to do a custom combination of keys. You may be interested in doing just Ctrl+Volume Up/down, ...
by Exaskryz
28 Apr 2018, 00:27
Forum: Ask for Help (v1)
Topic: to press the keys at regular intervals.
Replies: 4
Views: 995

Re: to press the keys at regular intervals.

SetTimer can avoid the waiting for return to complete. Alternatively, use an If statement (plus else s) with A_ Index and the Mod () function. Example to alternate between 1 and 2 but turn it off after either of them: ~$XButton2:: $stop := 0 Loop { If (Mod(A_Index,2)=1) { SendInput, 1 Sleep, % ran(1...
by Exaskryz
27 Apr 2018, 09:34
Forum: Ask for Help (v1)
Topic: to press the keys at regular intervals.
Replies: 4
Views: 995

Re: to press the keys at regular intervals.

Something akin to this: Loop { SendInput 1 Sleep 10000 SendInput 2 Sleep 10000 ... SendInput 4 Sleep 20000 Sleep 5 } So take the code you have now, and really change the sleep, % ran(18, 100) to sleep % ran(9000, 11000) or just straight sleep 10000 if you'd like. Otherwise, you can explore use of Se...
by Exaskryz
26 Apr 2018, 02:33
Forum: Ask for Help (v1)
Topic: Does this software have a version of the mobile phone? Topic is solved
Replies: 7
Views: 5127

Re: Does this software have a version of the mobile phone? Topic is solved

I use "Automate" on Android as a free app. You can purchase a super-powerful app called Tasker for $2.99 last I knew. Tasker has been around for years, and with the revenue they've generated from app sales, I'd expect they're up to date and making the most of any android OS version.
by Exaskryz
23 Apr 2018, 15:55
Forum: Ask for Help (v1)
Topic: Auto type a sentence after a code word is typed?
Replies: 9
Views: 2557

Re: Auto type a sentence after a code word is typed?

It should work to do just ::ates::/uns seat , but you may want to use :*:ates:: so that you don't need a space or period afterward, your preference. Why it won't work in a game is probably because your game is running with administrator privileges. Grant AHK admin privileges too. Also see https://au...
by Exaskryz
22 Apr 2018, 11:04
Forum: Ask for Help (v1)
Topic: Getting a key to hold down when pressed twice?
Replies: 2
Views: 832

Re: Getting a key to hold down when pressed twice?

The built-in variables you want to use are A_ PriorKey and A_ TimeSincePriorHotkey . You also want the $ modifier to prevent recursion. Create an If statement that compares PriorKey to being the same as your target key, and also that it was pressed twice in quick enough succession by using an inequa...

Go to advanced search