Jump to content

I can't minimize notepad++ - (Moved)


Recommended Posts

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)

 

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to post
Share on other sites

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")

 

iam ِAutoit programmer.

best thing in life is to use your Brain to

Achieve

everything you want.

Link to post
Share on other sites
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 by Jos
masked the emailaddress to avoid SPAM!
Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...