mcgill Posted September 5, 2006 Posted September 5, 2006 Send keys problem when sending a string with the send keys command, only sending one variable and not the entire string, anyone know why? $ret = _GUICtrlListViewGetItemText ($listview1, -1, 0) ; Set the RunAs parameters to use local adminstrator account $USERNAME = "********" $PASSWORD = "********" $DOMAIN = @LogonDomain $RUN = 0 ; run indicator ; retrieve the cycle from commandline If $CMDLINE[0] = 1 Then $RUN = $CMDLINE[1] If $RUN = 0 Then RunAsSet($USERNAME, $DOMAIN, $PASSWORD) run("explorer.exe","", @SW_MAXIMIZE) WinWaitActive("My Documents") Send("!d") $x = StringFormat("%s", $ret) msgbox(0,"", $x) Send("{"& $x & " ENTER}") RunAsSet() endif
mcgill Posted September 5, 2006 Author Posted September 5, 2006 I am trying to send the string $x with send keys. It is only showing one variable and not the entire string. A msgbox displays the entire string. How come?
GaryFrost Posted September 5, 2006 Posted September 5, 2006 I am trying to send the string $x with send keys. It is only showing one variable and not the entire string. A msgbox displays the entire string. How come? Try: Send($x & "{ENTER}") SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
lod3n Posted September 5, 2006 Posted September 5, 2006 Send($x) Send("{ENTER}") [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]
GaryFrost Posted September 5, 2006 Posted September 5, 2006 Send($x) Send("{ENTER}")Why 2 seperate lines? Should work just fine in 1 line. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
lod3n Posted September 5, 2006 Posted September 5, 2006 gafrost - you are correct. I stand defeated. [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]
GaryFrost Posted September 5, 2006 Posted September 5, 2006 gafrost - you are correct. I stand defeated.Didn't know we were Dueling SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
lod3n Posted September 5, 2006 Posted September 5, 2006 Touche [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font]
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