Scottswan Posted May 22, 2007 Posted May 22, 2007 I'm thinking of writing a gas mileage tracker in AutoIt but I have a couple questions... a. Has anyone already written one? I did a search here but all I found interesting was Larry's thread about Acetone and gas mileage. b. Is there a way to add a date picker to the gui? I have one that goes back to 2004 in excel, but it's getting cumbersome to add to now because it's so long. Plus I never was able to get the aggregate stuff to work correctly in excel. -Scott
Sardith Posted May 22, 2007 Posted May 22, 2007 Can you be a little more specific on what you want? Do you want a list with the date, and the MPG with the car name? (Just a example, not sure what you want) Example of a date picker: #include <GuiConstants.au3> ; GUI GuiCreate("Sample GUI", 250, 250) GuiSetIcon(@SystemDir & "\mspaint.exe", 0) GuiCtrlCreateDate("", 5, 5, 200, 20) GuiCtrlCreateLabel("(Date control expands into a calendar)", 10, 305, 200, 20) GuiSetState() While GuiGetMsg() <> $GUI_EVENT_CLOSE WEnd [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]
gseller Posted May 22, 2007 Posted May 22, 2007 With gas prices like they are today we sure could use one. That is a great idea...
Sardith Posted May 22, 2007 Posted May 22, 2007 Field wise for the program, what did you have in mind? Car: Make/Model Date: date Price: Cost of gas Gas Amount: Total gallons of fill up Total trip miles: Miles on trip odometer Miles Type: Highway, City, Highway/City Total: MPG Then Average Data for the car ($Car) MPG: Highway MPG: City MPG: Highway Miles: City Miles: Total Miles: Thats what I had in mind. [font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]
Scottswan Posted May 22, 2007 Author Posted May 22, 2007 Here's what I have now...What I'm envisioning is a flat file db, probably comma separated so can export from excel right into this.I nice, tabbed gui for data entry. The date picker would be a current month popup so you can quickly choose the day of the fillup, not critical. Basic stats shown on the entry gui and then a popup gui for advanced stats and a grid showing the raw data. Have an entry for additives such as acetone, which I've used off and on for over a year now.I've looked around for a freeware gas mileage tracker and there are a few out there, but they all suck. -Scott
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now