Jump to content

Spoonsx21

Members
  • Posts

    2
  • Joined

  • Last visited

Spoonsx21's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. You guys are a lifesaver, thank you! I'll chock that one up to my inexperience with the Win API, not AutoItX. Thanks again. -Paul P.S. What would be a good buffer size? Is the buffer size fixed for any windows handle?
  2. Hello, Let me start off by saying that AutoIt is amazing. I was going to try writing all of my program in the AutoIt scripting language, but it's too much of a hassle to learn a new language for a single program. So I decided to use AutoItX. I've had plenty of C++ experience, and I've messed around with Ogre for the last few weeks new. However, I haven't done much with the Windows API. Anyways, that being said, the documentation for AutoItX is TERRIBLE. And normally, I wouldn't complain, but there are no other resources on this. And so few people have posted anything about this problem. For my other issues I've looked at the parallel function inside the AutoIt language, but I just can't figure out the issue now. So, if somebody could explain my problem, I would be eternally greatful: So AU3_WinGetHandle takes in 4 arguments, the title of the window handle we want, another argument I have no idea what it does, the LPWSTR that gets our handle, and the nBufSize. I call AU3_WinGetHandle(TEXT("Untitled - "), TEXT(""), stringHere, 0); And every time no matter what, I get a bad ptr error. I made the first input "Untitled - " because I launch notepad and I'm just testing it on a small program before I run it on my real program. Does it matter what type stringHere is? Does it need to be a different type for it to work? Should I be sending in something different for my first argument? Does anyone know of a way to do this without AutoItX? And is that a better way to find the window handle? I really like using the library, but it's impossible to get information on how to use the function if the docs only have information on an alternate version of the function you're using (again though, I enjoy the library, and this is in no way meant to be me trashing auto it, I'm just frustrated).
×
×
  • Create New...