AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

script to help an airline pilot?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
mitchican



Joined: 02 Feb 2007
Posts: 10

PostPosted: Fri Feb 02, 2007 2:23 am    Post subject: script to help an airline pilot? Reply with quote

so I've been doing this manually for sometime now and it has gotten very monotous; it has to do with my schedule on a weekly basis. I copy my schedule from the crewmember website and have to convert it another format. I think this is exactly what ahk is supposed to help with, repeptive tasks. Unfortunately, I haven't a clue; I honestly started reading on how to create macros and scripts; however, the letters looked familar but the words.. didn't.

Anyway, can it be done?

Here's what I copy:

Code:
H123K   CA01    FEB 02, 06   
   
Flt   Seq   Rest
DT   Ferry
DH   Eqp   Org   Dst   Dpt
Bref   T   Arr
Dbref   Ov
Po   Au   Fltm   Duty   Tail
Layo   Guar   Total   
 2799   010   02      SLJ   HOU   ICT   0825   S   1008         0143      0517         
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
H123K   020206   CA01      L      A1234   DOE , JOHN       
H123KA   020206   FO01      L      D4321   MING , YAO       
H123K   020206   FA01      L      G9876   SMITH ,  JANE    67   
Exception Code   Description
673   
 2866   020   02      SLJ   ICT   HOU   1035   S   1230         0155      0517         
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
H123K   020206   CA01      L      A1234   DOE , JOHN       
H123KA   020206   FO01      L      D4321   MING , YAO       
H123K   020206   FA01      L      G9876   SMITH ,  JANE    67   
 2631   030   02      ERJ   HOU   LFT   1415   S   1510         0055      0943         
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
H123K   020206   CA01      L      A1234   DOE , JOHN       
H123KA   020206   FO01      L      D4321   MING , YAO       
H123K   020206   FA01      L      G9876   SMITH ,  JANE    67   
 2472   040   02      ERJ   LFT   HOU   1537   S   1647         0110      0943         
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
H123K   020206   CA01      L      A1234   DOE , JOHN       
H123KA   020206   FO01      L      D4321   MING , YAO       
H123K   020206   FA01      L      G9876   SMITH ,  JANE    67   
 2472   050   02      ERJ   HOU   OKC   1730   S   1857         0127      0943         
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
H123K   020206   CA01      L      A1234   DOE , JOHN       
H123KA   020206   FO01      L      D4321   MING , YAO       
H123K   020206   FA01      L      G9876   SMITH ,  JANE    67   
 DP01   060   S1               0725   S   1912         0710   1147   1153      0710   
   
    City   Code   Name   Phone
Hotel   OKC   HAM   HAMPTON INN*    4056822080
 2766   070   03      ERJ   OKC   HOU   0750   S   0920         0130      0943         
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
H123K   020206   CA01      L      A1234   DOE , JOHN       
H123KA   020206   FO01      L      D4321   MING , YAO       
H123K   020206   FA01      L      G9876   SMITH ,  JANE    67   
 2766   080   03      LRJ   HOU   LFT   1035   S   1132         0057      0904         
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
H123K   020206   CA01      L      A1234   DOE , JOHN       
H123KA   020206   FO01      L      D4321   MING , YAO       
H123K   020206   FA01      L      G9876   SMITH ,  JANE    67   
 2989   090   03      LRJ   LFT   HOU   1200   S   1302         0102      0904         
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
H123K   020206   CA01      L      A1234   DOE , JOHN       
H123KA   020206   FO01      L      D4321   MING , YAO       
H123K   020206   FA01      L      G9876   SMITH ,  JANE    67   
 3108   100   03      LRJ   HOU   SDF   1640   S   1954         0214               
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
H123K   020206   CA01      L      A1234   DOE , JOHN       
I9A71   030206   FO01      L      G6420   DALE , WILLIAM       
H123K   020206   FA01      L      G9876   SMITH ,  JANE    67   
 DP02   110   S2               0705   S   2009         0543   1204   1141      0543   
   
    City   Code   Name   Phone
Hotel   SDF   HOL   HI HURSTBOURNE*   5024262600
 2847   120   04      LRJ   SDF   HOU   0835   S   1019         0244               
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
H123K   020206   CA01      L      A1234   DOE , JOHN       
I9A71   030206   FO01      L      G6420   DALE , WILLIAM       
H123K   020206   FA01      L      G9876   SMITH ,  JANE    67   
 2459   130   04      LRJ   HOU   OMA   1145   S   1355         0210               
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
H123K   020206   CA01      L      A1234   DOE , JOHN       
I9A71   030206   FO01      L      G6420   DALE , WILLIAM       
H123K   020206   FA01      L      G9876   SMITH ,  JANE    67   
 3048   140   04      LRJ   OMA   HOU   1500   S   1724         0224               
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
H123K   020206   CA01      L      A1234   DOE , JOHN       
I9A71   030206   FO01      L      G6420   DALE , WILLIAM       
H123K   020206   FA01      L      G9876   SMITH ,  JANE    67   
 DP03
   150                  0750   S   1739         0718   1049         0718   
Pairing Totals   TAFB   DHD   Flight Time   Guar Time   Pay Time
    5814      2011      2011
Crew Member Positions            Other Information
Pos #   Emp NO   Reserve   Name            Type   DP#   City   Code   Name   Phone
CA01   A1234       JOHN DOE                    Hotel   DP01   OKC   HAM   HAMPTON INN*    4056822080
FA01   G9876       JANE SMTIH                 Hotel   DP02   SDF   HOL   HI HURSTBOURNE*   5024262600


change to this:
Code:
02/02/2006 2799 HOU ICT 0825 1008
02/02/2006 2866 ICT HOU 1035 1230
02/02/2006 2631 HOU LFT 1415 1510
02/02/2006 2472 LFT HOU 1537 1647
02/02/2006 2472 HOU OKC 1730 1857
02/03/2006 2766 OKC HOU 0750 0920
02/03/2006 2766 HOU LFT 1035 1132
02/03/2006 2989 LFT HOU 1200 1302
02/03/2006 3108 HOU SDF 1640 1954
02/04/2006 2847 SDF HOU 0835 1019
02/04/2006 2459 HOU OMA 1145 1355
02/04/2006 3048 OMA HOU 1500 1724


this shows date, flight number, departure airport, arrival airport, dep time, arr time.

would it be possible to make example one change to exapmle two using a script? could it automatically put it in the clipboard?

oh how sweet life would be if I had a script to do this.

thanks in advance
-mitchican
Back to top
View user's profile Send private message
JSLover



Joined: 20 Dec 2004
Posts: 542
Location: LooseChange911.com... the WTC attacks were done by the US Gov't... the official story is a lie...

PostPosted: Fri Feb 02, 2007 10:19 am    Post subject: Re: script to help an airline pilot? Reply with quote

OK questions...in all that mumbo jumbo, I see 1 date "FEB 02, 06"...not even in m/d/yy format...how do you attach each flight to a date? How do you know..."02/04/2006 3048 OMA HOU 1500 1724" is on "02/04/2006"??? Since one date is in the input, I can only assume that all flights are on the same date...until the input gives me another date to base more output on...can you highlight the key parts?...for example...
    date, flight number, departure airport, arrival airport, dep time, arr time
Code:
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
H123K   020206   CA01      L      A1234   DOE , JOHN       
I9A71   030206   FO01      L      G6420   DALE , WILLIAM       
H123K   020206   FA01      L      G9876   SMITH ,  JANE    67   
 3048   140   04      LRJ   OMA   HOU   1500   S   1724         0224
Code:
02/04/2006 3048 OMA HOU 1500 1724

...the 2nd column (above 140) could be a date, but none of them say "02/04/2006"...also why does it list other pilots?...why is the line with all the info by itself, not lining up like the rest?...where are you copying from...can you link to the website...or save a copy & upload it so we can see the source...perhaps there's a better way to copy so you don't need to wade thru this...or perhaps the site has a "download csv" option that is better formatted...if this website is who you fly for, perhaps you can talk to your boss (or web dept) & get the info in a parseable format (csv, tsv)...or perhaps a printable format that is useful...if I could see this jumble on the source site, I could understand it more...currently I could write a parser that strips all lines not "beginning with a single space & 4 digits"...but that ain't very sophisticated...then I would parse each of the lines left, spinning the info into the order you want, but I still don't know what date each line is for...
_________________

Home • Click image! • Blog
Back to top
View user's profile Send private message Visit poster's website
BoBo
Guest





PostPosted: Fri Feb 02, 2007 10:56 am    Post subject: Reply with quote

I've sorted that 'source' Rolling Eyes based on plain guessing, so it should be possible to identify patterns/positions.
Hope that helps: [FlightPlan]
Back to top
JSLover



Joined: 20 Dec 2004
Posts: 542
Location: LooseChange911.com... the WTC attacks were done by the US Gov't... the official story is a lie...

PostPosted: Fri Feb 02, 2007 1:19 pm    Post subject: Re: script to help an airline pilot? Reply with quote

Also what's up with flying in the past???..."02/04/2006"...sorry, I just noticed the "06"...but here's my current version...
...without the date...
_________________

Home • Click image! • Blog
Back to top
View user's profile Send private message Visit poster's website
BoBo
Guest





PostPosted: Fri Feb 02, 2007 3:05 pm    Post subject: Reply with quote

Looks like you've done an excellent job JSLover.
Let's see if the next request will be something like: "script to help an rodeo cowboy?" Very Happy
Back to top
mitchican



Joined: 02 Feb 2007
Posts: 10

PostPosted: Fri Feb 09, 2007 12:16 am    Post subject: Reply with quote

wow, i leave for a trip and get back and voila! i'm so excited i just quickly read through the replies and haven't even tried the script out yet.

as far as the flying in the past and 'spacing' issues; i took a current trip and replaced in a notepad the names of the innocent as well as the dates. i wasn't sure whether posting flights in advance with the crewmembers names, hotel phone numbers, etc was a good idea. trying to be security conscious.


i will get back asap!

thank you


p.s. wonder why i didn't get any emails regarding replies to the topic?
Back to top
View user's profile Send private message
mitchican



Joined: 02 Feb 2007
Posts: 10

PostPosted: Fri Feb 09, 2007 1:13 am    Post subject: Re: script to help an airline pilot? Reply with quote

I downloaded the parse flight info.ahk and got an error at line 13...

JSLover wrote:
OK questions...in all that mumbo jumbo, I see 1 date "FEB 02, 06"...not even in m/d/yy format...how do you attach each flight to a date? How do you know..."02/04/2006 3048 OMA HOU 1500 1724" is on "02/04/2006"??? Since one date is in the input, I can only assume that all flights are on the same date...until the input gives me another date to base more output on...can you highlight the key parts?...for example...
    date, flight number, departure airport, arrival airport, dep time, arr time
Code:
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
H123K   020206   CA01      L      A1234   DOE , JOHN       
I9A71   030206   FO01      L      G6420   DALE , WILLIAM       
H123K   020206   FA01      L      G9876   SMITH ,  JANE    67   
 3048   140   04      LRJ   OMA   HOU   1500   S   1724         0224
Code:
02/04/2006 3048 OMA HOU 1500 1724

...the 2nd column (above 140) could be a date, but none of them say "02/04/2006"...also why does it list other pilots?...why is the line with all the info by itself, not lining up like the rest?...where are you copying from...can you link to the website...or save a copy & upload it so we can see the source...perhaps there's a better way to copy so you don't need to wade thru this...or perhaps the site has a "download csv" option that is better formatted...if this website is who you fly for, perhaps you can talk to your boss (or web dept) & get the info in a parseable format (csv, tsv)...or perhaps a printable format that is useful...if I could see this jumble on the source site, I could understand it more...currently I could write a parser that strips all lines not "beginning with a single space & 4 digits"...but that ain't very sophisticated...then I would parse each of the lines left, spinning the info into the order you want, but I still don't know what date each line is for...


Here goes:
arrg having problems just editing this post... this is one flight on day one:
Code:
 2799   010   02      SLJ   IAH   ICT   0825   S   1008         0143      0517         
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
I959K   020207   CA01      L      A3522   DIRT , JOE       
I959KA   020207   FO01      L      T4037   JOHNSON , JIM       
I9G53A   020207   FA01      R      A3153   WALKER , TEXAS R.    1172   
Exception Code   Description
673   

from the first line
flight number=2799
??=010
date (day)=02
aircraft type =slj
dep=iah
arr=ict
dep time=0825
scheduled/actual time=s
arr time=1008
flight time=0143
aircraft tail number=0517

All data below that is crewmember information.

Not sure why the colums are getting skewed (i'll attach the original to the post.)
The start date is listed as you mentioned at the top and in the format you discussed.

The 'date' information above 140 is actually the day the 'pairing' starts for each crewmember in ddmmyy.

It would take an act of congress to get the code changed or formatted.

I can get you the web page source info if you still need that.

Also here is a link that i use to 'parse' the data to get it to something manageable: (choose continental express web ccs format and past attached text)
http://www.logbookpro.com/apdl.aspx

Hope this helps!

Thanks again for your help.
-mitchican


I can't figure out how to attach a file, I'll try pm'ing both of you.


Last edited by mitchican on Fri Feb 09, 2007 10:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Fri Feb 09, 2007 1:59 am    Post subject: Reply with quote

Code:
Loop,Parse,Clipboard,`n,`r`n%A_Space%%A_Tab%
   if (RegExMatch(A_LoopField,"(\d+)\s+(\d+)\s+(\d+)\s+(\w+)\s+(\w+)\s+(\w+)\s+(\d+)\s+([sSaA])\s+(\d+)\s+(\d+)\s+(\d+)",Field))
      Result .= Field3 . " " . Field1 . " " . Field5 . " " . Field6 . " " . Field7 . " " . Field8 . "`r`n"
Clipboard := Result


Still not perfect, as it can only print the day, not the full date like you demonstrated in your first post... but is there a reliable way to find out the month and year, apart from inferring that it's in this or the next month and year (using the current date, comparisons, and additions)?
Back to top
View user's profile Send private message
mitchican



Joined: 02 Feb 2007
Posts: 10

PostPosted: Fri Feb 09, 2007 2:41 am    Post subject: Reply with quote

jonny wrote:
Code:
Loop,Parse,Clipboard,`n,`r`n%A_Space%%A_Tab%
   if (RegExMatch(A_LoopField,"(\d+)\s+(\d+)\s+(\d+)\s+(\w+)\s+(\w+)\s+(\w+)\s+(\d+)\s+([sSaA])\s+(\d+)\s+(\d+)\s+(\d+)",Field))
      Result .= Field3 . " " . Field1 . " " . Field5 . " " . Field6 . " " . Field7 . " " . Field8 . "`r`n"
Clipboard := Result


Still not perfect, as it can only print the day, not the full date like you demonstrated in your first post... but is there a reliable way to find out the month and year, apart from inferring that it's in this or the next month and year (using the current date, comparisons, and additions)?


The only place I can find a date is the first line (from first post)
Code:
H123K   CA01    FEB 02, 06   


That's the only place I see. Wish I could attach the text file.
Back to top
View user's profile Send private message
mitchican



Joined: 02 Feb 2007
Posts: 10

PostPosted: Fri Feb 09, 2007 2:57 am    Post subject: Reply with quote

I noticed some inconsistencies in format from my posts today, I guess because the trip already occurred some of the information changed. Any way this is a trip in the future and should show up in the post with the correct spacing (fingers crossed)

Code:
I986W   CA01    Feb 10, 07   
   
Flt   Seq   Rest
DT   Ferry
DH   Eqp   Org   Dst   Dpt
Bref   T   Arr
Dbref   Ov
Po   Au   Fltm   Duty   Tail
Layo   Guar   Total   
 2365   010   10      XRJ   IAH   PSP   0940   S   1110         0330      0137         
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
I986W   100207   CA01      L      E3552   SMITH , JOHN       
I986W   100207   FO01      L      G6031   DIRT , JOE       
I986W   100207   FA01      L      G6517   HUGINKISS , AMANDA    1034   
 2957   020   10      XRJ   PSP   IAH   1137   S   1639         0302      0137         
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
I986W   100207   CA01      L      E3552   SMITH , JOHN       
I986W   100207   FO01      L      G6031   DIRT , JOE       
I986W   100207   FA01      L      G6517   HUGINKISS , AMANDA    1034   
 2978   030   10      LRJ   IAH   HRL   1810   S   1922         0112      0964         
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
I986W   100207   CA01      L      E3552   SMITH , JOHN       
I986W   100207   FO01      L      G6031   DIRT , JOE       
I986W   100207   FA01      L      G6517   HUGINKISS , AMANDA    1034   
 DP01   040   S2               0840   S   1937         0744   1057   1123      0744   
   
    City   Code   Name   Phone
Hotel   HRL   LAQ   LAQUINTA*    9564286888
 2483   050   11      ERJ   HRL   IAH   0745   S   0859         0114               
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
I986W   100207   CA01      L      E3552   SMITH , JOHN       
I986W   100207   FO01      L      G6031   DIRT , JOE       
I986W   100207   FA01      L      G6517   HUGINKISS , AMANDA    1034   
 2483   060   11      ERJ   IAH   LIT   1005   S   1123         0118               
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
I986W   100207   CA01      L      E3552   SMITH , JOHN       
I986W   100207   FO01      L      G6031   DIRT , JOE       
I986W   100207   FA01      L      G6517   HUGINKISS , AMANDA    1034   
 2447   070   11      ERJ   LIT   IAH   1155   S   1329         0134               
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
I986W   100207   CA01      L      E3552   SMITH , JOHN       
I986W   100207   FO01      L      G6031   DIRT , JOE       
I986W   100207   FA01      L      G6517   HUGINKISS , AMANDA    1034   
 2481   080   11      XRJ   IAH   PIT   1620   S   2015         0255               
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
I986W   100207   CA01      L      E3552   SMITH , JOHN       
I9K19   110207   FO01            OPEN   Empty,       
I986W   100207   FA01      L      G6517   HUGINKISS , AMANDA    1034   
 DP02   090   R2               0700   S   2030         0701   1230   0915      0701   
   
    City   Code   Name   Phone
Hotel   PIT   HOL   HOLIDAY INN*    4122623600
Limo   PIT      Holiday Inn -- **PICKUP: Gnd Tranp Door 8 Red Zone**   412-262-3600
OPS   PIT         
 2935   100   12      ERJ   PIT   EWR   0630   S   0800         0130               
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
I986W   100207   CA01      L      E3552   SMITH , JOHN       
I9K19   110207   FO01            OPEN   Empty,       
I986W   100207   FA01      L      G6517   HUGINKISS , AMANDA    1034   
 2369   110   12      ERJ   EWR   RIC   0830   S   1010         0140               
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
I986W   100207   CA01      L      E3552   SMITH , JOHN       
I9K19   110207   FO01            OPEN   Empty,       
I986W   100207   FA01      L      G6517   HUGINKISS , AMANDA    1034   
 DP03   120   M2               0545   S   1025         0310   0440   1850      0310   
   
    City   Code   Name   Phone
Hotel   RIC   RAD   RADISSON HIST*    8046449871
 2160   130   13      XRJ   RIC   IAH   0600   S   0827         0327               
   
Pairing Number   Pairing Date   Position   DH   Reserve   Aug   Emp Id   Name   Sys Seniority
I986W   100207   CA01      L      E3552   SMITH , JOHN       
I9K19   110207   FO01            OPEN   Empty,       
I986W   100207   FA01      L      G6517   HUGINKISS , AMANDA    1034   
 DP04
   140                  0515   S   0842         0327   0427         0327   
Pairing Totals   TAFB   DHD   Flight Time   Guar Time   Pay Time
    7202      2122      2122
Crew Member Positions            Other Information
Pos #   Emp NO   Reserve   Name            Type   DP#   City   Code   Name   Phone
CA01   E3552       JOHN SMITH                Hotel   DP01   HRL   LAQ   LAQUINTA*    9564286888
FA01   G6517       AMANDA A HUGINKISS             Hotel   DP02   PIT   HOL   HOLIDAY INN*    4122623600
                     Limo      PIT      Holiday Inn -- **PICKUP: Gnd Tranp Door 8 Red Zone**   412-262-3600
                     Ops      PIT         
                     Hotel   DP03   RIC   RAD   RADISSON HIST*    8046449871


yep, that looks just like it does in clipboard.

this is what it looks like on the webpage:


each arrow next to flight number is a pull down to show corresponding crew information.
Back to top
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Fri Feb 09, 2007 4:55 am    Post subject: Reply with quote

Alright, here we go. And remember, you can assign this whole thing to a hotkey in a persistent script if you want, I just find it easier to run the script each time.

All the new code before the loop is just to handle the date.

Code:
RegExMatch(Clipboard,"i)(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC) \d\d, (\d\d)",Date)
month := 0
year  := "20" . Date2
if IsLabel(Date1)
   Goto %Date1%
else
   Goto JAN
DEC:
Month++
NOV:
month++
OCT:
month++
SEP:
month++
AUG:
month++
JUL:
month++
JUN:
month++
MAY:
month++
APR:
month++
MAR:
month++
FEB:
month++
JAN:
month++

SetFormat,float,02.0
month += 0.0

Loop,Parse,Clipboard,`n,`r`n%A_Space%%A_Tab%
   if (RegExMatch(A_LoopField,"(\d+)\s+\d+\s+(\d+)\s+\w+\s+(\w+)\s+(\w+)\s+(\d+)\s+[sSaA]\s+(\d+)",Field))
      Result .= month . "/" . Field2 . "/" year
                      . " " . Field1 . " " . Field3 . " " . Field4
                      . " " . Field5 . " " . Field6 . "`r`n"
Clipboard := Result
Back to top
View user's profile Send private message
mitchican



Joined: 02 Feb 2007
Posts: 10

PostPosted: Fri Feb 09, 2007 5:22 pm    Post subject: Reply with quote

Thanks for the quick reply. I saved the code as an .ahk extension and executed it after copying my schedule from the webpage, I also tried pasting it into notepad and then executing the script. I am getting an error:



Am I doing something wrong?

Again, I really appreciate the help.

-mitchican
Back to top
View user's profile Send private message
Helpy
Guest





PostPosted: Fri Feb 09, 2007 5:34 pm    Post subject: Reply with quote

mitchican wrote:
Am I doing something wrong?
Not really, just upgrade your version of AutoHotkey...
Back to top
mitchican



Joined: 02 Feb 2007
Posts: 10

PostPosted: Fri Feb 09, 2007 9:41 pm    Post subject: Reply with quote

Swwwweeeet!!!!!!

Thank you, thank you and thank you.


-mitchican
Back to top
View user's profile Send private message
mitchican



Joined: 02 Feb 2007
Posts: 10

PostPosted: Sun Jul 20, 2008 4:59 am    Post subject: Reply with quote

Would you guys be willing to help me again? I've looked at the script jonny wrote and have tried to understand how it does what it does so I could modify the existing code to parse a new format; but I am not making much (if any) progress. I think this format should be easier to parse:

Code:
Trip PC76 on 07/21/2008     
Print as is:    [Print this page.]           Print in text size:    
6 8 10 12
      [Print with selected font size.]
Trip Fleet:    
Class:    
Trip Type:    
   
Time Away From Base:    5435
     Totals
Date    Flight    Depart    Arrive    Eq    Block    Ground    Wrk Codes    Block    Duty    Credit    Overfly
          Rpt 0700                                            
21 Jul       2607    PHX 0800    LAX 0920    300    120    20                 150       
21 Jul       2607    LAX 0940    SFO 1055    300    115    25                 140       
21 Jul       723    SFO 1120    SAN 1245    300    125    30                 160       
21 Jul       723    SAN 1315    ELP 1500    300    145    1625                 200       
               Rls 1530                        545    830    650       
ELP:1525    Hotel: HI Airport #(915)772-3332 Trans: #    
          Rpt 0655                                            
22 Jul       2594    ELP 0725    ABQ 0815    700    50    25                 100       
22 Jul       2594    ABQ 0840    MDW 1120    700    240    30                 320       
22 Jul       2594    MDW 1150    MHT 1400    700    210    1520                 250       
               Rls 1430                        540    735    670       
MHT:1420    Hotel: Hyatt (L) #(603)886-1450 Trans: Hotel Shuttle    
          Rpt 0450                                            
23 Jul       2631    MHT 0520    BWI 0650    700    130    25                 170       
23 Jul       2631    BWI 0715    IND 0900    700    145    25                 200       
23 Jul       2631    IND 0925    PHX 1305    700    340    0                 430       
               Rls 1335                        655    845    800       
 
 
1       9999  999  CA-01   O  SMITH JOHN
2       90000  6800  FO-01   O   DIRT, JOE
   
Total:    1820    2450    2120       
Carry Out:    0         0       


to

Code:
07/21/2008 2607 PHX 0800 LAX 0920
07/21/2008 2607 LAX 0940 SFO 1055
07/21/2008  723 SFO 1120 SAN 1245
07/21/2008  723 SAN 1315 ELP 1500
07/22/2008 2594 ELP 0725 ABQ 0815
07/22/2008 2594 ABQ 0840 MDW 1120
07/22/2008 2594 MDW 1150 MHT 1400
07/23/2008 2631 MHT 0520 BWI 0650
07/23/2008 2631 BWI 0715 IND 0900
07/23/2008 2631 IND 0925 PHX 1305


Your tireless efforts and expertise are much appreciated!

-mitchican
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group