Jump to content

strikeraid

Members
  • Posts

    19
  • Joined

  • Last visited

Everything posted by strikeraid

  1. _FFCmd("FFau3.WCD=window.content.top.document;") add that line before each _FFClick
  2. I came across the same issue. Solved it by putting IE9 in compatibility mode for IE8. Press F12 in the IE9 Browser and play with the two buttons on the top bar where it says "Browser Mode." Good luck. (:
  3. Nevermind. I figured it was because I didn't declare an array in $ListView3_Index = _GUIListViewEx_Init($ListView3, "", 0, 0x00FF00) The program adds items to a listview so I don't have an array that is put into the listview. I'll just forget about dragging.
  4. I've been getting this error when dragging items. C:\Program Files (x86)\AutoIt3\Include\GuiListViewEx.au3 (954) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: $aItemData[$i] = $aGLVEx_Array[$iGLVExDragged_Index + 1][$i] $aItemData[$i] = ^ ERROR I'm not sure if I'm missing something or not, but I'm using the UDF Listview with these lines $ListView3_Index = _GUIListViewEx_Init($ListView3, "", 0, 0x00FF00) _GUIListViewEx_DragRegister() Should I set an active Listview since I have 3?
  5. Thanks! I bookmarked this page just in case. (: Glad I did. Saving to HTML would add variety; handy indeed.
  6. This might be what I'm looking for... Genius guinness Is there any way to reverse it and load the data from the html?
  7. Maybe do the above suggestion and instead of having "Until $fullstamina" put "Until $fullstamina = 1" or "Until $fullstamina = true"
  8. This is a very interesting script. Is it possible to embed an exe, say an autoit script, into the dll so that you don't have to load it? Dunno if i'm even making any sense. Hahaha.
  9. I'm guessing he tried to use _MemoryOpen, but that failed even with the PID.
  10. Hope you find a solution soon. This would be very helpful if we could get wingetprocess to allow us to guess and check each 1 to see if it works.
  11. Search function in this forum isn't very accurate. I want to use this : http://msdn.microsoft.com/en-us/library/ms633522%28VS.85%29.aspx : in my autoit script to retrieve the processID. wingetprocess and processexist won't work for my situation so I turned to another language. I remember reading about plugins? Could that be what I'm searching for? Or maybe even something to do with DLLs. I'm going to continue to search the 1000 posts but in the meanwhile I thought someone could provide a quicker response. Going to go google it as well. Thanks. (Don't think I need to post a script since I just need to get the ProcessID by window name.) EDIT: Hmmm. Might not necessarily be C++. Read the bottom of that link and there's only vbscript and C#. This thread is very informative about plugins. >_< http://www.autoitscript.com/forum/index.php?showtopic=15279&st=160&p=710663&hl=plugin&fromsearch=1&#entry710663
  12. So this is going to be my gui, but I can't seem to add controls such as tabs or buttons. When I try to add a control after line 60 (or anywhere) it doesn't show on the GUI. I've tried $ws_ex_topmost and looking in koda to order my layers. #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <TabConstants.au3> #include <WindowsConstants.au3> #include <GDIPlus.au3>; this is where the magic happens, people Global $aSquere = 0 Global Const $AC_SRC_ALPHA = 1 ;~ Global Const $ULW_ALPHA = 2 Global $old_string = "", $runthis = "" Global $launchDir = @DesktopDir FileInstall("C:\Documents and Settings\Owner\My Documents\My Pictures\test.gif",@HomeDrive&"/test0.gif") FileInstall("C:\Documents and Settings\Owner\My Documents\My Pictures\test2.gif",@HomeDrive&"/test2.gif") $Alpha = InputBox("Skin", "Please enter Either 1(Green Skin) or 2(Black Skin)",1,"", 340, 120) if $Alpha == 1 then $X = @HomeDrive&"/test0.gif" Else EndIf if $Alpha == 2 then $X = @HomeDrive&"/test2.gif" Else EndIf ; Load PNG file as GDI bitmap _GDIPlus_Startup() $pngSrc = $x $hImage = _GDIPlus_ImageLoadFromFile($pngSrc) ; Extract image width and height from PNG $width = _GDIPlus_ImageGetWidth($hImage) $height = _GDIPlus_ImageGetHeight($hImage) ; Create layered window $GUI = GUICreate("test", $width, $height, -1, -1, $WS_POPUP, $WS_EX_LAYERED) SetBitmap($GUI, $hImage, 0) ; Register notification messages GUIRegisterMsg($WM_NCHITTEST, "WM_NCHITTEST") GUISetState() WinSetOnTop($GUI, "", 1) ;fade in png background For $i = 0 To 130 Step 1 SetBitmap($GUI, $hImage, $i) Next ; create child MDI gui window to hold controls ; this part could use some work - there is some flicker sometimes... $controlGui = GUICreate("ControlGUI", $width, $height, 0, 0, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_MDICHILD), $GUI) ; child window transparency is required to accomplish the full effect, so $WS_EX_LAYERED above, and ; I think the way this works is the transparent window color is based on the image you set here: GUICtrlCreatePic(@HomeDrive& "\Windows\System\grey.gif", 0, 0, $width, $height) GUICtrlSetState(-1, $GUI_DISABLE) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd AdlibDisable() GUIDelete($controlGui) ;fade out png background For $i = 130 To 0 Step -1 SetBitmap($GUI, $hImage, $i) Next ; Release resources _WinAPI_DeleteObject($hImage) _GDIPlus_Shutdown() ; ==================================================================================================== ; Handle the WM_NCHITTEST for the layered window so it can be dragged by clicking anywhere on the image. ; ==================================================================================================== Func WM_NCHITTEST($hWnd, $iMsg, $iwParam, $ilParam) If ($hWnd = $GUI) And ($iMsg = $WM_NCHITTEST) Then Return $HTCAPTION EndFunc ;==>WM_NCHITTEST ; ==================================================================================================== ; SetBitMap ; ==================================================================================================== Func SetBitmap($hGUI, $hImage, $iOpacity) Local $hScrDC, $hMemDC, $hBitmap, $hOld, $pSize, $tSize, $pSource, $tSource, $pBlend, $tBlend $hScrDC = _WinAPI_GetDC(0) $hMemDC = _WinAPI_CreateCompatibleDC($hScrDC) $hBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage) $hOld = _WinAPI_SelectObject($hMemDC, $hBitmap) $tSize = DllStructCreate($tagSIZE) $pSize = DllStructGetPtr($tSize) DllStructSetData($tSize, "X", _GDIPlus_ImageGetWidth($hImage)) DllStructSetData($tSize, "Y", _GDIPlus_ImageGetHeight($hImage)) $tSource = DllStructCreate($tagPOINT) $pSource = DllStructGetPtr($tSource) $tBlend = DllStructCreate($tagBLENDFUNCTION) $pBlend = DllStructGetPtr($tBlend) DllStructSetData($tBlend, "Alpha", $iOpacity) DllStructSetData($tBlend, "Format", $AC_SRC_ALPHA) _WinAPI_UpdateLayeredWindow($hGUI, $hScrDC, 0, $pSize, $hMemDC, $pSource, 0, $pBlend, $ULW_ALPHA) _WinAPI_ReleaseDC(0, $hScrDC) _WinAPI_SelectObject($hMemDC, $hOld) _WinAPI_DeleteObject($hBitmap) _WinAPI_DeleteDC($hMemDC) EndFunc ;==>SetBitmap
  13. yea. CE still works. that hidden process thing makes alot of good bot functions not work. maybe we should just make an autoit script that runs CE in the background/hidden to edit the memory.
  14. my thread is basically the same as this one. i bet you're talking about twelvesky2. also anything that uses process in it won't work because the process is being hidden. tritiny
  15. Okay, so this is what I used to have that worked. $TwelveSky2= WinGetProcess("TwelveSky2") Const $AnimAdr = 0x00C85D97, $RevValue = 0 func Revive() $Mem_Open = _MemoryOpen($TwelveSky2) _MemoryWrite($AnimAdr, $Mem_Open, $RevValue) _MemoryClose($Mem_Open) EndFunc It was on a toggle button. Was planning on making it auto revive me in game. So basically the Process "TwelveSky2" doesn't exist because another file, dunmgr.des, is hiding the process name. Using a cheatengine, the process is hidden also, but luckily for the CE it has the option to choose window list and therefore regains the ability to attach itself to the game, enabling us to change addresses to gain an advantage over others.
  16. wouldn't you like to know? lol. its TwelveSky2.exe my intentions should be obvious. i want to change the values of some addresses to improve my bot script.
  17. winapi probably doesn't work. does a dllcall work here?
  18. I want to edit the memory. And it doesn't show up on the processlist. it gets blocked/replaced by a dummy file.
  19. So basically, I use wingetprocess("process1") to get the pid, but the process is being hidden now. (typical mmorpgs. lol.) I want to use the window list to obtain the PID. I have searched for hours and have come across the following links: http://www.autoitscript.com/forum/index.php?showtopic=98182&st=0&p=706684&hl=PID&fromsearch=1&#entry706684 http://www.autoitscript.com/forum/index.php?showtopic=97833&st=0&p=703478&hl=GetWindowThreadProcessId&fromsearch=1&#entry703478 http://www.autoitscript.com/forum/index.php?showtopic=98180&st=0&p=706333&hl=PID&fromsearch=1&#entry706333 http://www.autoitscript.com/forum/index.php?showtopic=71612 I haven't gotten any straight answers from these, but my answer may lie with winapi getfocus. i was also hoping winlist could be used to get the pid. anyone know what i could do?
×
×
  • Create New...