pcirrus Posted June 12, 2006 Posted June 12, 2006 I am trying to do something trivial. Run photoshop and open a new file. The new file option is one of many on a "File" combobox. I tried something like Run("C:\Program Files\Adobe\Adobe Photoshop CS2\Photoshop.exe") sleep(15000) WinWaitActive("Adobe Photoshop") ControlCommand("Adobe Photoshop","File","","ShowDropDown","") but also variations with "ControlSend". The problem is that from AutoIt v3 Active Windows Info I do not see any ControID for the combobox. I couldn't find any examples.
Paulie Posted June 12, 2006 Posted June 12, 2006 (edited) Send("^n") Edit: Typo Edited June 12, 2006 by Paulie
pcirrus Posted June 12, 2006 Author Posted June 12, 2006 Send("^n") Edit: Typo Yes, I tried ControlClick("Adobe Photoshop","",1) Send("^n") but that doesn't seem to work, because 1 is probably not prpoer ID.
nfwu Posted June 12, 2006 Posted June 12, 2006 Look at WinMenuSelectItem in the help file. #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
Paulie Posted June 13, 2006 Posted June 13, 2006 Yes, I triedControlClick("Adobe Photoshop","",1)Send("^n")but that doesn't seem to work, because 1 is probably not prpoer ID.In this, are you trying to click on an icon? because that won't work with controlclick, use run
Skrip Posted June 13, 2006 Posted June 13, 2006 He needs to have it click File>New [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]
nfwu Posted June 14, 2006 Posted June 14, 2006 Repeating my self: WinMenuSelectItem("&File", "&New") #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
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