| Author |
Message |
Forum: Support Topic: Remove digits from a number |
| Bad Juju |
|
Posted: April 3rd, 2009, 6:43 pm
|
|
Replies: 6 Views: 361
|
| Outstanding! That worked wonderfully. Thank you very much! |
|
 |
Forum: Support Topic: Remove digits from a number |
| Bad Juju |
|
Posted: April 3rd, 2009, 5:41 pm
|
|
Replies: 6 Views: 361
|
I have a number that is 12 digits long (eg. 800800022348). I need AHK to remove the first three digits so that I am left with a 9 digit number (eg. 800022348). I suppose I can just subtract 800000000000 but is there another way to accomplish this?
Thanks,
Shaun |
|
 |
Forum: Support Topic: Take the number of items in an array and decrease it? |
| Bad Juju |
|
Posted: February 23rd, 2009, 11:56 pm
|
|
Replies: 8 Views: 486
|
|
 |
Forum: Support Topic: Take the number of items in an array and decrease it? |
| Bad Juju |
|
Posted: February 23rd, 2009, 11:35 pm
|
|
Replies: 8 Views: 486
|
| Follow up question: So that I can understand what I am doing, what is the "f" parameter used for? I found this in the help file for sorting but I wasn't sure if this is correct for FileRead and Loop, Parse. F MyFunction [v1.0.47+]: Uses custom sorting according to the criteria in MyFunctio... |
|
 |
Forum: Support Topic: Take the number of items in an array and decrease it? |
| Bad Juju |
|
Posted: February 21st, 2009, 12:51 am
|
|
Replies: 8 Views: 486
|
Wow is that all I had to do?! I was trying things like Field0-- and Field=-, etc. and couldn't get anything to work. Thanks!
Tuncay, that is a great solution. I've managed to get that to work with the rest of my code. My code can sometimes be clunky. Thanks for your help. |
|
 |
Forum: Support Topic: Take the number of items in an array and decrease it? |
| Bad Juju |
|
Posted: February 20th, 2009, 11:27 pm
|
|
Replies: 8 Views: 486
|
| OK I think that "Send % Field%A_Index% "{Enter}" will solve part of my problem. However the main part of my problem is to define how many times the nested loop should run. This will vary dependent on the number of items in each row of the text file. For instance. Each line of the text... |
|
 |
Forum: Support Topic: setting different loop count for each time script is run |
| Bad Juju |
|
Posted: February 20th, 2009, 11:04 pm
|
|
Replies: 9 Views: 912
|
Nevermind. I figured this one out.
Field0
- Shaun |
|
 |
Forum: Support Topic: Take the number of items in an array and decrease it? |
| Bad Juju |
|
Posted: February 20th, 2009, 11:03 pm
|
|
Replies: 8 Views: 486
|
| This script reads rows of numbers from a text file and breaks them into an array. With some research I have figured out how to tell AHK how many items are in that array (or is it the other way around?). The script uses the first item from the array and then uses the remaining items inside a nested l... |
|
 |
Forum: Support Topic: setting different loop count for each time script is run |
| Bad Juju |
|
Posted: February 20th, 2009, 7:15 pm
|
|
Replies: 9 Views: 912
|
| Instead of taking user input to determine the loop count, how can I set the loop count based on the number of items in a string as read from a text file (not from Excel)? In other words, I am using: StringSplit, Field, A_LoopReadLine, %A_Tab% ... to read a string. How do I know how many "Fields... |
|
 |
Forum: Support Topic: Variables Using Loop, read and Loop, parse, A_LoopReadLine |
| Bad Juju |
|
Posted: February 19th, 2009, 9:40 pm
|
|
Replies: 2 Views: 422
|
Sweet!
That worked once I replaced 't with %A_Tab%
Thank you very much.
- Shaun |
|
 |
Forum: Support Topic: Variables Using Loop, read and Loop, parse, A_LoopReadLine |
| Bad Juju |
|
Posted: February 19th, 2009, 6:50 pm
|
|
Replies: 2 Views: 422
|
| I am trying to create a script that will read numbers from a text file. The text file contains many rows of three numbers across (A_Index). If I can get this to work correctly the text file will have more numbers across. Text File 6070465 600600001466 600600051466 6070466 600600001467 600600051467 6... |
|
 |
| Sort by: |