Jump to content
Sign in to follow this  
Bagel

Previously working script broken after Scite update?

Recommended Posts

Okay, I have a script I have been using for some time. It was working just fine prior to upgrading from SciteLite to the full version. But now when I run the script I get this error

error: ToggleLayout() called by a previous line with 0 arg(s). Min = 1. First previous line calling this Func is 67.

This is after calling this line:

HotKeySet( "^+x", "ToggleLayout" )

The function isn't called anywhere else above the error line. Again, no changes were made to the script prior to moving to the full SciTE. How do I turn off whatever error checking the program is doing to throw this error? I really need to be able to use this script and had wanted to use the full version of scite to customize font and color schemes for my eyes.

Thank you

Share this post


Link to post
Share on other sites

You have an argument in Func ToggleLayout (...)

Remove that, it is not allowed with HotKeySet (...), the function called must have 0 arg.

Share this post


Link to post
Share on other sites

Okay, thank you. I had read that in other searches but misunderstood it and didn't think it applied to me. But it struck me as a very odd error since running before in SciteLite never gave me any problems.

 

Edited by Bagel

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...