Search the Community
Showing results for tags 'ControlSend()'.
-
Hi There ! I have a script here : ;Launch CMD Run("C:\Windows\System32\cmd.exe") sleep(2000) $cmdHandle = WinActivate("C:\Windows\System32\cmd.exe") Sleep(2000) ;Sending document ControlSend($cmdHandle, "", "", "ftp" & @CRLF) ControlSend($cmdHandle, "", "", "open" & @CRLF) Sleep(2000) ControlSend($cmdHandle, "", "", "first command" & @CRLF) Sleep(2000) ControlSend($cmdHandle, "", "", "second-coomand" & @CRLF) first-command and second-command I can't provide cause it's internal. I have complied this .au3 file into an exe and it does the work. But I need to invoke this with Java. Java code I have tried is : ProcessBuilder pb = new ProcessBuilder("C:\\Users\\username\\eclipse-workspace\\Examples\\src\\com\\own\\examples\\etc.exe"); pb.start(); Thread.sleep(5000); Through java it just launches the cmd and nothing happens after that. Please help !!
-
Hey everyone I want to be able to press a button within a application however so far what I have tried does not seem to be working. I have successfully made the application (window) active, but when I try: WinActivate("- AdwCleaner - v4.109") WinWaitActive("- AdwCleaner - v4.109") send("{Tab}{Space}") ; even ("{TAB}{SPACE}") WinActivate("- AdwCleaner - v4.109") WinWaitActive("- AdwCleaner - v4.109") ControlSend("- AdwCleaner - v4.109", "", "[CLASSNN:Button3]", "{SPACE}") WinActivate("- AdwCleaner - v4.109") WinWaitActive("- AdwCleaner - v4.109") ControlClick("- AdwCleaner - v4.109", "Scan", "[CLASS:Button;INSTANCE:3]") I have tried using the finder utility and that is how I got the Class and instance number but nothing is working. Could someone help? Thanks Grimm
- 5 replies
-
- ControlSend()
- Send()
-
(and 1 more)
Tagged with:
-
So I basically just want to automate a quick website login. I know I can use Send() and it works fine but I want to be able to use ControlSend() for this. There is one specific special character that is giving me trouble. The good old @. I just can't controlsend this. It doesnt matter if I use the raw(1) or default(0) flag. For special characters like "!" I can just workaround and use "+1" = (Shift +1) instead. But for "@" I can't use "^!q" = (CTRL+ALT+q). (I got a german keyboard, the english "+2" = (Shift +2) is not working) Examples: ControlSend($hwnd, "", "", "mail@box.com", 0) -> "mailqbox.com" ControlSend($hwnd, "", "", "mail@box.com", 1) -> "mailqbox.com" ControlSend($hwnd, "", "", "mail^!qbox.com", 0) -> "mailqbox.com" ControlSend($hwnd, "", "", "mail^!qbox.com", 1) -> "mail^!qbox.com" I hope someone can help me out. This is driving me insane.