juncaleo Posted October 28, 2011 Share Posted October 28, 2011 Hi guys I'm having this problem: I'm automating a websphere soft (console), I got the problem that when I want to make an input of a number stored in a var it adds automatically 2 spaces and it deletes a date and mess everything up. Any ideas how to solve this? Thanks in advance. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 28, 2011 Moderators Share Posted October 28, 2011 juncaleo,Welcome to the AutoIt forum. Please post the code you are using - it is hard to debug with nothing to work on! M23P.S. When you post your code please use Code tags. Put [autoit] before and [/autoit] after your posted code. 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...
juncaleo Posted October 28, 2011 Author Share Posted October 28, 2011 (edited) Sorry, this is the code. $num= StringTrimLeft($NumCel,3) $numero= $PrefNumFormulario & $num send($numero) I also tryied instead equal $numero to $PrefNumFormulario & $num make a send directly and got the same result send($PrefNumFormulario & $num) thanks Edited October 28, 2011 by juncaleo Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 28, 2011 Moderators Share Posted October 28, 2011 juncaleo,Where does $NumCel come from? From an external app perhaps? Perhaps the spaces are there all the time - it is quite common for additional spaces or @CRLFs to be attached to variables obtained from external applications. 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...
juncaleo Posted November 1, 2011 Author Share Posted November 1, 2011 Yes it comes from an excel file. Any idea how to get rid of those spaces? Link to comment Share on other sites More sharing options...
Juvigy Posted November 1, 2011 Share Posted November 1, 2011 Check out the StringStripWS and StringStripCR functions in the help file Link to comment Share on other sites More sharing options...
juncaleo Posted November 1, 2011 Author Share Posted November 1, 2011 Thanks that worked great!! 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