samtan117 Posted June 1, 2015 Share Posted June 1, 2015 Hey i cant seem to get this to work? please tell me how here is the codeRun ( "C:\Program Files (x86)\Notepad++\notepad++.exe") ;It gets here then stops responding WinWaitActive("new 0 - Notepad++") Send ("{Ctrl}") ("O") Send("C:\Desktop\Article\Index") Send("!i") Case $iMsg = $idUndo_Btn ;MsgBox(64, "New GU", "You clicked on the Cancel button!") EndSelect WEnd EndFunc Link to comment Share on other sites More sharing options...
samtan117 Posted June 1, 2015 Author Share Posted June 1, 2015 there are also ; messages in the code to tell you the problem Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted June 2, 2015 Moderators Share Posted June 2, 2015 (edited) Hi, samtan117, welcome to the forum. You could do it like this instead:Run("notepad.exe") WinWaitActive("[CLASS:Notepad]", "") Or simply use ShellExecute:ShellExecute(<path to file>) Edit: I swear this was for notepad when I looked at it last night Edited June 2, 2015 by JLogan3o13 I'm apparently blind "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Exit Posted June 2, 2015 Share Posted June 2, 2015 WinWaitActive("[CLASS:Notepad++]") App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
jguinch Posted June 2, 2015 Share Posted June 2, 2015 (edited) If I understand, you want to open a file with Notepad++.You can just give the full path name as parameter in the command line :Run(@ProgramFilesDir & '\Notepad++\notepad++.exe "C:\Desktop\Article\Index"') Edited June 2, 2015 by jguinch Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
samtan117 Posted June 2, 2015 Author Share Posted June 2, 2015 If I understand, you want to open a file with Notepad++.You can just give the full path name as parameter in the command line :Run(@ProgramFilesDir & '\Notepad++\notepad++.exe "C:\Desktop\Article\Index"') aah i didn't know you could do that thanks! 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