DrDbase Posted June 6, 2023 Share Posted June 6, 2023 I simplified the code to send($x) ------------------------------------------------------------------------- ;only get one char on Send Opt("WinTitleMatchMode",2) Global $x $x = "abcdefg" MsgBox(0, " ", $x) ;get all chars - abdcefg sleep (1000) Run ("cmd") sleep (1000) Send ("{" & $x & "}") ;only get the first char - a sleep (1000) Send ("{Enter}") sleep (1000) WinClose ("C:\WINDOWS\SYSTEM32") Link to comment Share on other sites More sharing options...
Solution Andreik Posted June 6, 2023 Solution Share Posted June 6, 2023 Try this: Opt("WinTitleMatchMode",2) Global $x $x = "abcdefg" MsgBox(0, " ", $x) ;get all chars - abdcefg Sleep(1000) Run("cmd") Sleep(1000) Send(StringLeft($x, 1)) ;only get the first char - a Sleep(1000) Send("{Enter}") Sleep(1000) WinClose ("C:\WINDOWS\SYSTEM32") BTW you posted in the wrong section of the forum. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 6, 2023 Moderators Share Posted June 6, 2023 Moved to the appropriate forum. Moderation Team 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...
DrDbase Posted June 6, 2023 Author Share Posted June 6, 2023 Andreik Thank you Link to comment Share on other sites More sharing options...
spudw2k Posted June 6, 2023 Share Posted June 6, 2023 Removing the curly braces works on my machine. $sText = "abcdefg" Send($sText) Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF 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