Sign in to follow this  
Followers 0
slightly_abnormal

help with porcess not exist.. minimize/restore

4 posts in this topic

I press it button it launches a program, and minimizes the window.. once that program has closed the window that was minimized should restore. some reason it minimizes then restores a second later..

WinSetOnTop("Fex11","",@SW_SHOW)
WinSetState("Porgii","",@SW_MINIMIZE)
run("fex11.exe")
winwait("Porgii","")        
If  NOT  ProcessExists("fex11.exe") Then
WinSetState("Porgii","",@SW_RESTORE)
EndIf

Share this post


Link to post
Share on other sites



maybe

WinSetOnTop("Fex11","",@SW_SHOW)
WinSetState("Porgii","",@SW_MINIMIZE)
runwait("fex11.exe")
Sleep(1000)    
If  NOT  ProcessExists("fex11.exe") Then
WinSetState("Porgii","",@SW_RESTORE)
EndIf

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

maybe

WinSetOnTop("Fex11","",@SW_SHOW)
WinSetState("Porgii","",@SW_MINIMIZE)
runwait("fex11.exe")
Sleep(1000)    
If  NOT  ProcessExists("fex11.exe") Then
WinSetState("Porgii","",@SW_RESTORE)
EndIf

8)

wow.. funny how a tiny code change worked. thanks!

Share this post


Link to post
Share on other sites

Welcome

8)


NEWHeader1.png

Share this post


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
Sign in to follow this  
Followers 0