Jump to content

newb_powa'

Active Members
  • Posts

    87
  • Joined

  • Last visited

newb_powa''s Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. Did you try it in window mode ?? (add -w to shortcut) because, if i remember right, Diablo Window is 800 / 600 but it's not positioned from 0,0. Does it even make sens ?? Or you can try with relative coord based on window position.
  2. try using Run() instead of FileOpen
  3. Have you tested your function witch a static image like a screenie that can reproduce the situation where there is an enemy, and vice versa? Maybe this is guild wars that use an anti cheat engine that make pixelsearch not work while in game. You can also try to put some msgbox to see when the function return false and when it return true, this may help you to understand what is happening.
  4. It does the trick $oInputs = _IETagNameGetCollection ($oIE, "input") For $oInput In $oInputs If $oInput.value = "[ Ok! ]" Then _IEAction ($oInput, "click") EndIf Next I just put here the code I've used so if someone have the same question, there is the answer. Thanks for the tips Dale
  5. I knew about Action ==> click, but I did'nt for _IETagnameGetCollection or _IEFormElementGetCollection, I will look what I get from those two function, thanks
  6. I'm trying to automate a click on a button, but the problem is that the button got no ID. <INPUT style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; COLOR: white; BORDER-BOTTOM: 1px solid; BACKGROUND-COLOR: #554433" onclick=sendLevelUp(); type=button value="[ Ok! ]"> This is the html code of the button. I've looked trought the help file but I can't find any function that will create a reference to an object by his value. If there is a way just tell it to me, and if there is not, how can I click this button ? Between, the button is'nt in a form for what i can see. Thanks for help.
  7. This will make the coordinate work on every computer, but if you are trying to automate IE you should look at _IE UDF. MouseMove((X/Width of 1rst computer)*@DesktopWidth, (Y/Height of 1rst computer)*@DesktopHeight) ex: MouseMove((50/1024)*@DesktopWidth, (50/728)*@DesktopHeight)
  8. When running the code, it is saying that "$wall is undeclared", just puting "$wall = 0" at the top of the script should fix it. When you win or lose, you call one of these line : "Run(@ScriptFullPath)" or "Run(@AutoItExe & " " & @ScriptName)", wich depend if the script is compiled or not. I found out that if it's not compiled, @ScriptName will only return the first word of the script name, so if you named it using two word, it will drop an error. This is just a little bug in the maccro, maybe it is just me, I think someone else should try. Other than that, I like this script, good job
  9. I wrote a taskbar some time ago. It is still not fully functionnal, but the function to retrieve the window name and hwnd is working. This will let you maximize/minimize the window when clicking. I just don't know if this will help you, because I don't know what your code is looking like, but you can try to see how I did it. I did used label instead of button, it is pretty easy to change to your need. Well I'll attach the code, it need some image to run, but you can look at the code without them. I wish it helped in some way ^^ TBar.au3
  10. #Include <Misc.au3> hotkeyset("w", "up") Hotkeyset("{ESC}", "_exit") while 1 sleep(50) wend Func _exit() Exit EndFunc Func up() Send("{UP DOWN}") While _IsPressed('57') Sleep(10) WEnd Send("{UP UP}") EndFunc This is the mix of the two exemple Joon and Piano Man gave you. It's untested but try it.
  11. #include <GUIConstants.au3> $GUI = GUICreate("Test", 80, 80, -1, -1, $WS_POPUP) GUICtrlCreatePic(".\test.bmp", 0, 0, 80, 80) $a = DLLCall(".\BMP2RGN.dll","int","BMP2RGN", "str", ".\test.bmp", "int", 0, "int", 0, "int", 0) SetWindowRgn($GUI, $a[0]) GUISetState() Sleep(5000) Func SetWindowRgn($h_win, $rgn) DllCall("user32.dll", "long", "SetWindowRgn", "hwnd", $h_win, "long", $rgn, "int", 1) EndFunc I am not sure if this is what you are looking for ... Instead of making the background transparent, it will make the GUI take the shape of your picture. To make it work, the picture have to be in .bmp format and the background (of the picture) have to be black instead of transparent. You will also need the dll to be in the script direcory, but you can move it to where you want by changing the location in the code. This function is not by me, I took it from an old post I can't remember where ... I wish it help you You can download the dll and a test picture that work with the exemple, they're attached. test.bmp BMP2RGN.dll
  12. OK I will give it a try a answer on this topic, thanks for now it's a little bit late to test so I'll come back as soon as possible
  13. I want to know if there is a way to prevent Internet Explorer, when embedded in a GUI, to catch "Backspace" when the GUI don't have the focus. If I try to press "Backspace" in an Input control and I have previously clicked on any link on the web page, it will perform a "BACK" action. I don't know if I am really clear but there is a simple exemple. #include <GUIConstants.au3> ; Gui 1 $oIE = ObjCreate("Shell.Explorer.2") $Form1 = GUICreate("Exemple", 896, 257, -1, -1) $GUIActiveX = GUICtrlCreateObj($oIE, 8, 8, 820, 241) $Button1 = GUICtrlCreateButton("Ok", 840, 8, 49, 241) $oIE.navigate("http://www.autoitscript.com") GUISetState(@SW_SHOW, $Form1) ; Gui 2 $Form2 = GUICreate("Test", 244, 37, -1, -1) $Input1 = GUICtrlCreateInput("Try to Use BackSpace", 8, 8, 137, 21, -1, $WS_EX_CLIENTEDGE) $Button2 = GUICtrlCreateButton("Ok", 135, 8, 81, 21) GUISetState(@SW_HIDE, $Form2) While 1 $msg = GuiGetMsg() If WinActive($Form1) Then Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $Button1 GUISetState(@SW_SHOW, $Form2) EndSelect ElseIf WinActive($Form2) Then Select Case $msg = $GUI_EVENT_CLOSE GUISetState(@SW_HIDE, $Form2) Case $msg = $Button2 GUISetState(@SW_HIDE, $Form2) EndSelect EndIf WEnd Exit
  14. I know a bit Flyff, and because of gameguard, you can't send key to the window and you can't retrieve de color of the pixel, it mean your botting is gonna be hard...
  15. I understand what u mean by easier navigate I deleted my unecessary post It is still big Edit : U forgot to add these line in the ListWin Func (line 360) GUICtrlDelete($Labels[$d][20]) GUICtrlDelete($Labels[$d][21]) GUICtrlDelete($Labels[$d][22]) GUICtrlDelete($Labels[$d][23])
×
×
  • Create New...