FreeFry Posted February 18, 2008 Share Posted February 18, 2008 (edited) You don't know what you are talking about, and since you have nothing to offer in terms of advice you go flooding in peoples topics trying to make people feel bad about what they are trying to do.I actually have to agree a little with that part, though he does know what he's doing...It's great that you got it working though, but perhaps we should all calm down a little? Edited February 18, 2008 by FreeFry Link to comment Share on other sites More sharing options...
Richard Robertson Posted February 18, 2008 Share Posted February 18, 2008 If you want to execute some piece of code from the execute script command line, try passing the contents of a variable, not the variable name instead. What you are doing here is pretty bad to begin with though. Why do you need dynamic content in the first place? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 18, 2008 Moderators Share Posted February 18, 2008 (edited) You don't know what you are talking about, and since you have nothing to offer in terms of advice you go flooding in peoples topics trying to make people feel bad about what they are trying to do. That should explain clearly why you have so many freaking posts. How many times did you post in this topic with nothing useful to say? And just to make you feel more stupid, here is my function executing a dynamically loaded conditional statement: ;testingDynFuncs #Include <File.au3> #Include <Array.au3> Global $DynamicFuncs Global $FuncString If Not _FileReadToArray(@ScriptDir & "\testing2.au3", $DynamicFuncs) Then MsgBox(4096,"Error", " Error reading the formula ==>> error:" & @error) Exit EndIf _ArrayDisplay($DynamicFuncs) MsgBox(0, "",_CatchAReturn("31")) Func _CatchAReturn($number) For $i = 1 To $DynamicFuncs[0] $var = StringRegExp($DynamicFuncs[$i], '(?i)If(.*)Then', 3) $var1 = StringRegExp($DynamicFuncs[$i], '(?i)Return(.*)', 3) MsgBox(0, "",$var[0]&' - '&$var1[0]) If Execute($var[0]) Then Return Execute($var1[0]) Next EndFunc ;<===_CatchAReturnoÝ÷ Ú׬¶)àÙ«·r^!ý7ê{¦mêúÓ}éÑzÛ«Múéz¿¹!ý7ê{¦mêúÛ}éÑzÛ«Múéz¾r^NnÞ~éܶ*'ën®{'ºfÞ¯n¬¡ænÏêº^"ØbL¨ºh¬ºw^®ËZÙ²y¨®w¬²Ú!zZh¶«³Ø^·(v)àË.zÅ'~íºvzè«iËnjW(uë)y©,rWêæ¢Ëh~Ø^¶)¶§Â¶²j·rÛ²H§.Â¥uÚzÛ^®Ú+zÇÈl¹ÈZ²Ë¦¦Ø¨Ê'*h²×(º{[yú+zf¤x,¹È_¢b²rë¶*'°j¶¬Ê«r^{ºØ§Ü§jhjYry×(Ø¢v¥²Özg§¶ÈßÛ'¢ØßÛÅç.¶)àjw±¦·¬²*'jÂ,µ«^u·¢·¢µÊ.Ú''h騽çZºÚ"µÍÛØ[ ÌÍØQ[[ÈH ][ÝÒY ÌÍÛ[H ÈÌ[] ÌÍÛ[H È I][ÝÈ [ÈÔ [ÈÂI][ÝÒY ÌÍÛ[H ÝÈÌ[] ÌÍÛ[HH I][ÝÂÌÍØQ[[ÈHÝ[ÔÜ] Ý[ÔÝÔ ÌÍØQ[[ÊKBÛØ[ ÌÍÛ]HÐØ]ÚT] ][ÝÌÌI][ÝÊBÙÐÞ ][ÝÚ[É][ÝË ÌÍÛ]B[ÈÐØ]ÚT] ÌÍÛ[JBSØØ[ ÌÍØPÛÛ][Û ÌÍØT]QÜ ÌÍÚPÐÈHHÈPÝ[ ÌÍØQ[[ÊHHBBIÌÍØPÛÛ][ÛHÝ[ÔYÑ^ ÌÍØQ[[ÖÉÌÍÚPÐ×K ][ÝÊÜÊJÚJZYÌLÜÊÏÊIÌLÜÊ[][ÝËJNÔÚÝ[ÛHHÛHÛÛ][Û[BBIÌÍØT]HÝ[ÔYÑ^ ÌÍØQ[[ÖÉÌÍÚPÐ×K ][ÝÊÜÊJÚJZYÌLÜÊÏÉÌLÜÊ[ÌLÜÊ]ÌLÜÊÏÊIÌLÜÊÌÍÉ][ÝËJNÔÚÝ[ÛHHÛH][BBRYÐ^J ÌÍØPÛÛ][ÛHHÜÐ^J ÌÍØT]HH[ÛÛ[YSÛÜBRY^XÝ]J ÌÍØPÛÛ][ÛÌJH[]^XÝ]J ÌÍØT]ÌJBS^[[Your RegExp may work for you... but this is less error prone with actual error checking... (a simple working example). Edited February 18, 2008 by SmOke_N 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. Link to comment Share on other sites More sharing options...
Oldschool Posted February 19, 2008 Author Share Posted February 19, 2008 (edited) Perhaps I am getting too heated in the moment, Sorry SmOke_N, you do have to understand what people are trying to do in order to help them. Anyways, for anyone who is still fuzzy about what this code is, it's simply "Addons" or "Plugins" for Autoit. I can have a compiled script execute an entire function that is stored in an external non compiled text file, and this function can change variables that are part of the compiled script. Essentially giving me the ability to have user defined functions without reveling the source for the main app. Of course I have to know what the basic structure of those user defined functions is going to be in order to pre-program the script to execute them right, but the sky is the limit after that. I'm gonna try to come up with an example that executes an external loop. Edited February 19, 2008 by Oldschool 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