NewNinja Posted May 7, 2012 Share Posted May 7, 2012 (edited) Hi, just a quick question - how can I set a string to anything that is typed? I would like to know how to concatenate it as well. Edited May 7, 2012 by NewNinja Link to comment Share on other sites More sharing options...
kylomas Posted May 7, 2012 Share Posted May 7, 2012 NewNinga, Variables are set with an assignment statment, concatenation is done with the "&" operator. A better place for you to start is at page 1 of the help file... Write some code and ask again if you get stuck. Good Luck, kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 7, 2012 Moderators Share Posted May 7, 2012 NewNinja,Use an Input control and then GUICtrlGetData to read it. As to concatenation, didi you think of looking in the Help file? 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...
NewNinja Posted May 7, 2012 Author Share Posted May 7, 2012 yeo thanks for the help Link to comment Share on other sites More sharing options...
NewNinja Posted May 7, 2012 Author Share Posted May 7, 2012 (edited) NewNinga,Variables are set with an assignment statment.Lol, sorry I did not explain it well enough.I meant, I wanted it to concatenate x amount of any letter you type to a string whilst the program is running and Melba I did not understand what you suggested :/ Edited May 7, 2012 by NewNinja Link to comment Share on other sites More sharing options...
kylomas Posted May 7, 2012 Share Posted May 7, 2012 Yes Grasshopper,All is explained in the Help file.kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
NewNinja Posted May 7, 2012 Author Share Posted May 7, 2012 Do you mean the inbuilt one in the editor? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 7, 2012 Moderators Share Posted May 7, 2012 NewNinja, I wanted it to concatenate x amount of any letter you type to a string whilst the program is runningThat is called a keylogger and is not a subject we discuss here - as you already know as you were looking at this thread a few minutes ago. 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...
Recommended Posts