Jump to content

cruisepandey

Members
  • Posts

    7
  • Joined

  • Last visited

cruisepandey's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. In case of notepad, it worked successfully, I could see notepad got resized and came to it's original position. For notepad console output is : Handle = 0x00040C14 Title = Untitled - Notepad 274 282 1119 550 >Exit code: 0 Time: 7.037 But in case of VIP access, it did not do anything: Handle = 0 Title = ! WinGetPos failed >Exit code: 0 Time: 10.25
  2. It did not throw any error, but window also did not move. thanks for reply tho
  3. Hi, As soon as I launch VIP access application in my windows machine (By default it starts at bottom right hand side corner), I want to move it to left hand side corner by winmove function or any other function. Code I have tried without any luck : Run("VIPUIManager.exe"); $vipAccessHandle = WinActivate("VIP Access"); Local $aPos = WinGetPos($vipAccessHandle); ;ConsoleWrite($aPos[0]); WinMove($vipAccessHandle, "", 100, 100); Sleep(2000) ;WinMove($vipAccessHandle, "", $aPos[0], $aPos[1], $aPos[2], $aPos[3]); Sleep(2000); WinClose($vipAccessHandle) I am attaching a pic of it's icon
  4. Hi Jos, many thanks !! your code works !! I was trying with $iPosition = StringInStr($Msga, "number") , to get the position. I tried with \W(number) regular expression, it did not work. I am not able to figure out your regular expression, would you please elaborate ?
  5. Hi, I have a string like this : Global $Msga = "urrent directory is /send. (Submission of file with log number 29381077284 is confirmed)"; I want to extract the number 29381077284 from the string. I did StringSplit to split based on "(" and then use space to reach there, But it's not a good choice. Can anyone help me with regular expression to find the number from String using AutoIT. TIA
  6. 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 !!
×
×
  • Create New...