Jump to content

AussieTimmeh

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by AussieTimmeh

  1. Please disregard, I am an idiot. I did not change the value in guinesses example to checksum the whole file instead of the 25 percent used in the example. Once, I did this, then all I need to do is remove the 0x at the front and the value is the same.
  2. Hi all, I just updated to the latest AutoIT and Scite and I've found that plugins are now no longer supported. I used the plugin to get MD5 Checksums of files in my script, as follows: ;Open the plugin #compiler_plugin_funcs = MD5Hash $MD5Plugin = PluginOpen(@ScriptDir & "\MD5Hash.dll") ;Get the MD5 checksum of a file $Checksum = MD5Hash("C:\file.txt", 1 , True) ;Close the plugin PluginClose($MD5Plugin) What can I do to replace this function? Googling this issue is coming up with some amazingly complicated potential solutions like this: '?do=embed' frameborder='0' data-embedContent>> This looked like a potential easy solution from guiness: But the value returned is not the same (for example, using the old plugin I get F8F783F2CBDF483F576557EFC0ECBC94, with guinesses I get 0xAE1197F85300EE17AA5D432AD39136EB for the same file. I've just spent a couple hours trying to get something to work but no luck so far. If anyone can help me out, I would be much appreciated.
  3. Thanks for the info and ideas guys, I'll see what I can come up with.
  4. Hi all, I have used ControlClick successfully many times before when I want to click the control I am referencing. However I am having trouble getting my head around clicking buttons that I can't reference directly. For a program I use at work, I need to click on a series of buttons whose locations always remain the same but whose instance numbers change depending on how many assets there are that day. However, one button is always a constant instance number. Now, using MouseMove I can get the mouse to move to each of these buttons by referencing the known constant instance. ;Find the known button position $buttonpos = ControlGetPos("", "", "[CLASS:QWidget; INSTANCE:22]") ;Move the mouse to button 1 MouseMove($buttonpos[0] + 20, $buttonpos[1] -50) Sleep(2000) ;Move the mouse to button 2 MouseMove($buttonpos[0] + 40, $buttonpos[1] -50) Sleep(2000) Now, I can use MouseClick to click these buttons but it actually moves the mouse, which I am trying to avoid. I know I can sample the mouse position and return the mouse fairly quickly, but it seems messy when I think I should be able to do what I want with ControlClick, which does not move the mouse. However, this code does not work: ;Click button 1 ControlClick("", "", "[CLASS:QWidget; INSTANCE:22]", "left", 1, 20, -50) Sleep(2000) ;Click button 1 ControlClick("", "", "[CLASS:QWidget; INSTANCE:22]", "left", 1, 40, -50) Sleep(2000) Can anyone enlighten me as to why this does not work? Is there any debug or way I can set Windows to see where the ControlClick is actually clicking on the screen? Is there a better way to do this without moving the mouse?
  5. Hi all, I found a problem in a wiki help page and wanted to get it updated as the page helped me a lot but this one error caused me heartache. http://www.autoitscript.com/wiki/Moving_and_Resizing_PopUp_GUIs Several examples call out a function called SendMessage which crashes the script, it should be _SendMessage instead. That works for the current version of AutoIt. Hope that someone can update that, it's an otherwise fantastic article. Tim
  6. Ok, I've managed to solve this by sampling a pixel color in the company logo that sits at the top of the page and scrolls with the page. If the color is as per the script, it will display the tips, if not, then it removes them. If anyone does know of an IE control for that scrolling, I'm always keen to learn, otherwise we're at least working.
  7. Hi all, I've been searching threads and example scripts most of the morning but I haven't been able to solve a particular need yet. I am writing a tool-tips overlay for a browser based work application, to reduce the amount of repetitive questions from people. We use IE exclusively thanks to IT policy. The tops of the pages are constant and this is where my tips overlay goes. The lower parts return search results and could be any length. When the user scrolls down away from the top, I want to know this so I can hide the tips, until they scroll back to the top. I cannot work out if IE.au3 or any of the others can tell me if the page has been scrolled down or not. I think these threads got closest but I haven't had any joy: I also searched thru IE.au3 but did not find anything. I found some variables that look like $oBody.scrollHeight in example scripts but don't know where a listing is for them, to see if there is a scroll.position or something. I heard DaleHolm is the IE man but I went thru his scripts and didn't find anything, or completely missed it if it was there, which is entirely possible. I am basically just trying to work out: is the page at the top, or is it scrolled away from the top? Can anyone assist me please? #include <IE.au3> $oIE = _IE_Example("form") While 1 $oBody = _IETagNameGetCollection($oIE, "BODY", 0) ConsoleWrite("Body Height: " & _IEPropertyGet($oBody, "height") & @CR) ConsoleWrite("scrollHeight: " & $oBody.scrollHeight & @CR) ConsoleWrite("scrollPosition: " & $oBody.scrollPosition & @CR) ;<---------------??? This doesn't work because I made it up, but I am looking for something like this. Sleep(5000) Wend
  8. The scripts want to include <persoAutoitObject.au3>, which is not part of the download package. I've briefly looked at this but unsure how to make it work without this file, as when you try to run the examples provided, they fail when referencing <persoAutoitObject.au3>.
  9. Thanks for the reply there, appreciate you taking the time to respond.
  10. Hi guys, I am using AutoIt to write a small interface at work. I love the community and enjoy learning and hope to give back when I am more well versed on it. I have often come to the forums to learn and want to use a UDF or two posted by talented people here. I was fairly sure that I read somewhere that content posted on these forums as examples are free-to-use, but I cannot find anything to that effect through searching. I have found the overall license: http://www.autoitscript.com/autoit3/docs/license.htm but it doesn't seem to explain about user generated content on the forum. My apologies if it's right in front of my face somewhere, but can anyone give me guidance on this at all please? Thank you.
  11. I have joined the forums specifically to start thanking those that have taken the time to help others like myself with great things like this. Thank you for your work on this great include, I appreciate it.
×
×
  • Create New...