ControlHandle with partial

Started by siocnarf, September 30, 2024, 11:12:56 AM

Previous topic - Next topic

siocnarf

Hi,

I am not using so frequently Winbatch. Sorry in advance :(

I am trying to create an unattended installation of Entrapass Corporate Edition. The company is not seeing the need to make a silent install...

So Winbatch is my best bet. In the past I was able to unattend Entrapass but the updates are frequent. So I would like making my code more generic.

ControlHandle=DllHwnd('Entrapass Corporate Edition 8.71.219') ---> This is returning a value
ControlHandle=DllHwnd('Entrapass Corporate Edition~') --> This is returning a 0

So with this code:

;ControlHandle=DllHwnd('Entrapass Corporate Edition 8.71.219')
ControlHandle=DllHwnd('Entrapass Corporate Edition~')
ret=WinWaitExist("Entrapass Corporate Edition~", 10 ) 
IF ret == @FALSE
BoxShut()
IgnoreInput(@OFF)
EXIT
Endif
If I specify the full name the windows is detect and everything will be working but not if I use a ~.
So even with the ~the Winwaitexist will not find the window. :(

Am I wrong? Is it a workaround?

Thanks,



td

The following online documentation should explain what you are doing wrong and how to correct it:

https://docs.winbatch.com/mergedProjects/WindowsInterfaceLanguage/html/HTMLWIL_PWN001.htm
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade