Sign in to follow this  
Followers 0
PAEz

DLL - Whats Init for? and does PixelSearch work?

12 posts in this topic

Ive done a wrapper for the X dll for JSWin and wondering a couple of things.

What does Init do?  Do I need to call it?...doesnt seem so.

And does pixelsearch sill not work, it was the one thing I couldnt get to work.

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Thanks for the input JohnOne but pixel search was actually broken at one point.

I wasn't able to down the newer AutoIT as I had no data limit at the time but got it now and in the release notes.....

  • Fixed: Crash in AU3_PixelSearch when function fails. 

So its not crashing now, but I don't seem to be able to find any colour?

I'm on 32bit windows 7 if that makes a difference and using the 32bit version of v3.3.10.2.

This is the function call I'm using....

AU3_PixelSearch(rect,0xffffffff,0,1,buf);

I'm sure I've got the rect and buf structures right because rect is the same as what I'm using for AU3_WinGetPos's return value and that's working fine, but its not finding any colours and AU3_Error is returning 1.

Also while I'm here, should colour include an alpha or not?

Also while Im here....

Its a bumma the reg and ini functions where removed....yes I could re implement them, but not having to was great.

And Id still like to know if I have to do anything with init.

Edited by PAEz

Share this post


Link to post
Share on other sites

PixelSearch totally works it was just me, had an error that I just kept not noticing....new day, new eyes, all good now ;)

Now Im just still wondering what init is for.

Share this post


Link to post
Share on other sites

If you've ever wanted to do AutoIt stuff with js (and I mean real JS (V8), not that awful JScript crap) then check the issues for JS Win, I posted it there.....

https://github.com/proog128/jswin/issues/6

..hope I got it right ;)

Thanks for the dll version, cool stuff.

Share this post


Link to post
Share on other sites

In response to your comments about using JSWin and AutoItX to run scripts, this is never going to happen. AutoItX has never been for running scripts and is only meant to expose some of the useful functions of AutoIt to other languages.

Share this post


Link to post
Share on other sites

hehehe...your comment is funny ;)

When did I ever state that it can run AutoIt scripts?

It runs JS scripts that have some of AutoIt's features (all of what AutoItX exposes) and over time Im going to add more features that I want to it (I can add hot keys now and mores to come).

But hey, your free to read what ever you want between the lines :P

Share this post


Link to post
Share on other sites

Please really consider adding the ability to run a script without a command line parameter....I REALLY want it ;)

This was posted on the github issue you linked to by a user with the same username. Is this not you?

Share this post


Link to post
Share on other sites

yes, its me

Share this post


Link to post
Share on other sites

Then was I misunderstanding what you posted?

Share this post


Link to post
Share on other sites

Yeah, I believe so.

I was asking for Js Win to have the ability to run a JS script without having to use a command line parameter declaring what script to run.
I wasnt talking about AutoIt scripts.

We all cool now? ;)

Share this post


Link to post
Share on other sites

Ah that would explain it. I did misunderstand then.

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  
Followers 0