ph34r Posted July 11, 2008 Share Posted July 11, 2008 here is my prompt #Region --- CodeWizard generated code Start --- ;InputBox features: Title=Yes, Prompt=Yes, Default Text=Yes, Input Length=16, Pwd Char=*, TimeOut=60 ss, Mandatory If Not IsDeclared("sInputBoxAnswer") Then Local $sInputBoxAnswer $sInputBoxAnswer = InputBox("Warbot","Inorder for warbot to login it needs your Warrock Account password. Please type it in here","password","*M16","-1","-1","-1","-1","60") Select Case @Error = 0;OK - The string returned is valid Case @Error = 1;The Cancel button was pushed Case @Error = 2;The Timeout time was reached Case @Error = 3;The InputBox failed to open EndSelect #EndRegion --- CodeWizard generated code End --- It starts when the .exe starts im trying to make the AUTOIT script use the input answer the user gave it, when it trys to login. WinWait("WarRock","") If Not WinActive("WarRock","") Then WinActivate("WarRock","") WinWaitActive("WarRock","") Send("{Tab}")[color="#FF0000"] Send("sInputBoxAnswer") - RIGHT HERE![/color] MouseMove(565,467) MouseDown("left") What Code can i put right there for AUTOIT to send the Inputanswer? Link to comment Share on other sites More sharing options...
KnowNothing Posted July 11, 2008 Share Posted July 11, 2008 (edited) If read it right try this: Send($sInputBoxAnswer) /edit b/c I've got time.... You do: Send("sInputBoxAnswer") If you want to send the text sInputBoxAnswer You do: Send($sInputBoxAnswer) If you want to send that variable (whatever $sInputBoxAnswer ='s) *Note there are no "" b/c its not a string (normal text) its a variable (='s something else). Edited July 11, 2008 by KnowNothing Link to comment Share on other sites More sharing options...
ph34r Posted July 11, 2008 Author Share Posted July 11, 2008 ty! Link to comment Share on other sites More sharing options...
BrettF Posted July 11, 2008 Share Posted July 11, 2008 I can definatly see what threw you off there... You seemed to match it with IsDeclared? muttley Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
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