MasterPlayer Posted January 31, 2022 Posted January 31, 2022 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 Melba23 Posted January 31, 2022 Moderators Posted January 31, 2022 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 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
ad777 Posted January 31, 2022 Posted January 31, 2022 (edited) ...srry i did little mistake herre,i did type something here. Edited January 31, 2022 by ad777 none
MasterPlayer Posted January 31, 2022 Author Posted January 31, 2022 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])
Nine Posted January 31, 2022 Posted January 31, 2022 ubound($array) $cmdline[0] holds the number of param “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
MasterPlayer Posted January 31, 2022 Author Posted January 31, 2022 i am basic programmer, more explanation would be great
argumentum Posted January 31, 2022 Posted January 31, 2022 38 minutes ago, MasterPlayer said: I want to see those array values For $n = 1 To $CmdLine[0] ; UBound($CmdLine) -1 ConsoleWrite($n & @TAB & $CmdLine[$n] & @CRLF) Next MasterPlayer 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
MasterPlayer Posted January 31, 2022 Author Posted January 31, 2022 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])
Nine Posted January 31, 2022 Posted January 31, 2022 You need to show us how you call your script to understand why your parameters are not passed correctly... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Developers Jos Posted January 31, 2022 Developers Posted January 31, 2022 $CmdLine[1]) is hardcoded? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
MasterPlayer Posted January 31, 2022 Author Posted January 31, 2022 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..
Developers Jos Posted January 31, 2022 Developers Posted January 31, 2022 As requested: post your script so we can see what you are doing. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
MasterPlayer Posted January 31, 2022 Author Posted January 31, 2022 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..
Developers Jos Posted January 31, 2022 Developers Posted January 31, 2022 ...well I guess somebody should know as somebody made this script you are posting questions about. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Nine Posted January 31, 2022 Posted January 31, 2022 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 ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
MasterPlayer Posted January 31, 2022 Author Posted January 31, 2022 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
MasterPlayer Posted January 31, 2022 Author Posted January 31, 2022 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
Nine Posted January 31, 2022 Posted January 31, 2022 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. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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