Jump to content

[BUG] If then


Recommended Posts

if you hit F5 then it does show you the error, but if you hit F7 then it lets you compile the script & does not display any errors. Result: you run the script & if it executes this part of the code you get error message box.

hopefully you will fix this in the future so that it will error if you hit F7

Opt("WinTitleMatchMode", 2)

$win = ' - Mozilla Firefox'

if WinActive($win) Send('^w')
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
Share on other sites

Sorry But when I hit F7, i get error message that says

C:\err.au3(5,30) : ERROR: single line 'If' missing 'Then'.

if WinActive($win) Send('^w')

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\upload\Pcap Poroject\err.au3 - 1 error(s), 0 warning(s)

SciTE Version 1.78

AutoIt Version 3.2.13.13 (beta)

Link to comment
Share on other sites

  • Developers

if you hit F5 then it does show you the error, but if you hit F7 then it lets you compile the script & does not display any errors. Result: you run the script & if it executes this part of the code you get error message box.

hopefully you will fix this in the future so that it will error if you hit F7

Opt("WinTitleMatchMode", 2)

$win = ' - Mozilla Firefox'

if WinActive($win) Send('^w')

Compile doesn't do a syntax check, just lexing, and has never done so.

That is why, when using the full SciTE4Autoit3 version, we run au3check to filters most of the errors out.

So.. bottomline : You are responsible for doing proper testing before compiling the script!

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...