Search found 124 matches

by ivill
04 Sep 2017, 21:06
Forum: Ask for Help (v1)
Topic: Split specified number into parts and sum Topic is solved
Replies: 17
Views: 4081

Split specified number into parts and sum Topic is solved

Hello all, allow me to ask a difficult(for me) script, i'll go in straight to the thread. :) vNumber : 30000 I need to split a specified vNumber into 4 parts, each parts are close to each other (I mean Roughly average) condition one: each parts can be devided exactly by 48 condition two: each parts ...
by ivill
03 Sep 2017, 20:07
Forum: Ask for Help (v1)
Topic: Amount to word business stating writing? Topic is solved
Replies: 7
Views: 2058

Amount to word business stating writing? Topic is solved

Hello all, how do i supposed to convert amount numbers to words with CENT expression, looking around the internet but none ahk script could do this (few scripts actually, but longer digits not supported, cents not supported) here is an example 52,031.04 >>> FIFTY TWO THOUSAND AND THIRTY ONE AND CENT...
by ivill
02 Sep 2017, 02:33
Forum: Ask for Help (v1)
Topic: Generate Random numbers and sum to specific given number Topic is solved
Replies: 15
Views: 2718

Re: Generate Random numbers and sum to specific given number Topic is solved

Here are some sums with the 6dp number: 3319*4.02+3221*3.58+3212*3.74+3395.650224*4.46 = 52031.039999 3266*3.52+3234*4.03+3278*4.12+3270.172897*4.28 = 52031.039999 3374*3.97+3209*3.66+3277*3.68+3295.991111*4.50 = 52031.04 3324*3.72+3270*4.24+3229*4.45+3266.260000*3.50 = 52031.04 3215*3.46+3214*3.70...
by ivill
01 Sep 2017, 20:30
Forum: Ask for Help (v1)
Topic: Generate Random numbers and sum to specific given number Topic is solved
Replies: 15
Views: 2718

Re: Generate Random numbers and sum to specific given number Topic is solved

So taking this example: 3264*4.52=14753.28 3264*4.07=13284.48 3264*3.84=12533.76 3312*3.46=11459.52 Each calculation is of the form: #### * #.## where the first number is (3200 <= #### <= 3400) (201 possibilities) and the second number is (3.40 <= #.## <= 4.59) (120 possibilities) (you have stated ...
by ivill
01 Sep 2017, 10:46
Forum: Ask for Help (v1)
Topic: Generate Random numbers and sum to specific given number Topic is solved
Replies: 15
Views: 2718

Re: Generate Random numbers and sum to specific given number Topic is solved

vRange1 := (vTotal / 4) - 3000 vRange2 := (vTotal / 4) + 3000 why limit a "random" number to one quarter of vTotal +/- 3000 ?? vTotal := 52031.04 Loop { vRange := vTotal Random, vRand1, 0, % vRange vRange -= vRand1 Random, vRand2, 0, % vRange vRange -= vRand2 Random, vRand3, 0, % vRange vRand4 := v...
by ivill
01 Sep 2017, 10:42
Forum: Ask for Help (v1)
Topic: Generate Random numbers and sum to specific given number Topic is solved
Replies: 15
Views: 2718

Re: Generate Random numbers and sum to specific given number Topic is solved

vRange1 := (vTotal / 4) - 3000 vRange2 := (vTotal / 4) + 3000 why limit a "random" number to one quarter of vTotal +/- 3000 ?? vTotal := 52031.04 Loop { vRange := vTotal Random, vRand1, 0, % vRange vRange -= vRand1 Random, vRand2, 0, % vRange vRange -= vRand2 Random, vRand3, 0, % vRange vRand4 := v...
by ivill
01 Sep 2017, 09:12
Forum: Ask for Help (v1)
Topic: Generate Random numbers and sum to specific given number Topic is solved
Replies: 15
Views: 2718

Re: Generate Random numbers and sum to specific given number Topic is solved

Yes, instead of 'I would pick 1 random number (the total, t)', I should have said 'Given a number (the total, t)', but everything I said still stands. You are given t, you pick 3 random values: a,b,c, and you do d = t-a-b-c to get the fourth value in the sum: d. Otherwise what are you going to do? ...
by ivill
01 Sep 2017, 03:31
Forum: Ask for Help (v1)
Topic: Generate Random numbers and sum to specific given number Topic is solved
Replies: 15
Views: 2718

Re: Generate Random numbers and sum to specific given number Topic is solved

Yes, instead of 'I would pick 1 random number (the total, t)', I should have said 'Given a number (the total, t)', but everything I said still stands. You are given t, you pick 3 random values: a,b,c, and you do d = t-a-b-c to get the fourth value in the sum: d. Otherwise what are you going to do? ...
by ivill
31 Aug 2017, 21:49
Forum: Ask for Help (v1)
Topic: Generate Random numbers and sum to specific given number Topic is solved
Replies: 15
Views: 2718

Re: Generate Random numbers and sum to specific given number Topic is solved

I would pick 1 random number (the total, t), and 3 additional random numbers (numbers that form part of the sum: a,b,c). I would do d := t - a - b - c, to get the 4th 'random' number in the sum. And thus a+b+c+d=t. You may find the Format function useful, to write the numbers to 2dp (2 decimal plac...
by ivill
31 Aug 2017, 19:47
Forum: Ask for Help (v1)
Topic: Generate Random numbers and sum to specific given number Topic is solved
Replies: 15
Views: 2718

Generate Random numbers and sum to specific given number Topic is solved

Hi all is it possible to generate random numbers and do simple math, then i can get the final result which i given? example in the below given number: 52031.04 random numbers (R): 3264(R)*4.52(R)=14753.28 3264(R)*4.07(R)=13284.48 3264(R)*3.84(R)=12533.76 3312(R)*3.46(R)=11459.52 then add them up 147...
by ivill
04 Dec 2016, 01:49
Forum: Ask for Help (v1)
Topic: FileAppend string to txt and sum total numbers Topic is solved
Replies: 6
Views: 1567

Re: FileAppend string to txt and sum total numbers Topic is solved

Instead of doing a FileRead or ControlSend to get the newline in there, you can just put it in the text to append. FileAppend, %MyVar1%`n, D:\sum.txt . To get the sum, you can use Loop, Read to run through each line: Loop, Read, D:\sum.txt var+=A_LoopLine MsgBox %var% return Then you can do with th...
by ivill
04 Dec 2016, 01:42
Forum: Ask for Help (v1)
Topic: FileAppend string to txt and sum total numbers Topic is solved
Replies: 6
Views: 1567

Re: FileAppend string to txt and sum total numbers Topic is solved

Instead of doing a FileRead or ControlSend to get the newline in there, you can just put it in the text to append. FileAppend, %MyVar1%`n, D:\sum.txt . To get the sum, you can use Loop, Read to run through each line: Loop, Read, D:\sum.txt var+=A_LoopLine MsgBox %var% return Then you can do with th...
by ivill
03 Dec 2016, 09:57
Forum: Ask for Help (v1)
Topic: FileAppend string to txt and sum total numbers Topic is solved
Replies: 6
Views: 1567

FileAppend string to txt and sum total numbers Topic is solved

I will explain my purpose in directly: sum.ahk - first run Clipwait MyVar1 := Clipboard ;a number, for example 5000 Fileappend, %MyVar1%, D:\sum.txt sum.ahk - second run Clipwait MyVar1 := Clipboard ;a number, for example 1000 Fileappend, %MyVar1%, D:\sum.txt ;how can i use fileread and controlsend ...
by ivill
27 Nov 2016, 07:38
Forum: Scripts and Functions (v1)
Topic: QuickReminder v0.6
Replies: 34
Views: 19312

Re: QuickReminder v0.6

Hi, it's me again... i found that this become a daily use tool for me, but i just reached it's limit, it's up to 20 reminders totally, is it possible to make a quick update with more reminders(30-50)... thanks very much sir, or can you send me a copy would be nice, ivill66#gmail#com
by ivill
28 Oct 2016, 13:55
Forum: Ask for Help (v1)
Topic: ahk_class #32770 - something special?
Replies: 4
Views: 7207

Re: ahk_class #32770 - something special?

#32770 The class for a dialog box. from https://msdn.microsoft.com/en-us/library/windows/desktop/ms633574%28v=vs.85%29.aspx a lot of windows dialogs has that class, file properties, Run dialog, open+save dialogs............. If I understood you right, and you want to close all the dialogs with the ...
by ivill
28 Oct 2016, 13:51
Forum: Ask for Help (v1)
Topic: how to active multiple ahk_class 32770 window one by one
Replies: 3
Views: 943

Re: how to active multiple ahk_class 32770 window one by one

the PID for the same ahk_class 32770 window in "Windows Task manager" is different
by ivill
28 Oct 2016, 13:49
Forum: Ask for Help (v1)
Topic: how to active multiple ahk_class 32770 window one by one
Replies: 3
Views: 943

Re: how to active multiple ahk_class 32770 window one by one

i mean, how to active the next same ahk_class 32770 window? or how to temporary close/minimize the current ahk_class 32770, then i can active the next ahk_class 32770, and restore the last ahk_class 32770? possible?
by ivill
28 Oct 2016, 13:39
Forum: Ask for Help (v1)
Topic: how to active multiple ahk_class 32770 window one by one
Replies: 3
Views: 943

how to active multiple ahk_class 32770 window one by one

here i want to active 2-3 window one by one (active window1 and do something, active window2 and do something), it only can be #winactivate by ahk_class 32770, the problem is, the windows got the same title and the sameahk_class 32770, do you got any idea?
by ivill
10 Oct 2016, 04:55
Forum: Scripts and Functions (v1)
Topic: QuickReminder v0.6
Replies: 34
Views: 19312

Re: QuickReminder v0.6

and a suggestion: in the "Add reminder" window, while typing the expired time, i.e the date time 17:53:12, or [xHour, xMinute,xSecond]. the keyboard cursor may moves to right, it will be more smooth..
by ivill
10 Oct 2016, 04:50
Forum: Scripts and Functions (v1)
Topic: QuickReminder v0.6
Replies: 34
Views: 19312

Re: QuickReminder v0.6

Hi, there, i know it's an old thread,but this script is quite useful for me, is there a way to click the tab(Note, Status) to range/sort all actived task by expired time/by name/by status ?

Go to advanced search