Jump to content

Recommended Posts

Posted

I have extension developed that saves the credentials and pass it to the thick client application.

i have build the exe file that run's the thick client app and pass the array values from extension to thick client.

I want to see those array values

 

sample script below i have written for exe.

 

WinWaitActive("outlook","",1000)
ControlSend("outlook","","[NAME:UserName]",$CmdLine[1])
ControlSend("outlook","","[NAME:Password]",$CmdLine[2])

  • Moderators
Posted

Moved to the appropriate AutoIt General Help and Support forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions.


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

when i run the below code i get  - Array variable has incorrect no of subscripts or subscripts dimnsion range has exceded. 

 

That means array range i am giving is not matching with the receiving value. i want to know that array range so it can pass the value to right array

 

WinWaitActive("outlook","",1000)
ControlSend("outlook","","[NAME:UserName]",$CmdLine[1])
ControlSend("outlook","","[NAME:Password]",$CmdLine[2])

Posted
8 minutes ago, argumentum said:
For $n = 1 To $CmdLine[0] ; UBound($CmdLine) -1
    ConsoleWrite($n & @TAB & $CmdLine[$n] & @CRLF)
Next

:)

This is partially working with below code. to the username field its passing value "0". but i have given username as "test" in source

WinWaitActive("outlook","",1000)
ControlSend("outlook","","[NAME:UserName]",$CmdLine[1])

Posted
18 minutes ago, Jos said:

$CmdLine[1]) is hardcoded?

i just checked. it is not hardcoded. but it sends the data in array. same will be used to pass to the to the applications using controlsend. i am getting the error may be cause array range is not matching or something..

Posted
6 minutes ago, Jos said:

As requested: post your script so we can see what you are doing.

i am really Sorry i dont have the access to that and if i have also do not know which one to share.

As mentioned completely new to this.

what i can tell you is extension is built to pass the credentials to auto2exe file.  in SSO we store credentials in app. 

when app is launched extension calls the built exe and pass the values. exe files pass the values to thick client applications through controlsend

 

But,..Sorry for the mess..

Posted
1 hour ago, MasterPlayer said:

i dont have the access to that

So how will you modify the script if you don't have access to it ?  Even if you give you the solution (and I highly doubt it is currently possible), how will you be able to correct the situation ?

 

Posted
7 minutes ago, Nine said:

So how will you modify the script if you don't have access to it ?  Even if you give you the solution (and I highly doubt it is currently possible), how will you be able to correct the situation ?

 

my bad as i thought some other script of extension. here is the script.

Run("C:\Users\sample.exe")
WinWaitActive("Title","",10)
Sleep(10000)
ControlSend("title","","[NAME:UserID]",$CmdLine[1])
ControlSend("title","","[NAME:Password]",$CmdLine[2])
ControlClick("title","","[NAME:button]")

is there a way i can capture the array values without mentioning the array range,
or display the array index that is being sent by browser extension

Posted
1 minute ago, MasterPlayer said:

my bad as i thought some other script of extension. here is the script.

Run("C:\Users\sample.exe")
WinWaitActive("Title","",10)
Sleep(10000)
ControlSend("title","","[NAME:UserID]",$CmdLine[1])
ControlSend("title","","[NAME:Password]",$CmdLine[2])
ControlClick("title","","[NAME:button]")

is there a way i can capture the array values without mentioning the array range,
or display the array index that is being sent by browser extension

another update i would like to share if i use 

ControlSend("title","","[NAME:UserID]","userid")  ---> this is being passed to the application user id feild. i belive the issue with the array length but dont know how to solve

Posted

The problem does not come from that script.  It is coming just before when this script is executed.  As I already asked you, you need to show us exactly how this script is being called.  Is it called manually, or from another program ?  Unless you can provide this very crucial information, I am afraid we will not be able to provide any help.

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...