Search found 2876 matches

by Exaskryz
02 Jun 2018, 16:46
Forum: Ask For Help
Topic: How to use different variables in the same "if"? Topic is solved
Replies: 7
Views: 635

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
Topic: Please help me with this code!1 I would greatly appreciate it!
Replies: 7
Views: 590

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
Topic: Can someone assist with this Loop statement?
Replies: 9
Views: 623

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
Topic: Really new to this, need help with macro
Replies: 2
Views: 288

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
Topic: Repeating Hotkey for Twitch ads in X-split
Replies: 1
Views: 217

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
Topic: if statement just isn't having any of it
Replies: 3
Views: 307

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
Topic: WASD key combo to numpad movement? Topic is solved
Replies: 5
Views: 558

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
Topic: Really new to this, need help with macro
Replies: 2
Views: 288

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
Topic: to press the keys at regular intervals.
Replies: 4
Views: 402

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
Topic: to press the keys at regular intervals.
Replies: 4
Views: 402

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
Topic: Does this software have a version of the mobile phone? Topic is solved
Replies: 7
Views: 789

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
Topic: Auto type a sentence after a code word is typed?
Replies: 9
Views: 678

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
Topic: Getting a key to hold down when pressed twice?
Replies: 2
Views: 276

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...
by Exaskryz
21 Apr 2018, 22:43
Forum: Ask For Help
Topic: Need help with keystroke script
Replies: 1
Views: 228

Re: Need help with keystroke script

The tutorial should cover this. But you can also check out (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
21 Apr 2018, 22:42
Forum: Ask For Help
Topic: Hotstring Length - Hit enter after select amount of characters for all hotstrings? Topic is solved
Replies: 7
Views: 739

Re: Hotstring Length - Hit enter after select amount of characters for all hotstrings? Topic is solved

What happens if you just use if ( len + ( Strlen(Arr[a_index] " ")) <= cpl_sixty) { ? I haven't run the code, but notice how we didn't use %len% in there -- When you wrap the If expression in parentheses, every word put in there are treated as the names of variables instead of strings, so you don't ...
by Exaskryz
20 Apr 2018, 12:07
Forum: Ask For Help
Topic: input a word and replace it's letters as output
Replies: 11
Views: 1154

Re: input a word and replace it's letters as output

You could change the word list so the left column isn't just letters. Then you just need to change Loop, Parse, TestString under the Find: label to use the delimiters you like (probably a space; I'd denote it as Loop, Parse, TestString, %A_Space% myself. I have not run Night's code, and of course no...
by Exaskryz
16 Apr 2018, 07:35
Forum: Ask For Help
Topic: how to replicate alt+numpad with ahk?
Replies: 3
Views: 340

Re: how to replicate alt+numpad with ahk?

I might try something like this, where we make LAlt the hotkey so then AHK starts watching for inputs. LAlt:: var:="", sequence:="" ; make sure var and sequence are empty, for any subsequent use of this hotkey While GetKeyState("LAlt","P") { Input, var, L1 T1 ; keeps track of all the text you entere...
by Exaskryz
06 Apr 2018, 09:14
Forum: Ask For Help
Topic: a quick question
Replies: 1
Views: 203

Re: a quick question

(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

Great examples you can use as a template. Customize as you need.
by Exaskryz
31 Mar 2018, 09:46
Forum: Ask For Help
Topic: check digit for a 11 digit number
Replies: 4
Views: 355

Re: check digit for a 11 digit number

There are multiple ways to create a check digit. Are you saying that you can add on a twelfth digit? Some algorithms are just sum all 11 digits up and take the last digit (doing Modulus 10) I wouldn't even use AHK on this necessarily. While this is cumbersome, in your B column (assuming the 500,000 ...

Go to advanced search