AutoIt Wrapper

Windows specific forum
Warmonger
Enthusiast
Enthusiast
Posts: 156
Joined: Wed Apr 20, 2011 4:24 pm

AutoIt Wrapper

Post by Warmonger »

Here is my AutoIt wrapper for PureBasic. I managed to complete the time consuming typing part, now its available publicly. Rest assure I have not tested every function, and it may have several bugs in it. I would be appreciated it if you submit them to the issue section of the project page. If you have the fix to the problem feel free to submit that as well.

Project Page: http://code.google.com/p/au3wrap/
Its Not A Bug, Its An Undocumented Feature!
Relax Its All Just Ones And Zeros
There Is No Place Like 127.0.0.1 Except ::1
I do things TO my computer, not WITH my computer... I am a nerd.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: AutoIt Wrapper

Post by IdeasVacuum »

looks very good! :mrgreen:
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Warmonger
Enthusiast
Enthusiast
Posts: 156
Joined: Wed Apr 20, 2011 4:24 pm

Re: AutoIt Wrapper

Post by Warmonger »

IdeasVacuum wrote:looks very good! :mrgreen:
Thanks :mrgreen: Updated to R2 which fixes the *szControl parameter for all of the control commands. Was declaring them as long before woops :lol:
Its Not A Bug, Its An Undocumented Feature!
Relax Its All Just Ones And Zeros
There Is No Place Like 127.0.0.1 Except ::1
I do things TO my computer, not WITH my computer... I am a nerd.
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Re: AutoIt Wrapper

Post by electrochrisso »

Good work, I must try this out. :)
Thanks
PureBasic! Purely the best 8)
juror
Enthusiast
Enthusiast
Posts: 228
Joined: Mon Jul 09, 2007 4:47 pm
Location: Courthouse

Re: AutoIt Wrapper

Post by juror »

This kind of addition to the language is great.
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Re: AutoIt Wrapper

Post by electrochrisso »

This kind of addition to the language is great.
Yes. I think that AutoIt and PB are a good match. :)
PureBasic! Purely the best 8)
A M S
User
User
Posts: 58
Joined: Fri Aug 14, 2009 2:26 pm
Location: Afghanistan

Re: AutoIt Wrapper

Post by A M S »

link don't work for me, please upload other place , Merci
Warmonger
Enthusiast
Enthusiast
Posts: 156
Joined: Wed Apr 20, 2011 4:24 pm

Re: AutoIt Wrapper

Post by Warmonger »

A M S wrote:link don't work for me, please upload other place , Merci
Google Code should work for everybody. I don't condone uploading it to another place.

Uploaded R3
- Removed the free function as its not needed
- Au3_Init() has been changed to InitAu3()
Its Not A Bug, Its An Undocumented Feature!
Relax Its All Just Ones And Zeros
There Is No Place Like 127.0.0.1 Except ::1
I do things TO my computer, not WITH my computer... I am a nerd.
A M S
User
User
Posts: 58
Joined: Fri Aug 14, 2009 2:26 pm
Location: Afghanistan

Re: AutoIt Wrapper

Post by A M S »

Either way does not work for me :oops:
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Re: AutoIt Wrapper

Post by electrochrisso »

Either way does not work for me :oops:
Works for me, just downloaded, perhaps you are being blocked. :?:
PureBasic! Purely the best 8)
Warmonger
Enthusiast
Enthusiast
Posts: 156
Joined: Wed Apr 20, 2011 4:24 pm

Re: AutoIt Wrapper

Post by Warmonger »

A M S wrote:Either way does not work for me :oops:
I sent you a alternative link via PM. Have fun! :mrgreen:

Edit: 4/25
Updated to R4 which includes the following changes.

Code: Select all

- Function Prefix Changed To Match Library Default [Function() Is Now AU3_Function()]
- Added Missing ControlTreeView() Function
Its Not A Bug, Its An Undocumented Feature!
Relax Its All Just Ones And Zeros
There Is No Place Like 127.0.0.1 Except ::1
I do things TO my computer, not WITH my computer... I am a nerd.
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: AutoIt Wrapper

Post by Zach »

This could prove useful..

Would we be able to access AutoIt's scripting functionality as well? i.e Variables, Functions, Math operations, etc.

I think many people would love it if we were able to use the scripting aspect of AutoIT inside our own programs, sharing data between the program and scripts being run, etc.. Personally, It would probably help me out immensely with my game if I had an easy to implement scripting language.

I hope you plan on implementing this kind of thing :mrgreen:
Warmonger
Enthusiast
Enthusiast
Posts: 156
Joined: Wed Apr 20, 2011 4:24 pm

Re: AutoIt Wrapper

Post by Warmonger »

Zach wrote:This could prove useful..

Would we be able to access AutoIt's scripting functionality as well? i.e Variables, Functions, Math operations, etc.

I think many people would love it if we were able to use the scripting aspect of AutoIT inside our own programs, sharing data between the program and scripts being run, etc.. Personally, It would probably help me out immensely with my game if I had an easy to implement scripting language.

I hope you plan on implementing this kind of thing :mrgreen:
Unfortunately no. The wrapper supports up to version 3.2.12.1 of the AutoItX library. Basically all this does is allow us to call the internal functions of the library and nothing more. Which in itself can save lots of time coding as the library has several useful functions. I personally wouldn't recommend AutoIt for any type of game development as its extremely slow. I would give LUA and other scripting languages like that a look before hand.
Its Not A Bug, Its An Undocumented Feature!
Relax Its All Just Ones And Zeros
There Is No Place Like 127.0.0.1 Except ::1
I do things TO my computer, not WITH my computer... I am a nerd.
User avatar
electrochrisso
Addict
Addict
Posts: 989
Joined: Mon May 14, 2007 2:13 am
Location: Darling River

Re: AutoIt Wrapper

Post by electrochrisso »

Hi warmonger, only had a little play, but seems to be working ok so far. :)
PureBasic! Purely the best 8)
ehowington
Enthusiast
Enthusiast
Posts: 115
Joined: Sat Sep 12, 2009 3:06 pm

Re: AutoIt Wrapper

Post by ehowington »

Been having some issues getting the functions within the library to send test to a control tested a few times on a few applications I'm not sure if It's something I'm doing but all the tools i'm using to identify the control id are not working or im just not using the commands correct while some of them work others don't
Post Reply