Jump to content
Sign in to follow this  
Yjuq

modify au3check

Recommended Posts

Yjuq

Hello :)

Is here a way to modify the au3check for own purposes?

I tried to use callback functions they return other callback functions. Cuz I'm a bit lazy, I wanna execute them with double ().

#AutoIt3Wrapper_Run_Au3Check=n

$var = callback

ConsoleWrite($var()() & @CRLF) ; <-- this works :)

Func callback()
    Return test
EndFunc

Func test()
    Return "test"
EndFunc

But this only works if I disable the Au3Check completly. The Au3Check doesn't allow me to do that. So I wanna change them that they need to accept it. ^^

Is here a way to do that?

Share this post


Link to post
Share on other sites
iamtheky

?

$var = callback

ConsoleWrite(execute("$var()()") & @CRLF) ; <-- this works :)

Func callback()
    Return test
EndFunc

Func test()
    Return "test"
EndFunc

 


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites
Yjuq

This isn't an answer on my question. I like to know how I can change the functionality of the Au3Check for this case. I like the Au3Check and don't want to miss them...

And I'm not gonna go and put a execute function around every part where I use this construct. o.O

Share this post


Link to post
Share on other sites
iamtheky
41 minutes ago, Yjuq said:

But this only works if I disable the Au3Check completly.

I was really just disputing this.

 

49 minutes ago, Yjuq said:

So I wanna change them that they need to accept it.

and I might have answered that one :)


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites
Yjuq
2 minutes ago, iamtheky said:

I was really just disputing this.

Well,... My english isn't the best. If here any communications issues or If I don't express myself well enough let me know.

My personal problem with the Au3Check is, that they mark me the code in the start post as an error. That shouldn't be the case in my opinion since AutoIt can interpreter constructions like this. Is it possible to change the functionality of the Au3Check somehow?

10 minutes ago, iamtheky said:

and I might have answered that one :)

Yea... This works because the Au3Check ignore Strings. But this isn't the expected solution for my question. :(

Share this post


Link to post
Share on other sites
iamtheky
6 minutes ago, Yjuq said:

Well,... My english isn't the best.

that will work out well, my answers arent the best. 

Your english and/or translation is fine, and the scope now narrowly defined.


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

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  

×