Sign in to follow this  
Followers 0
Minikori

Link AutoIT with another language?

6 posts in this topic

#1 ·  Posted (edited)

I was wondering if there is a way that I can link some AutoIT coding with a Garry's Mod addon I might be writing. I don't need the LUA to use AutoIT functions, I just need it to get variables from a live AutoIT script that's running. Any help on this would be great, thanks.

Edited by Minikori

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Share this post


Link to post
Share on other sites



Bump. Halp? I was thinking I might be able to write it to a file and have the LUA script read that, but that might not be fast enough.


For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Share this post


Link to post
Share on other sites

Last bump. But is there really not anyone who can help me with this?


For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

Share this post


Link to post
Share on other sites

Pretend that you have no idea what you ( the original poster ) are talking about. Now read your request for help posts... would you be able to answer anything and know you were on the right page with the original poster?

If you're looking for a debugger type script, there have been a few made in the example scripts forum.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Quickest way I can think of is to allocate some memory and tag it with a specific unique value, the have autoit search through the memory and replace the values. Don't know how it'll work, don't know how to script it, but I'm pretty sure it can be done.


[center]JSON Encoding UDF[/center]

Share this post


Link to post
Share on other sites

In AutoIt, ConsoleWrite the variables when they change.

In Gmod, write a module that starts the AutoIt script and parses the console output. Send the outcome into the game through Lua.

Use GLua in whichever you want on the variables.

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