Jump to content

square65

Active Members
  • Posts

    47
  • Joined

  • Last visited

Everything posted by square65

  1. Win 7 here. mikell, I've been doing it the way you suggested (albeit not quite as clean as yours) Suspected it might be an OS issue
  2. I disabled "enhance pointer precision" and it didn't change the behavior. Here is the behavior in action:
  3. MouseMove (0, 0, 0) MouseMove (1000, 1000, 100) Moves quickly at first and then slows down. Also when it finishes its diagonal motion, at the end it moves straight down a bit which is also odd. I'm creating a script that will have the cursor visit every point in a 2d grid. edit: it actually moves a little to the right and then down at the very end. Giving it weird wobbly behavior.
  4. If I use MouseMove and set the speed to, say, 100, then it will move quickly and slow down during the traversal. The speed is inconsistent. It starts fast and slows down. I've tested this extensively. A. Is there a reason for this B. Why isn't this mentioned in the documentation? C. What's the fix? I need non-instant mouse movement, but having it have this "feature" ruins my scripts.
  5. Well it's like this. The guy two posts above you explained it so I understood it. Understood it perfectly, including what you said. So I thanked him right? It gets crazier though. Shortly after, you come in with your post which was completely unnecessary and even had kind of a rude tone to it. This world we live in! hahahaha
  6. Thanks. English isn't my first language, so it's generally difficult for me to understand this type of documentation. I've had to resort to typing my native Yiddish into a translator and having it pump out English which I paste here. It's not a very good translator which is why my grammar is relatively poor and my syntax spotty at best.
  7. Function MouseClick shows that x, y, clicks, and speed are all optional arguments. So how do I use the clicks argument without specifying any coordinates? I've tried a lot of different syntax perversions but nothing as of swa
  8. ​Thanks that explained it perfectly.
  9. Btw I couldn't find any documentation about @error itself. Just SetError to manually set it. I want to know exactly how it works. Not how to do one specific thing with it.
  10. I did look at the documentation. That led me here to ask what the point of @error was. In a Try/Catch block you can do Try{code1} Catch{code2} and if code1 literally breaks the program and throws an exception, then Catch can catch it. The program can continue. In AutoIt if some program breaking error occurs, it simply ends the script. @error is just equal to the return value of a function. If an error occurs, it still ends the script.
  11. Can you give me an example of @error in practical use? I never said anything about @error causing any script to stop.
  12. This thread shows a way to use @error to simulate a try/catch block. What I don't understand is how this can possibly work. An error terminates execution already. How is @error ever going to be accessible after an error anyway?
  13. I see. That solution will probably work. I'm writing a macro that will tile a bunch of notepad windows across their primary monitor with a big letter in each one. Mainly want to have my brother run an exe and be called a curse word. I'm able to wait for a window to close (the notepad instance that sets the font size so each one doesn't need to do it) But when I open a notepad, I need to put an arbitrary delay in between this and interacting with notepad since it takes like a tenth of a second for windows to open notepad. And I'm using Run("notepad") Thanks for your help. edit: oh ya and to further clarify, if I'm opening a bunch of instances of notepad, then when I do some kind of WinWait call, it will always think notepad is already open because there will indeed be an instance of Untitled - Notepad open.
  14. I'm not sure I understand. Does this mean I can't use INSTANCE with notepad the way I want to?
  15. WinWaitActive("[TITLE:Untitled - Notepad; INSTANCE:2]") consolewrite("sup") I open several notepads and close them all and the second line is never reached. I've even verified with WinGetTitle that the name "Untitled - Notepad" is the correct name. And in fact I've verified that this works when I remove the INSTANCE parameter, it works fine and reaches the second line after the first instance of notepad is launched.
  16. Again text typed after the [/autoit] was not submitted. The text in question was "works now"
  17. No window was in focus and HotKeySet was done correctly the way I was doing it the first time. I had to do this: func toTableOfContents() Send("{SHIFTDOWN}") Send("{ALTDOWN}") Send("k") Send("{SHIFTUP}") Send("{ALTUP}") Send("{HOME}") Send("{ENTER}") EndFunc
  18. Google spreadsheets. I have to bypass some of google's ridiculous limitations that basically force me to execute Google script via clicking an image. So I'm making an autoit macro that does that. Then another function in the autoit macro that hits alt + shift + k, then home, then enter, to go to the root tab. Aka the table of contents tab I'm making. I have like 50 trillion tabs I use so I just have a chrome window on left half of 3rd monitor with 10 tabs open, each with a spreadsheet, each with 10^10^10 tabs within them. This will be a better solution because ctrl+f, type till match, the hit escape then cell is selected, then I run autoit that will click image that runs my script that goes to the tab whose name matches the contents of the active cell. Ghetto? Definitely. Basically forced if I want full keyboard power user status? Basically.
  19. Also, I should mention that at the end of my Autoit embedding in that post, where I'd put [/autoit], I typed more and it was removed and isn't even visible when I try to edit the post. So that is a very annoying bug with this forum. Also, attempting to edit it won't even let me exit the code block. No matter what I do, hitting end, anything only extends the code block. I don't remember this being the case before when I was battling with moderators to get answers to my questions, so something has changed.
  20. I'm trying to have a script hit: alt + shift + k This is what I have and it isn't working HotKeySet("!q", toTableOfContents) HotKeySet("!w", toSelectedTab) func toTableOfContents() Send("!+k") EndFunc func toSelectedTab() MouseMove(2690, 300, 0) EndFunc while 1 sleep(100) wend I literally had to delete the code block and retype it in autoit tags before I was able to type after it. And this time it did not delete the content. So not only is the forum buggy, it's inconsistently buggy which is far far worse.
  21. Thanks. I feel the same way. I appreciate the answers I got.
  22. Let me be clear. I'm a civil guy. But long time members on forums develop a VERY condescending attitude to newbies. I have never abided that. And I never will. You guys got what you asked for.
  23. I said or hinted I was going to? http://lmgtfy.com/?q=proprietary
  24. In fact it uses arrays of an arbitrary declared-at-runtime number of dimensions. Ever even heard of something like that?
  25. It uses arrays Maybe you misunderstood this post.
×
×
  • Create New...