Jump to content

vikashbitm2010

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by vikashbitm2010

  1. Hi all, I want to return string from autoit script to the python code. Autoit: Exit("22 FE 45") -> not working Exit(1) -> Working Exit(0) -> Working python: import os res=os.system(autoitmine.exe) print "res",res I got some hint of @ExitCode macro, but dont know how to use it to get the string in python variable 'res'. Please resolve this issue for me if anyone knows about this.
  2. This is another application developed in vb.net
  3. I want to have the hardware name which is conneted via USB. Please refer snapshot which I attached. My requirement is not to get the drive name.
  4. Want to get the button color through Autoit script.
  5. Hello, Once i connect the hardware through USB, its appearing in the device manager(Refer snapshot attached) - Hardware name: CANCASEXL I want to get the name of the hardware. Is it possible to get through AutoIt ?
  6. Hey guys, I tried with the following and its working for me now: Run(@ComSpec & " /k echo log = D:\\myfile.txt >> %qm_AttachmentsFile%", "", @SW_HIDE) Thanks.
  7. Hi Anoop, Thanks for understanding my query. Here you described in the same way. EnvGet will not work in this case. I have req with autoit as follows: There is an environment variable " qm_AttachmentsFile " which is added to the process environment already during my application execution. Now The value of the environment variable "qm_AttachmentsFile" should be the the full pathname to the file. And It is very successful with the batch file: echo myfile = D:\\myfile.txt >> %qm_AttachmentsFile% In above line present in batch file, the value as full pathname to the file is getting appended in the environment variable " qm_AttachmentsFile ". But I dont want to use batch file, so I want to do this through AutoIt script. Any idea will be appreciated.
  8. Thanks for the reply !! I am using like this: EnvSet("qm_AttachmentsFile" ," D:\myfile.txt") But its not working..
  9. I have following in batch file: echo myfile = D:\\myfile.txt >> %qm_AttachmentsFile% In above, env variable is " qm_AttachmentsFile " where File path is getting appended. How i can do through AutoIt ? Any suggestion ?
×
×
  • Create New...