Klexen Posted June 29, 2007 Posted June 29, 2007 I've noticed that WinActivate does not work in Vista.. Has anyone else experienced this? Or any other functions not working?
MHz Posted June 29, 2007 Posted June 29, 2007 I experience no problem with WinActivate in Vista (UAC off). This line works just fine. WinActivate('WinActivate does not work in vista')
Klexen Posted June 29, 2007 Author Posted June 29, 2007 I experience no problem with WinActivate in Vista (UAC off). This line works just fine. WinActivate('WinActivate does not work in vista') Interesting, it is working. For some reason it wasn't working earlier.. Wierd... Anyways, what is the difference between using ' and " they both seem to work?
PsaltyDS Posted June 29, 2007 Posted June 29, 2007 Anyways, what is the difference between using ' and " they both seem to work? Look in the help file under Data Types, Strings. They are interchangeable (in pairs, of course). Either can be used to enclose a literal string of the other: MsgBox(64, "Test", "Test 1.") MsgBox(64, 'Test', 'Test 2.') MsgBox(64, '"Test"', "Test '3'.") MsgBox(64, "'Test'", 'Test "4".') Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
MHz Posted June 30, 2007 Posted June 30, 2007 Anyways, what is the difference between using ' and " they both seem to work?Like PsaltyDS states, but for me, I use singles quotes by default and double quotes when needed to protect paths/parameters with spaces. This example shows the usage literary. ; Default use of single quotes that I use RunWait('c:\windows\notepad.exe') ; And then also use double quotes to protect string paths/parameters with spaces RunWait('"c:\program files\internet explorer\iexplore.exe"') ; The above does well with using cmd as well RunWait('"' & @ComSpec & '" /c explorer "c:\program files\"') As for using single quotes within double quotes, I only do that if I am forced to handle very complex strings.
i542 Posted June 30, 2007 Posted June 30, 2007 Hmm. Did you check window is invisible and you used same title? Eg. if the title is "Untitled - Notepad" and you wrote "Notepad" without changing Opt, it won't work. BTW this goes to v3 Bug Reports I can do signature me.
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