Jump to content
Sign in to follow this  
Spacial

! Pling not recognised XP

Recommended Posts

I'm on my W7 machine now. As I said earlier, the script, as written in the tutorial, works fine on W7

Run the XP version of the script and it works there as well.

Can I assume the differences between the XP script and the W7 script will be clearer later on?

Also, I ran the script from Scite as you said. It ran sample script, it returned an error panel:

2zppk7a.jpg

I edited it, creating new lines for each command, so it looked more like yours, it worked as the Sample script, but I didn't see any numbers

Share this post


Link to post
Share on other sites

The error message you see is caused by a copy&paste error of your browser by putting everything into a single line.

When you run the script from SciTE by pressing F5 then you should see the output in the lower pane of SciTE.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2019-08-19 - Version 1.4.13.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2019-07-24 - Version 1.3.6.0) - Download - General Help & Support - Example Scripts - Wiki
Outlook Tools (NEW 2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Taks Scheduler (NEW 2019-10-09 - Version 0.9.0.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Thank you for the clarification. Pressing F5 did the trick.

>"C:Program FilesAutoIt3SciTE..autoit3.exe" /ErrorStdOut "C:Documents and SettingsfredMy DocumentsDownloadsMacrosNuPad XP.au3"    
1
2
3
4
5
6
>Exit code: 0    Time: 1.337
(Edit, tried a second time and this came.

Can you explain what this means? Or indicate where I can find out.

Apologies if I seem to be a bit slow on the uptake. It just isn't as obvious to me as it seems to be to you.

Edited by Spacial

Share this post


Link to post
Share on other sites

This means that the ConsoleWrite statements up to the one writing "4" to the console have been executed. As "5" has not been written to the Console your script "hangs" on the preceding statement.
This is

WinWaitActive("[Class:#32770]")

WinWaitActive waits for a certain window to appear and to be active. So either the Windows doesn't exist (or we specified an invalid Window title) or it isn't active.
Let's split this function call into two. Replace the line above in your script with the following lines:

WinWait("[Class:#32770]") ; Wait for the Window 
ConsoleWrite("Window exists" & @CRLF)
WinActivate("[Class:#32770]") ; Activate the Window
ConsoleWrite("Window activated" & @CRLF)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2019-08-19 - Version 1.4.13.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2019-07-24 - Version 1.3.6.0) - Download - General Help & Support - Example Scripts - Wiki
Outlook Tools (NEW 2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Taks Scheduler (NEW 2019-10-09 - Version 0.9.0.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

I see:

>"C:Program FilesAutoIt3SciTE..autoit3.exe" /ErrorStdOut "C:Documents and SettingsfredMy DocumentsDownloadsMacrosNuPad XP.au3"    
1
2
3
4
Window exists
Window activated
5
6
>Exit code: 0    Time: 1.833

 

Share this post


Link to post
Share on other sites

This means that the script has successfully executed all statements. All fine now?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2019-08-19 - Version 1.4.13.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2019-07-24 - Version 1.3.6.0) - Download - General Help & Support - Example Scripts - Wiki
Outlook Tools (NEW 2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Taks Scheduler (NEW 2019-10-09 - Version 0.9.0.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki

 

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  

×
×
  • Create New...