| Author |
Message |
Topic: How to get number from last line of text? |
artbasement
Replies: 7
Views: 248
|
Forum: Ask for Help Posted: Fri Jan 27, 2012 6:33 pm Subject: How to get number from last line of text? |
FileRead, currslip, c:\Uniwell\currslip.txt
MsgBox % RegExReplace(currslip,".*#| [\d/]+.*")
Another method:
FileRead, currslip, c:\Uniwell\currslip.txt
MsgB ... |
Topic: How to get number from last line of text? |
artbasement
Replies: 7
Views: 248
|
Forum: Ask for Help Posted: Fri Jan 27, 2012 6:26 pm Subject: How to get number from last line of text? |
Ugh....it makes the whole thing pointless if you stringsplit and stringreplace and then use 4 instrings every loop, as well as the regexs!
I was amazed I got it to work at all, as I'm not a programer ... |
Topic: How to get number from last line of text? |
artbasement
Replies: 7
Views: 248
|
Forum: Ask for Help Posted: Fri Jan 27, 2012 12:07 am Subject: How to get number from last line of text? |
Thanks for the code Guest and tic. Just for future reference here is the finished code. loop
{
Sleep, 2000
FileRead, currslip, c:\Uniwell\currslip.txt
StringReplace, currslip,currsli ... |
Topic: How to get number from last line of text? |
artbasement
Replies: 7
Views: 248
|
Forum: Ask for Help Posted: Thu Jan 26, 2012 12:47 am Subject: How to get number from last line of text? |
Hi
Can someone help me please?
I have a sales receipt from a cafe and I need to get the transaction number '001-007-0028-0001' that is after the '#' but before the date information.
It looks ... |
Topic: Ignor a minus sign? |
artbasement
Replies: 4
Views: 379
|
Forum: Ask for Help Posted: Sun Oct 25, 2009 2:49 pm Subject: Ignor a minus sign? |
stringReplace, amount, refund, `-, ,
Works well. |
Topic: Ignor a minus sign? |
artbasement
Replies: 4
Views: 379
|
Forum: Ask for Help Posted: Sun Oct 25, 2009 1:33 am Subject: Ignor a minus sign? |
Just got it like this....
If (instr(currslip,"- ")) AND (instr(currslip,"C a r d"))
{
needle := "SUBTOTAL"
halfslip ... |
Topic: Ignor a minus sign? |
artbasement
Replies: 4
Views: 379
|
Forum: Ask for Help Posted: Sat Oct 24, 2009 11:46 pm Subject: Ignor a minus sign? |
This is probably very simple to fix.
I have text in a file like this
002=SMALL CAPPUCCINO -1.50
002= REFUND
002=SMALL HOT CHOCO ... |
Topic: Make a text file from the output to a serial printer |
artbasement
Replies: 2
Views: 349
|
Forum: Ask for Help Posted: Wed Oct 21, 2009 9:22 pm Subject: Make a text file from the output to a serial printer |
Perhaps the ComCap utility
Managed to get the ComCap utility working finally , with the correct wires conected from the Uniwell. Now I have to get autohotkeys to read the text file and find the wo ... |
Topic: Make a text file from the output to a serial printer |
artbasement
Replies: 2
Views: 349
|
Forum: Ask for Help Posted: Wed Oct 21, 2009 12:28 am Subject: Make a text file from the output to a serial printer |
Does anyone know how I could use autohotkeys to make a text file in my computer from the RS 232 output from my Uniwell TX-850 cash register?
The reason for this is that I need to create a text file ... |
Topic: Find Transaction Number on Line 14 or 15 |
artbasement
Replies: 7
Views: 1039
|
Forum: Ask for Help Posted: Sun Nov 02, 2008 1:48 am Subject: Find Transaction Number on Line 14 or 15 |
Thanks VxE, works perfectly now like this!
FileReadLine, transactionNum1, c:\sa\currslip.txt, 14
StringLeft, transactionNum1, transactionNum1, 6
If transactionNum1 is NOT INTEGER
... |
Topic: Find Transaction Number on Line 14 or 15 |
artbasement
Replies: 7
Views: 1039
|
Forum: Ask for Help Posted: Sat Nov 01, 2008 9:17 pm Subject: Find Transaction Number on Line 14 or 15 |
| Thank you for your input. The reason I posted a fresh thread is because we have been using this code for nearly 2 months in a chain of shops and it has been working fine up until the point we found th ... |
Topic: Find Transaction Number on Line 14 or 15 |
artbasement
Replies: 7
Views: 1039
|
Forum: Ask for Help Posted: Sat Nov 01, 2008 5:12 pm Subject: Find Transaction Number on Line 14 or 15 |
I have to admit I am very new to programing, so I am not sure how to use the examples you have given me. Is there any chance you could edit my code to show me how to do it?
Thanks |
Topic: Find Transaction Number on Line 14 or 15 |
artbasement
Replies: 7
Views: 1039
|
Forum: Ask for Help Posted: Sat Nov 01, 2008 3:53 pm Subject: Find Transaction Number on Line 14 or 15 |
| I have written some code which compares the transaction number in a currslip.txt file to a num.txt file to decide if to activate credit card payment software. The problem is that sometimes the transac ... |
Topic: Help with Php please? |
artbasement
Replies: 4
Views: 383
|
Forum: Ask for Help Posted: Thu Oct 02, 2008 9:18 am Subject: Help with Php please? |
SORRY
It was something which I thought might be of interest and easy for one of you to answer.
Have posted it on Php forum instead...  |
Topic: Help with Php please? |
artbasement
Replies: 4
Views: 383
|
Forum: Ask for Help Posted: Thu Oct 02, 2008 4:45 am Subject: Help with Php please? |
| I am trying to edit some Php in my online cart, so that in a Drop Down list of delivery options, if the delivery has a cost of "0.00" it will show the user "FREE" instead of " ... |
| |