koekje Posted June 21, 2009 Share Posted June 21, 2009 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 Link to comment Share on other sites More sharing options...
Valuater Posted June 21, 2009 Share Posted June 21, 2009 I would use INetGet()... look at the help file to use it correctly... The help file has great Demo scripts at the bottom of the pagethen use this...http://www.autoitscript.com/forum/index.ph...st&p=6725708) Link to comment Share on other sites More sharing options...
koekje Posted June 23, 2009 Author Share Posted June 23, 2009 I would use INetGet()... look at the help file to use it correctly... The help file has great Demo scripts at the bottom of the pagethen use this...http://www.autoitscript.com/forum/index.ph...st&p=6725708)Thank you very much, that seems to be exactly what im looking for Link to comment Share on other sites More sharing options...
Valuater Posted June 23, 2009 Share Posted June 23, 2009 Thank you very much, that seems to be exactly what im looking for Wow!! two days later he comes back and finds his topic.... Very good!! ... Not starting a new one, Also, Glad I could help you!!8) Link to comment Share on other sites More sharing options...
koekje Posted June 23, 2009 Author Share Posted June 23, 2009 Wow!! two days later he comes back and finds his topic.... Very good!! ... Not starting a new one, Also, Glad I could help you!!8)Haha, sorry for the late replyI 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 Link to comment Share on other sites More sharing options...
martin Posted June 23, 2009 Share Posted June 23, 2009 Wow!! two days later he comes back and finds his topic.... Very good!! ... Not starting a new one, Also, Glad I could help you!!8)@Valuater. I know where you're coming from. @koekje.........but that doesn't mean I'm a complete idiot =PYou 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now