Jump to content

Recommended Posts

Posted

Hi

Im trying to hide a process that i run with @sw_hide flag but have no sucess :mellow:

Tis process have two threads is this could be related ?

I dont want to hide windows that this process creates one by one because they still become visible :)

Any :)

There is a hex ( 31303030303030 ) reasons i love AutoIt !

Posted

Hi

Im trying to hide a process that i run with @sw_hide flag but have no sucess :)

Tis process have two threads is this could be related ?

I dont want to hide windows that this process creates one by one because they still become visible :o

Any :mellow:

I see two good options:

A) Two step process:    1. Listen to some SONY BMG CDs
                        2. Name everything you do $SYS$...

B) Simpler one step process:    Unplug the monitor.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Posted

I see two good options:

A) Two step process:    1. Listen to some SONY BMG CDs
                        2. Name everything you do $SYS$...

B) Simpler one step process:    Unplug the monitor.

:mellow:

Wont do :)

There is a hex ( 31303030303030 ) reasons i love AutoIt !

Posted

is the title of the windows that keep poping up always the same or do they change?

maybe you should just processclose ("the process")

Almost the same :mellow: i dont want to close the process untill it finishes . Anyway i will hide window by window for now :)

There is a hex ( 31303030303030 ) reasons i love AutoIt !

Posted

Almost the same :mellow: i dont want to close the process untill it finishes . Anyway i will hide window by window for now :)

You can use WinSetState() to hide a window.

If this is like an installer that goes through a series of windows, then WinSetTrans() may set further windows to hidden with 1 use.

You can also use WinMove() to move the 1 window of screen, and the following windows may remain off screen also.

  • Moderators
Posted

Almost the same :mellow: i dont want to close the process untill it finishes . Anyway i will hide window by window for now :)

While 1
    If ProcessExists('NameOf.exe') Then _HideProcessWindows(ProcessExists('NameOf.exe'))
    Sleep(10)
WEnd

Func _HideProcessWindows($a_PID)
    $ChildOpt = Opt('WinSearchChildren', 1)
    Local $w_WinList = WinList()
    For $i = 1 To $w_WinList[0][0]
        If $a_PID == WinGetProcess($w_WinList[$i][0]) And BitAND($w_WinList[$i][1], 2) Then WinSetState($w_WinList[$i][0], '', @SW_HIDE)
    Next
    Opt('WinSearchChildren', $ChildOpt)
EndFunc
I don't know if this works!

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

Thanks guys all this valuable :) i wil check it out :mellow:

There is a hex ( 31303030303030 ) reasons i love AutoIt !

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
×
×
  • Create New...