Pammy Posted December 9, 2021 Posted December 9, 2021 If I minimize notepad++, I can not open it again..I have to restart computer to get program to run again. Any sugestions?
Musashi Posted December 10, 2021 Posted December 10, 2021 1 hour ago, Pammy said: If I minimize notepad++, I can not open it again.. What happens when you run the following script ? Run('"C:\Program Files (x86)\Notepad++\notepad++.exe"') Sleep (1000) ; wait for 1 seconds to display the Notepad++ window Local $hWnd = WinGetHandle("[active]") Local $sTitle = WinGetTitle("[active]") MsgBox(BitOR(4096, 64), "Info Notepad++ :", _ "Handle : " & @CRLF & $hWnd & @CRLF & _ "Titel : " & @CRLF & $sTitle & @CRLF) WinSetState($hWnd, "", @SW_MINIMIZE) Sleep(2000) WinSetState($hWnd, "", @SW_MAXIMIZE) Sleep(2000) WinClose($hWnd) Pammy 1 "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
Developers Jos Posted December 10, 2021 Developers Posted December 10, 2021 Moved to the appropriate forum. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
ad777 Posted December 10, 2021 Posted December 10, 2021 THIS CODE MAY HELP: #include <AutoItConstants.au3> While 1 if BitAND(WinGetState("Untitled - Notepad"), $WIN_STATE_MINIMIZED) Then WinSetState("Untitled - Notepad","", @SW_RESTORE ) EndIf WEnd or this: ProcessClose("notepad++.exe") ShellExecute(@ProgramsDir&"\Notepad++\notepad++.exe") none
Pammy Posted December 15, 2021 Author Posted December 15, 2021 (edited) On 12/10/2021 at 2:12 AM, Musashi said: What happens when you run the following script ? Run('"C:\Program Files (x86)\Notepad++\notepad++.exe"') Sleep (1000) ; wait for 1 seconds to display the Notepad++ window Local $hWnd = WinGetHandle("[active]") Local $sTitle = WinGetTitle("[active]") MsgBox(BitOR(4096, 64), "Info Notepad++ :", _ "Handle : " & @CRLF & $hWnd & @CRLF & _ "Titel : " & @CRLF & $sTitle & @CRLF) WinSetState($hWnd, "", @SW_MINIMIZE) Sleep(2000) WinSetState($hWnd, "", @SW_MAXIMIZE) Sleep(2000) WinClose($hWnd) can your tell me how to do this please? I lvoethis program but after an update it went nuts. puternerdette##AT##hotmail##dot##com Edited December 15, 2021 by Jos masked the emailaddress to avoid SPAM!
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