Jump to content
Sign in to follow this  
koekje

Executing external autoit code in compiled exe?

Recommended Posts

koekje

Hello,

I have a bit of a problem.

I want to execute pieces of (valid) au3 code that are received from a website using InetGetSource. I tried the Execute command, however it is very very limited as far as i've tried.

This is my piece of code:

#include <INet.au3>
Execute(_INetGetSource('http://localhost/code.txt'))

code.txt contains this (for testing matters):

$blabla = 2
if $blabla > 1 then
   messagebox(0, 0, 'its higher then 2')
else
   messagebox(0, 0, 'its lower then 2')
endif

This does nothing other then setting @error

Is there any other way to execute pieces of code like this example, that are obtained from outside?

I know about includes, but this has to work in the final .exe as well.

Thanks for any tips you may have!

Nick

Share this post


Link to post
Share on other sites
Valuater

Thank you very much, that seems to be exactly what im looking for :D

Wow!! two days later he comes back and finds his topic.... Very good!! :D

... Not starting a new one, Also, Glad I could help you!!

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
koekje

Wow!! two days later he comes back and finds his topic.... Very good!! :D

... Not starting a new one, Also, Glad I could help you!!

8)

Haha, sorry for the late reply

I had to finish some work related work (that sounds quite odd)..

Of course I didn't open a new thread, I may be new to _these_ forums, but that doesn't mean I'm a complete idiot =P

Share this post


Link to post
Share on other sites
martin

Wow!! two days later he comes back and finds his topic.... Very good!! :D

... Not starting a new one, Also, Glad I could help you!!

8)

@Valuater. I know where you're coming from. :D

@koekje

.........but that doesn't mean I'm a complete idiot =P

You obviously are not.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.