Jump to content

Recommended Posts

  • Developers
Posted (edited)
  On 8/16/2013 at 2:26 PM, wraithdu said:

It might be worthwhile to have Jon mention this and a link to the beta section in his AutoIt Beta announcements.

Yea, or I could also decide to publish the updates now ....  options... options ... choices ...choices :)

Edited by 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.
  :)

Posted
  On 8/16/2013 at 2:31 PM, Jos said:

Yea, or I could also decide to publish the updates now ....  options... options ... choices ...choices :)

So long as there is a release after the next version of AutoIt is published, then fine by me. I would like to release the next SciTE Jump using AutoIt v3.3.10.0 that's why.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

Hope it's a right topic to ask :
when you type some func($param_1, $param_1, $param_1 ...) in SciTE, after typing every ","  you get pop up (calltips?), but in case :

WinGetTitle()
StringRegExp()
StringRegExpReplace()

and maybe others, after typing comma pop up's disappear

and another - since it's a pain - can some option like "GenerateUnDeclaredVarsList" be added to the SciTE Tools menu ?

Posted

You can use this directive to indicate UnDeclaredVars

#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w- 7

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

do you type:  WinGetTitle(  and wait a second or WinGetTitle() and waiting ........ ?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

If you have "," in a string then this can happen sometimes.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

You mean something like this

WinGetTitle('test1,',
WinGetTitle('test1,test2',

Strange: Only the first example has this problem

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

  On 8/24/2013 at 1:07 PM, mlipok said:

do you type:  WinGetTitle(  and wait a second or WinGetTitle() and waiting ........ ?

i try to replace commas in already typed func($param_1, $param_2,  $param_3)  and  pop up not alwais appear

 

  On 8/24/2013 at 1:09 PM, guinness said:

If you have "," in a string then this can happen sometimes.

thanks, it seems the case

  Quote
mlipok

Posted 17 minutes ago

You can use this directive to indicate UnDeclaredVars

#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w- 7

i know, but my laziness tell me to auto it :)

Posted (edited)
  On 8/24/2013 at 1:28 PM, Iczer said:

i know, but my laziness tell me to auto it :)

 

For me, this method is simpler, compile or run by F5, and instantly see where there are any errors. Then just press F4 and SciTE has moved in the right place, so you can immediately solve the problem.

Edited by mlipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

for this example

WinMenuSelectItem('title1,','text','Item')

try to delete this comma ','text'  and press the comma key again - calltips does not appear

try to delete this comma ,'Item'  and press the comma key again - calltips appear

try to add new parameter after 'Item' by pressing the comma - calltips appear

In summary, CALLTIP does not appear if the previous parameter of type STRING, ends with a comma, like 'Title1,' in example

Edited by mlipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted

  On 8/24/2013 at 12:43 PM, Iczer said:

and another - since it's a pain - can some option like "GenerateUnDeclaredVarsList" be added to the SciTE Tools menu ?

 

2 options:

1 is what mlipok stated to have au3check report the errors.

2. Have Tidy generate a report about your script. Par of the report is the location where a variable is defined and used.

Both require the full version of SciTE4AutoIt3 that comes as an extra installer.

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

Posted
  On 8/24/2013 at 2:05 PM, mlipok said:

for this example

WinMenuSelectItem('title1,','text','Item')

try to delete this comma ','text'  and press the comma key again - calltips does not appear

try to delete this comma ,'Item'  and press the comma key again - calltips appear

try to add new parameter after 'Item' by pressing the comma - calltips appear

In summary, CALLTIP does not appear if the previous parameter of type STRING, ends with a comma, like 'Title1,' in example

 

@Jos

Is this error due to the operation of SciTE (Scintilla), or whether it is in terms of your ability to influence SciTE4AutoIT.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted
  On 8/25/2013 at 6:58 AM, mlipok said:

@Jos

Is this error due to the operation of SciTE (Scintilla), or whether it is in terms of your ability to influence SciTE4AutoIT.

This has been in the LUA script logic since we implemented the automatic popup of the calltips.

Reason is that the Style of the type character isn't known in the OnChar() LUA call.

I have been playing with this today and found a way around this problem.

There is no easy solution for highlighted keyword in the CallTip as SciTE simply counts comma's, so that remains.

Give the Beta version of "AutoItAutoComplete.lua" a test to see if that fixes it.

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

Posted

works like a charm

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 4 weeks later...
Posted (edited)

look in scite

MENU: Tools/Debug ...

MENU: Tools/Trace: ...

MENU: Tools/Debug Trace: ...

 

for example

MENU: Tools/Trace: Add Func trace line

 
this tool EDIT: are not created for  Create trace for Function names
 
 
Func _test($test = 1)
    ConsoleWrite('@@ (45) :(' & @MIN & ':' & @SEC & ') _test()' & @CR) ;### Function Trace
;~ ...
;~ ...
;~ ...
EndFunc ;==>_test

 

Can this function do that something:

Func _test($test = 1): START
    ConsoleWrite('@@ (45) :(' & @MIN & ':' & @SEC & ') _test():START' & @CR) ;### Function Trace : START
;~  ...
;~  ...
;~  ...
    ConsoleWrite('@@ (50) :(' & @MIN & ':' & @SEC & ') _test():END' & @CR) ;### Function Trace : END
EndFunc   ;==>_test

but If the last line in a function begins with "Return"

Func _test($test = 1): START
    ConsoleWrite('@@ (45) :(' & @MIN & ':' & @SEC & ') _test():START' & @CR) ;### Function Trace : START
;~  ...
;~  ...
;~  ...
    ConsoleWrite('@@ (50) :(' & @MIN & ':' & @SEC & ') _test():END' & @CR) ;### Function Trace : END
    Return $var
EndFunc   ;==>_test
Edited by mlipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

No, because the return doesn't have to be on the last line. The best way to do that would be to add a wrapper function like:

Func _test($test = 1)
    ConsoleWrite('@@ (45) :(' & @MIN & ':' & @SEC & ') _test():START' & @CR) ;### Function Trace : START

    Local $ret = __WRAPPED__test($test)
    Local $error = @error, $extended = @extended

    ConsoleWrite('@@ (50) :(' & @MIN & ':' & @SEC & ') _test():END' & @CR) ;### Function Trace : END
    Return SetError($error, $extended, $ret)
EndFunc

Func __WRAPPED__test($test = 1)
;~  ...
;~  ...
;~  ...
    Return SetError(1, 42, $test)
EndFunc   ;==>_test
Posted
It depends on the "style of programming."
I always try to avoid the use of "Return", in the middle of a function.
 
 
Even if you do not have this habit, it usually functions are completed in the last line.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

  On 9/17/2013 at 12:49 PM, mlipok said:

It depends on the "style of programming."

I always try to avoid the use of "Return", in the middle of a function.

 

 

Even if you do not have this habit, it usually functions are completed in the last line.

That's far from true, what happens on an error? It jumps out of the function somewhere that's usually no where near the last line, sometimes it's within the first few lines on most of the UDFs included with AutoIt. I think the current process, where it tells you it is entering a function, should tell the experienced porgrammer wehre to start looking if things go wrong.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

  Reveal hidden contents

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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