tedhill3470 Posted September 6, 2008 Share Posted September 6, 2008 Hello, I'm using an Internal FileMaker Pro 9 script to start an outside third party email application and to also start an AutoIt file to capture the date from the third party application using ControlGetText. The AutoIt file waits until the Outlook sending mail window appears, and then I'd like to import the date into a field of that FileMaker Pro record showing when that record was emailed. However, ControlGetText doesn't work as the FileMaker Pro fields aren't control fields, and I can't seem to find a way to accomplish this. Does anyone have any suggestions? Any help greatly appreciated, TIA CODEWinWaitActive("PDFCreator 0.9.5") $text8 = ControlGetText ("[CLASS:ThunderRT6FormDC]", "" , "ThunderRT6TextBox5") $date2 = StringMid ( $text8 , 5, 2 ) & "/" & StringMid ( $text8 , 7, 2 ) & "/" & StringLeft ( $text8 , 4 ) WinWaitActive ("Outlook Express", "Sending mail") ????? Link to comment Share on other sites More sharing options...
tedhill3470 Posted September 6, 2008 Author Share Posted September 6, 2008 bump Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 6, 2008 Share Posted September 6, 2008 Have you tried the old activate the window and tab around method? It sometimes works. Link to comment Share on other sites More sharing options...
tedhill3470 Posted September 6, 2008 Author Share Posted September 6, 2008 Have you tried the old activate the window and tab around method? It sometimes works. And it worked this time. Thank you for helping me with my first autoit script, Richard. CODEWinWaitActive("PDFCreator 0.9.5") $text8 = ControlGetText ("[CLASS:ThunderRT6FormDC]", "" , "ThunderRT6TextBox5") $date2 = StringMid ( $text8 , 5, 2 ) & "/" & StringMid ( $text8 , 7, 2 ) & "/" & StringLeft ( $text8 , 4 ) ClipPut( "" ) ClipPut( $date2 ) WinWaitActive ("Outlook Express", "Sending mail") WinActivate ("[CLASS:FMPRO7APP]") Sleep( 100 ) Send("{TAB}") Send("^+{V}") Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 7, 2008 Share Posted September 7, 2008 Some simple solutions are the best. Link to comment Share on other sites More sharing options...
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