vajda Posted September 6, 2019 Posted September 6, 2019 Hi collegues, Now i try to create autoit script for using it in CyberArk PAS solution. In my case autoit script must to take Password from CyberArk and then insert it in password field on web site, but Password what autoit script get from CyberArk consist symbol "+", "#" etc. And, for example, instead Qwerty+1 it insert in password field qwerty!. To insert data in fields i use ControlSend command. After reading this format i find info that i can send data in RAW format by addin flag = 1 in the end of the string and now my string look like thisControlSend("BIG-IP® - bigip.f5.com (192.168.2.150) - Google Chrome","","",$TargetUsername,1) But now AutoIt script instead Qwerty+1 insert qwerty=1 Maybe you know any additional flags which i can add or buttons to insert data as plain text? additionally i add a script in attached files, you can check it for mistakes F5.au3
vajda Posted September 6, 2019 Author Posted September 6, 2019 Sorry for mistakes in topic name, correct is: How to insert text to field in RAW format
Moderators Melba23 Posted September 6, 2019 Moderators Posted September 6, 2019 Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. 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
BigDaddyO Posted September 6, 2019 Posted September 6, 2019 (edited) Look in the help file for ControlSend. the last option in there allows you to set the text as Raw. I just found that out yesterday! edit: looks like you might be having the same issue with the Shift key that I have. Edited September 6, 2019 by BigDaddyO
vajda Posted September 6, 2019 Author Posted September 6, 2019 4 minutes ago, BigDaddyO said: Look in the help file for ControlSend. the last option in there allows you to set the text as Raw. I just found that out yesterday! I know it, but in my example, i use this flag, you can see it in script and in information of this postControlSend("BIG-IP® - bigip.f5.com (192.168.2.150) - Google Chrome","","",$TargetUsername,1) The last parameter "1" its parametr which send data in RAW format but this parametr does not help me, data sended in incorrect form
BigDaddyO Posted September 6, 2019 Posted September 6, 2019 take a look through this thread where I have been trying to figure out a ControlSend issue, might not be the same issue as yours. Have you tried writing that $TargetUsername value to the Scite console prior to doing the ControlSend just so you can see that the value you have read actually is what you want? Otherwise, I can't offer you any help.
vajda Posted September 6, 2019 Author Posted September 6, 2019 (edited) I try writing that $TargetUsername and $TargetPassword value to the window where i can see it, and i can approve that it is incorrect Edited September 6, 2019 by Melba23 Huge quote removed
BigDaddyO Posted September 6, 2019 Posted September 6, 2019 controlsend() and send() can/will display text differently than using ConsoleWrite() or ControlSetText() which will use exactly what the value is. in your code, just above the controlsend() line, put this which will output to the bottom of Scite just to confirm what you have read in from CyberArk is correct. ConsoleWrite("$TargetUsername = " & $TargetUsername & @CRLF & "$TargetPassword = " & $TargetPassword & @CRLF) Also, have you tried using ControlSetText() instead? I know that doesn't work for a lot of my app, but it's the most preferred method if it will work.
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