dearbear Posted October 6, 2014 Share Posted October 6, 2014 Hello excuse me if you have seen my question before. My part of the script that playing up, looks for a window be become actiave and then closes. WinWaitActive("[TITLE:New folder ; CLASS:CabinetWClass]","") ControlClick("[TITLE:New folder ; CLASS:CabinetWClass]", "", "[id:1001]") WinClose("[TITLE: New folder; CLASS:CabinetWClass]") This code upabove works fine how does send a string to a windows control $pathString = "New folder" WinWaitActive("[TITLE: &$pathString ; CLASS:CabinetWClass]","") ControlClick("[TITLE: &$pathString ; CLASS:CabinetWClass]", "", "[id:1001]") WinClose("[TITLE: &$pathString; CLASS:CabinetWClass]") how do i send to a window just the new folder and a variable thank you time and for your help kevin Link to comment Share on other sites More sharing options...
Danyfirex Posted October 6, 2014 Share Posted October 6, 2014 look: WinWaitActive("[TITLE:" & $pathString & "; CLASS:CabinetWClass]","") Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Solution alienclone Posted October 6, 2014 Solution Share Posted October 6, 2014 look: WinWaitActive("[TITLE:" & $pathString & "; CLASS:CabinetWClass]","") Saludos Danyfirex is correct, quotation mark placement is very important. unless the folder name is literally "&$pathString" , then it should not be inside the quotation marks. ive spent hours fighting with codes because of this issue. when in SciTE script editor pay careful attention to the colors of the words in your code, that is helpful in understanding where a line of code is messing up. $pathString = "New folder" WinWaitActive("[TITLE: &$pathString ; CLASS:CabinetWClass]","") ControlClick("[TITLE: &$pathString ; CLASS:CabinetWClass]", "", "[id:1001]") WinClose("[TITLE: &$pathString; CLASS:CabinetWClass]") variables and array names ($var) should always be black, whether they are being defined... $pathString = "New folder" or being called... WinWaitActive("[TITLE:" & $pathString & "; CLASS:CabinetWClass]","") If @error Then MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!") EndIf "Yeah yeah yeah patience, how long will that take?" -Ed Gruberman REAL search results | SciTE4AutoIt3 Editor Full Version Link to comment Share on other sites More sharing options...
jdelaney Posted October 6, 2014 Share Posted October 6, 2014 Why go through the gui? dircreate IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
dearbear Posted October 6, 2014 Author Share Posted October 6, 2014 Thank you, Danyfirex and alienclone Sorry Danyfirex you were the first to answer but I will have to go with alienclone for education. Seeing how simple it was. Seems like i have to go to the supermarket and buy a wet fish and slap myself. I could not looking and searching other peoples scripts there were no windows Titles that had variables names. thankyou both Link to comment Share on other sites More sharing options...
Danyfirex Posted October 6, 2014 Share Posted October 6, 2014 Don't worry. You're Welcome. Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut 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