Medic873 Posted September 1, 2016 Posted September 1, 2016 So I have a question I have never needed to cross this bridge but it finally came up at work today. I need to execute some code that is going be inputed from a inputbox. For example [script] msgbox("Hello", "Hello"); $code = inputbox("hello", "hello"); ;Then right here it would take the variable $code and run its code that was just entered through the input box. Does tamake sense. [/script]
JohnOne Posted September 1, 2016 Posted September 1, 2016 Execute($code) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Medic873 Posted September 1, 2016 Author Posted September 1, 2016 Wow never saw that command in the help file. Thanks so much
Gianni Posted September 1, 2016 Posted September 1, 2016 Here also another way: Local $sCommand = InputBox("Execute by '/AutoIt3ExecuteLine'", "Enter one line of AutoIt code", 'MsgBox(0, "hello", "hello")') $sCommand = '"' & StringReplace($sCommand, '"', '""') & '"' Run(@AutoItExe & ' /AutoIt3ExecuteLine ' & $sCommand) Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....
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