Jump to content

Recommended Posts

Posted

Here I use A to remove the stuff I'm using for myself. This tool when I use Send('a') it disappears, but when I use ControlSend($handle, '', '', 'a') it fails. I don't understand why it doesn't work. Can anyone help me with this situation 😰

Posted

I'm not entirely sure what you mean, but it works with both minimized and hidden windows.

Example()

Func Example()
    Run("notepad.exe", "", @SW_HIDE)
    ; or : Run("notepad.exe", "", @SW_MINIMIZE)
    Local $hWnd = WinWait("[CLASS:Notepad]", "", 10)
    ControlSend($hWnd, "", "Edit1", "A")

    Sleep(1000)
    WinSetState($hWnd, "", @SW_MAXIMIZE)
    Sleep(3000)
    WinClose($hWnd)

    WinWaitActive("[CLASS:#32770]")
    Sleep(500)
    Send("{TAB}{ENTER}")
EndFunc   ;==>Example

 

Posted

This case it's different. Many times using controlsend it's not the same as Send. What I mean here is that it is possible to use controlsend like using Send but not force the window to show

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