Jump to content

Recommended Posts

Posted

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 this

ControlSend("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

  • Moderators
Posted

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Posted (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 by BigDaddyO
Posted
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 post

ControlSend("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

Posted

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.

 

 

Posted (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 by Melba23
Huge quote removed
Posted

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.

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...