## I need help with algorithms if possible

Get help with using AutoHotkey and its commands and hotkeys
exoticTaytay606
Posts: 2
Joined: 19 Jun 2018, 21:02
GitHub: exoticTaytay606

### I need help with algorithms if possible

So I have been working on a script but I need this:
A, b = 0, 1
While b > 5 A = 0 [5 is 3x5, 3 is whatever you want.]
Else A = 1 [1 is B-3, B is 37/50(74%) of the total of 5, B = A + 1]
[Divide the value of 5 by 26 to get B]
[A is a 3 stage fraction, of the final values]
3=4 so 5 3's = 20
At that point b would be 16
So b-3
Is 16-4
So 12
turned into a script that will output the different numbers created by it. Could someone please help once I'm done the script I intend on sharing it I just got stuck on this part.
DyaTactic
Posts: 183
Joined: 04 Apr 2017, 05:52

### Re: I need help with algorithms if possible

I do understand mathemethics at a certain level but I belive this is not really ment to be a 'mathematical' explanation, is it? In other words, it's hard to understand what you want. Can you tell more about the goal of this algarithm? Maybe that clarifies one and other.
I'll write down in AHK what I do get, maybe that makes it easier to explain, just giving some handles:

Code: Select all

``````A = 0
B = 1	; Set the startvalues of A and B to 0 and 1.

If (B > 5) {	; In the case B is more then 5.
A = 1	; A gets the value 1.
} Else If (A=1) {	; In the other case, in which A is equal to 1.
B := 5 / 26	; Divide 5 by 26 and save the value in B.
}
; And the rest is even harder...
``````
I'll be happy to hear from you.
exoticTaytay606
Posts: 2
Joined: 19 Jun 2018, 21:02