Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/25/2012 in all areas

  1. Since there are WAY to many posts on how to SRE something I thought I would create a nice little tester. This thing does SRE and SRER. Loads files to test. Gets internet content to test. And more! Here it is: SRETesterV2.1.au3 Prev DL - 211 Enjoy!
    1 point
  2. Someone who is more knowledgeable than I may wander along and correct me, but I believe you have to include the window title in order for ControlSend to work properly, which would mean knowing the window name. If part of the window title will differ (e.g. Notepad - 123 or Notepad - 456), you can look at WinTitleMatchMode.
    1 point
  3. The help file offers an example when you have a look at _IEGetObjById.
    1 point
  4. What about this? ControlClick("Program - Home", "", "[CLASS:TRzBMToolbarButton; INSTANCE:5]")
    1 point
  5. Here is the best advice you are likely to get. Do not use AU3Record to write your scripts, it is not reliable, and you will spend more time trying to find a reason why, than it will take to write a proper script.
    1 point
  6. Keep this MSDN comment on SetWindowLong in mind.
    1 point
  7. 1 point
  8. http://autoit-script.ru/index.php/topic,8934.msg60580.html#msg60580
    1 point
  9. I have a visually impaired friend using, what I believe is called, NVDA screen reader and I clearly remember him teling me he has big problems here reading text within code tags. Apparently the reader can't read lines correctly because of the style tags. If that, or something similar is the reason Notniat that you don't use code tags when posting, then I apologize in behalf of the forum staff for moderator editing your post. Maybe send short PM to the moderator to avoid that in the future. If it's just your ignorance then forget that I wrote this post and do what he says. Thank you for understanding.
    1 point
  10. trancexx

    CopyMemory API Not work?

    You are doing plenty of things wrong. But hey, I can read some opcode and mnemonics. Study this: MsgBox(0, "", MyPathEx()) Func MyPathEx() ; Opcode is 32 bit only If @AutoItX64 Then Return ; OPCODE: ; 64A130000000 mov eax, dword fs:[0x30] ; 8B4010 mov eax, [eax+0x10] ; 8B403C mov eax, [eax+0x3C] ; C3 ret Local $OP = "0x64A1300000008B40108B403CC3" ; Bynary len Local $iCodeSize = BinaryLen($OP) ; Allocate memory Local $pCodeBuffer = VirtualAlloc(0, $iCodeSize) ; Byte struct at that address Local $tCodeBuffer = DllStructCreate("byte[" & $iCodeSize & "]", $pCodeBuffer) ; Copy opcode DllStructSetData($tCodeBuffer, 1, $OP) ; Mark as executable code Local Const $PAGE_EXECUTE = 16 VirtualProtect($pCodeBuffer, $iCodeSize, $PAGE_EXECUTE) ; Execute the code Local $aCall = DllCallAddress("wstr", $pCodeBuffer) ; Free allocated VirtualFree($pCodeBuffer) ; Rerturn the result Return $aCall[0] EndFunc Func VirtualProtect($pAddress, $iSize, $iProtection) Local $aCall = DllCall("kernel32.dll", "bool", "VirtualProtect", "ptr", $pAddress, "dword_ptr", $iSize, "dword", $iProtection, "dword*", 0) If @error Or Not $aCall[0] Then Return SetError(1, 0, 0) Return 1 EndFunc Func VirtualAlloc($pAddress, $iSize, $iAllocationType = 0x1000, $iProtect = 4) ; default is MEM_COMMIT and PAGE_READWRITE Local $aCall = DllCall("kernel32.dll", "ptr", "VirtualAlloc", "ptr", $pAddress, "dword_ptr", $iSize, "dword", $iAllocationType, "dword", $iProtect) If @error Or Not $aCall[0] Then Return SetError(1, 0, 0) Return $aCall[0] EndFunc Func VirtualFree($pAddress, $iSize = 0, $iFreeType = 0x8000) ; MEM_RELEASE default Local $aCall = DllCall("kernel32.dll", "bool", "VirtualFree", "ptr", $pAddress, "dword_ptr", $iSize, "dword", $iFreeType) If @error Or Not $aCall[0] Then Return SetError(1, 0, 0) Return $aCall[0] EndFunc ...You will see how to do that, almost correctly.
    1 point
  11. Inverted, Take a look at the last example in the Recursion tutorial in the Wiki and the text beneath it. M23
    1 point
×
×
  • Create New...