Jump to content

Recommended Posts

Posted

Nahuel, I've fixed it. You put the wrong class there. No need for WinClose("script_folder") anymore.

Opt("WinTitleMatchMode",4)
$WinList=WinList("classname=ExploreWClass")

For $b=1 to $WinList[0][0]
    WinClose($WinList[$b][0])
Next

This one is perfect now. I really wish I understood how to program not to just to fix some typos. I didn't even have to think.

Many thanks.

hehe, this is how we all learn!

Glad you got it working :)

Posted

Nahuel, I've fixed it. You put the wrong class there. No need for WinClose("script_folder") anymore.

Opt("WinTitleMatchMode",4)
$WinList=WinList("classname=ExploreWClass")

For $b=1 to $WinList[0][0]
    WinClose($WinList[$b][0])
Next

This one is perfect now. I really wish I understood how to program not to just to fix some typos. I didn't even have to think.

Many thanks.

Hmm now, I need to add to the above one more class to close: CabinetWClass

This one is in charge of the open folder pointing to the other PC in your LAN. So I need to have them both closed: classname=ExploreWClass and classname=CabinetWClass

How?

Thanks!

Posted

hehe, this is how we all learn!

Glad you got it working :)

Not quite yet (as you can see)! Please help again (see above). :)

Many thanks.

Posted

Well...

Opt("WinTitleMatchMode",4)
$WinList=WinList("classname=ExploreWClass")

For $a=1 to $WinList[0][0]
    WinClose($WinList[$a][0])
Next
$WinList1=WinList("classname=CabinetWClass")

For $b=1 to $WinList1[0][0]
    WinClose($WinList1[$b][0])
Next
Posted

Well...

Opt("WinTitleMatchMode",4)
$WinList=WinList("classname=ExploreWClass")

For $a=1 to $WinList[0][0]
    WinClose($WinList[$a][0])
Next
$WinList1=WinList("classname=CabinetWClass")

For $b=1 to $WinList1[0][0]
    WinClose($WinList1[$b][0])
Next

Hehe, it finally has done the job. Wooof. Thank you. :)

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...