Riky Posted February 17, 2017 Share Posted February 17, 2017 hello i've got a problem i'd like to use execute or similar comment with one variable example Local $a = 0 ;command;("$a = 4") output = 4 not 0 Thanks Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 17, 2017 Moderators Share Posted February 17, 2017 Riky, Welcome to the AutoIt forums. This will work: Local $a = 0 $a = Execute("$a + 4") ConsoleWrite($a & @CRLF) Good enough? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
jguinch Posted February 17, 2017 Share Posted February 17, 2017 Or Assign("a", 4) Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
Riky Posted February 18, 2017 Author Share Posted February 18, 2017 jguinch my problem is that the variable is inside another variable example Global $a = "" $var = "$a" $var1 = "3" Assing($var,$var1) ;assign set $var = 3 not $a Link to comment Share on other sites More sharing options...
jguinch Posted February 18, 2017 Share Posted February 18, 2017 (edited) Assing(StringReplace($var, "$", ""), $var1) What is the goal ? Can you explain us what you're trying to accomplish ? Edited February 18, 2017 by jguinch Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
Riky Posted February 18, 2017 Author Share Posted February 18, 2017 11 minutes ago, jguinch said: Assing(StringReplace($var, "$", ""), $var1) What is the goal ? Can you explain us what you're trying to accomplish ? ye is the goal thank at all 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