Sign in to follow this  
Followers 0
mikezwet2

XP to Vista - Script not working anymore

6 posts in this topic

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?

Share this post


Link to post
Share on other sites

If you post the script. it will be alot easier for us to help you. :)

Regards

Share this post


Link to post
Share on other sites

The thing it does is copy payment information from a database programm into the online banking form.

Sorry the comments are dutch...

; ----------------------------------------------------------------------------
;
; 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)

Share this post


Link to post
Share on other sites

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.

:)

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0