Jump to content



Photo

AutoIt and Python - Limited Functions


  • Please log in to reply
4 replies to this topic

#1 ryushi5

ryushi5

    Seeker

  • New Members
  • 2 posts

Posted 30 August 2011 - 04:42 AM

I'm using Python to call AutoIt functions, but some functions don't work. Is there a reason for this? If so, can I fix it?

from win32com.client import Dispatch Auto = Dispatch("AutoItX3.Control") def autoTest():     print Auto.MsgBox('')


When I run it I get this error:

line 516, in __getattr__     raise AttributeError("%s.%s" % (self._username_, attr)) AttributeError: AutoItX3.Control.MsgBox


It seems like it's reading 'MsgBox' as an attribute and not a function. Any thoughts?
  • aymhenry likes this







#2 ryushi5

ryushi5

    Seeker

  • New Members
  • 2 posts

Posted 30 August 2011 - 05:03 AM

Nevermind, I simply did not research well enough. Please disregard. :mellow:

#3 aymhenry

aymhenry

    Seeker

  • Active Members
  • 29 posts

Posted 28 November 2011 - 12:15 PM

but it is a very good idea Python call Autoit.

#4 rubyruy

rubyruy

    Seeker

  • New Members
  • 1 posts

Posted 07 December 2011 - 06:41 PM

Sooooo what was the problem?



Posted Image

#5 JohnOne

JohnOne

    John

  • Active Members
  • PipPipPipPipPipPip
  • 8,871 posts

Posted 13 December 2011 - 04:45 AM

I'm willing to guess that MsgBox(flag,title,msg) needs those parameters.
AutoIt Absolute Beginners Require a serial
Run('hh mk:@MSITStore:'&StringReplace(@AutoItExe,'.exe','.chm')&'::/html/tutorials/helloworld/helloworld.htm','',@SW_MAXIMIZE)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users