mikezwet2 Posted May 25, 2008 Share Posted May 25, 2008 Hi, I use a script in XP. After change to Vista is doesn't work anymore. First is fails to winactivate a screen and when i compile the script under vista it gives the message: "Line 1: Error parsing Function call" Whats happend? Zwetsloot Kunststof Kozijnen Fabriek and Mike Zwetsloot Link to comment Share on other sites More sharing options...
mikezwet2 Posted May 25, 2008 Author Share Posted May 25, 2008 i already tried to increase the sleep periods cause i thought the computer runs to fast true the script. (its a very simple made script by me as amateur ) Zwetsloot Kunststof Kozijnen Fabriek and Mike Zwetsloot Link to comment Share on other sites More sharing options...
newbiescripter Posted May 25, 2008 Share Posted May 25, 2008 If you post the script. it will be alot easier for us to help you. Regards Link to comment Share on other sites More sharing options...
mikezwet2 Posted May 25, 2008 Author Share Posted May 25, 2008 The thing it does is copy payment information from a database programm into the online banking form. Sorry the comments are dutch... expandcollapse popup; ---------------------------------------------------------------------------- ; ; AutoIt Version: 3.1.0 ; Author: Mike ; ; Script Function: ; ; ; ---------------------------------------------------------------------------- Opt("TrayIconDebug", 1); Curser on systray icon will give current script line. #include <Misc.au3> $dll = DllOpen("user32.dll") ;/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\-- veld BEDRAG EURO;/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\-- ; File maker gaat al naar eerste veld : BEDRAG EURO Sleep ( 100 ) Send ("^a"); selecteer alles Sleep ( 100 ) Send ("^c"); om BEDRAG EURO te kopieren Sleep ( 100 ) WinActivate("Mijn Postbank.nl", "",); opent postbank venster Sleep ( 150 ) Send("{TAB}"); gaat naar veld Bedrag Euro Sleep ( 100 ) Send ("^v"); om BEDRAG EURO te plakken Sleep ( 100 ) ;/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\-- veld BEDRAG CENTEN;/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\-- WinActivate("FileMaker Pro", "",); opent filemaker pro weer. Sleep ( 100 ) Send("{TAB}"); gaat naar veld BEDRAG CENTEN Sleep ( 100 ) Send ("^a"); selecteer alles Sleep ( 100 ) Send ("^c"); om BEDRAG CENTEN te kopieren Sleep ( 100 ) WinActivate("Mijn Postbank.nl", "",); opent postbank venster Sleep ( 150 ) Send("{TAB}"); gaat naar eerste veld BEDRAG CENTEN Sleep ( 100 ) Send ("^v"); om BEDRAG CENTEN te plakken Sleep ( 100 ) ;/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\-- Selecteerd tweede rekening in popdown menu;/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\-- Send("{TAB}"); gaat naar veld REKENING Sleep ( 150 ) Send("{DOWN}") ;/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\-- veld REKENING NUMMER;/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\-- WinActivate("FileMaker Pro", "",); opent filemaker pro weer. Sleep ( 100 ) Send("{TAB}"); gaat naar veld REKENING NUMMER Sleep ( 100 ) Send ("^a"); selecteer alles Sleep ( 100 ) Send ("^c"); om REKENING NUMMER te kopieren Sleep ( 100 ) WinActivate("Mijn Postbank.nl", "",); opent postbank venster Sleep ( 150 ) Send("{TAB}"); gaat naar eerste veld REKENING NUMMER Sleep ( 100 ) Send ("^v"); om REKENING NUMMER te plakken Sleep ( 100 ) ;/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\-- veld TNV;/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\-- WinActivate("FileMaker Pro", "",); opent filemaker pro weer. Sleep ( 100 ) Send("{TAB}"); gaat naar veld TNV Sleep ( 100 ) Send ("^a"); selecteer alles Sleep ( 100 ) Send ("^c"); om TNV te kopieren Sleep ( 100 ) WinActivate("Mijn Postbank.nl", "",); opent postbank venster Sleep ( 150 ) Send("{TAB}"); gaat naar eerste veld TNV Sleep ( 100 ) Send ("^v"); om REKENING NUMMER te plakken Sleep ( 100 ) ;/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\-- veld OMSCHRIJVING 1;/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\-- WinActivate("FileMaker Pro", "",); opent filemaker pro weer. Sleep ( 100 ) Send("{TAB}"); gaat naar veld OMSCHRIJVING 1 Sleep ( 100 ) Send ("^a"); selecteer alles Sleep ( 100 ) Send ("^c"); om OMSCHRIJVING 1 te kopieren Sleep ( 100 ) WinActivate("Mijn Postbank.nl", "",); opent postbank venster Sleep ( 150 ) Send("{TAB 9}"); gaat naar eerste veld OMSCHRIJVING 1 9X TAB Sleep ( 100 ) Send ("^v"); om OMSCHRIJVING 1 te plakken Sleep ( 100 ) ;/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\-- veld OMSCHRIJVING 2;/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\--/\-- WinActivate("FileMaker Pro", "",); opent filemaker pro weer. Sleep ( 100 ) Send("{TAB}"); gaat naar veld OMSCHRIJVING 2 Sleep ( 100 ) Send ("^a"); selecteer alles Sleep ( 100 ) Send ("^c"); om OMSCHRIJVING 2 te kopieren Sleep ( 100 ) WinActivate("Mijn Postbank.nl", "",); opent postbank venster Sleep ( 150 ) Send("{TAB}"); gaat naar eerste veld OMSCHRIJVING 2 Sleep ( 100 ) Send ("^v"); om OMSCHRIJVING 2 te plakken Sleep ( 100 ) Send("{TAB}"); drukt tab en komt op "Opslaan nieuwe opdracht" Send("{ENTER}"); drukt op enter en slaat boeking op. Volgende lege boeking staat open. WinActivate("FileMaker Pro", "",); opent filemaker pro weer. DllClose($dll) Zwetsloot Kunststof Kozijnen Fabriek and Mike Zwetsloot Link to comment Share on other sites More sharing options...
MHz Posted May 26, 2008 Share Posted May 26, 2008 I fail to see how your script can run on any OS as to the syntax error that exist within it. For example, the code below causes AutoIt to exit with a fatal error as an extra comma is present for another parameter that allow at a maximum of 2 parameters anyway. The comma should not be there. WinActivate('title', 'text',) --------------------------- AutoIt Error --------------------------- Line 3 (File "C:\Documents and Settings\Michael\Application Data\AutoIt3\Temp\2008.05.26_xal.au3"): WinActivate('title', 'text',) WinActivate('title', 'text'^ ERROR Error: Error parsing function call. --------------------------- OK ---------------------------Use Au3Check to find the errors and fix them. Link to comment Share on other sites More sharing options...
mikezwet2 Posted May 26, 2008 Author Share Posted May 26, 2008 I fail to see how your script can run on any OS as to the syntax error that exist within it. For example, the code below causes AutoIt to exit with a fatal error as an extra comma is present for another parameter that allow at a maximum of 2 parameters anyway. The comma should not be there. WinActivate('title', 'text',) Use Au3Check to find the errors and fix them. Many Thanks!! It works beter than ever now Funny i never had problems before in XP with this syntax error Zwetsloot Kunststof Kozijnen Fabriek and Mike Zwetsloot 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