Search found 225 matches

by blad4
24 Sep 2020, 16:41
Forum: Ask For Help
Topic: WinActivate and IfWinActive issues Topic is solved
Replies: 4
Views: 116

Re: WinActivate and IfWinActive issues Topic is solved

This worked great! Thank you so much
by blad4
22 Sep 2020, 05:52
Forum: Ask For Help
Topic: WinActivate and IfWinActive issues Topic is solved
Replies: 4
Views: 116

Re: WinActivate and IfWinActive issues Topic is solved

So what was the output of your testing so far? WindowTitle/-content?? Changed timings? The screenshots are looking quite promising. Hi I posted the screeshots to just inform you that I have tried with all variations of titles, and PID, but still nothing works fluently. For example, with the PID for...
by blad4
22 Sep 2020, 05:14
Forum: Ask For Help
Topic: WinActivate and IfWinActive issues Topic is solved
Replies: 4
Views: 116

WinActivate and IfWinActive issues Topic is solved

Hi, since my program, Sierra Charts, has undergone updates, I am having so much trouble using the simple #IfWinActive and WinActivate conditions in my scripts. Basically there are three scripts, one for each program below: https://i.ibb.co/QPkMTG6/ahk-forum.png This is what has been working fine for...
by blad4
24 Jun 2020, 08:58
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Re: Need help for what could be an array? ? Just sequences of numbers

Thanks so much for the explanation. Now I understand what is happening and why it doesn't work, because it keeps going into negative nubers before I can get to A being >=209! Remember I have 6 strings, here are 5 and 6 to show the example that this function needs to work uniformly across all numbers...
by blad4
24 Jun 2020, 05:28
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Re: Need help for what could be an array? ? Just sequences of numbers

D(Delta,Exit:=False) { A:=1+Mod(A+=267+Delta,268) B:=4+Mod(B+=264+Delta,268) Thanks, I understand Modulo! I just do not understand 'Delta,268' in this case We start with A:=8, B:=11 When we get to A:=216, B:=219 if A(209,221) D(52,1) A becomes 268 B does not become 271 My try at the equation so you...
by blad4
22 Jun 2020, 07:11
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Re: Need help for what could be an array? ? Just sequences of numbers

Thank you for the try, but nothing seems to work with that in place.
by blad4
22 Jun 2020, 06:37
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Re: Need help for what could be an array? ? Just sequences of numbers

Hi Rohwedder, all has been working great, thank you. I have encountered a small problem when reaching the upper limit of the numbers. A is max 268, this is fine, but B needs to still be 3 more than A, so max 271 and changing ch2:=1+Mod(ch2+=267+Delta,268) obviously gives big errors. Essentially I am...
by blad4
07 May 2020, 17:05
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Re: Need help for what could be an array? ? Just sequences of numbers

So beautiful. Works splendid and a monkey like me can change and implement scale v quickly.. Lastly, at every initial call of a string (basically when numpad0 is pressed), the values for A and B will be a constant. Is there a way to 'attach' these constants to the specific strings? E.g.: If Numpad0 ...
by blad4
07 May 2020, 08:01
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Re: Need help for what could be an array? ? Just sequences of numbers

Stupid mistake by me, it makes no sense, so edited. But yes I was thinking a simplifcation because it makes it easier to increase complexity. For example by the time I am at String 12, I may need all choices, and there are currently 21 in total, like: If String=12 { If A 1-8 If A 14-21 If A 27-34 If...
by blad4
07 May 2020, 05:25
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Re: Need help for what could be an array? ? Just sequences of numbers

True, so hopefully this explains the desired simplification:

Numpad0:
{

If String=1
{
If A 1-39 *edited*
Begin String 3
If A 40-78
Begin String 2
}

}

{

If String=2
..etc

}
by blad4
06 May 2020, 15:27
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Re: Need help for what could be an array? ? Just sequences of numbers

You are great, thanks. This is essentially solved now. I have changed Numpad0 to show the principle of what the desired outcome was. Notice how we have complete freedom between Strings. Can go from string1, numpad0, string3, OR string1, right, right, right, numpad0, string2 etc Is there a way to mak...
by blad4
05 May 2020, 07:04
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Re: Need help for what could be an array? ? Just sequences of numbers

Perfecto!! Now I just need to get 'into' each string at will. I have: STRING 1 Global A:=8, B:=11 SetTimer, ToolTip, 100 Return Left:: if A between 1 and 13 D(65,1) if A between 14 and 78 D(-13,1) Return Right:: IF A between 1 and 65 D(13,1) D(-65) Return D(Delta,Exit:=False) { A:=1+Mod(A+=267+Delta...
by blad4
05 May 2020, 04:01
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Re: Need help for what could be an array? ? Just sequences of numbers

Ohh, I think I understand what you mean now, please check below and clarify? For RIGHT ONLY: 1) if A between 1 and 13 { A+=13 (to get to 2) ) } 2) if A between 14 and 26 { A+=13 (to get to 3) ) } 3) if A between 27 and 39 { A+=13 } 4) if A between 40 and 52 { A+=13 } 5) if A between 53 and 65 { A+=1...
by blad4
04 May 2020, 08:31
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Re: Need help for what could be an array? ? Just sequences of numbers

Is this ok Rohwedder? Please let me know if still confusing
by blad4
02 May 2020, 12:49
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Re: Need help for what could be an array? ? Just sequences of numbers

Yes, exactly you are right.

So if we start, and press left, we get to 6, press right, 1, press right, 2, press left, 1 etc
by blad4
02 May 2020, 12:18
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Re: Need help for what could be an array? ? Just sequences of numbers

Thanks I hope this can explain better: 1) if A between 1 and 13 { A+=13 } 2) if A between 14 and 26 { A+=13 } 3) if A between 27 and 39 { A+=13 } 4) if A between 40 and 52 { A+=13 } 5) if A between 53 and 65 { A+=13 } 6) if A between 66 and 78 { A+=13 Then A-=78 } So naturally we start at 1). Right ...
by blad4
02 May 2020, 09:49
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Re: Need help for what could be an array? ? Just sequences of numbers

Rohwedder this is so great. I tested String 1, Right works perfectly for it. 2 points below. 1) One problem seems to only be with the left key, in that it just does the 'reverse' of right key. Example, at the start when we are 8, 11, press left, should go to to 73, 76 ( the end point of String 1. 2)...
by blad4
01 May 2020, 18:19
Forum: Ask For Help
Topic: Need help for what could be an array? ? Just sequences of numbers
Replies: 28
Views: 3048

Need help for what could be an array? ? Just sequences of numbers

I have numbers A and B They start A=8 B=11 They are both changed identically from this starting point, so let's simplify for now and just use A A has 21 'bands' 1-8 14-21 27-34 40-47 53-60 66-73 79-86 etc etc until 261-268 I can manouevre through these with: Right press: A+=13 if A>268 A-=268 Left p...
by blad4
04 Mar 2020, 09:50
Forum: Ask For Help
Topic: Trying to determine if number is divisible Topic is solved
Replies: 6
Views: 371

Re: Trying to determine if number is divisible Topic is solved

Hi Rohwedder, it's currently sending Case 0 and 1 after each other.

I just want to identify which I am currently in, as a one-time event.

For example, if I am on 175, and I press, it tells me "I am in the fifth group", and I send x

If I am on 171, 1st group, and I send y

Go to advanced search