Jump to content

zeropoint

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by zeropoint

  1. Bump.. think _WinAPI_GetMousePos will do it?
  2. Bump... will someone knowledgeable please respond...
  3. This is basically what you need to do (psuedo-code): move mouse to server name click move mouse to ch click move mouse to account name box click input acc name move mouse to password box click input password move mouse to connect button click move mouse to place to select character click move mouse to "OK" click Now read the manual and figure out how to move the mouse, click, ect. Thetan above covered how to run the game from script. For reference, this is my quick logon code for another game, that assumes the game is already started, and you are at the menu screen: Func AutoLogon() _MouseMovePlus(-1280, -1024);mouse to top left _MouseMovePlus(640, 435);mouse to the account button Sleep(20) MouseClick("left") ;clicks on logon button Sleep(20) _MouseMovePlus(100, 240) ;moves down to OK button Sleep(20) Send("{BS}{BS}{BS}{BS}{BS}{BS}{BS}{BS}{BS}{BS}");clear out any previous input in password box Sleep(20) Send("PASSWORD") ;send the password Sleep(20) MouseClick("left") ;clicks on OK button Sleep(20) _MouseMovePlus(-100, -280) ;move up to select char Sleep(20) MouseClick("left") ;clicks char name Sleep(20) _MouseMovePlus(0, 550) ;move down to click log In Sleep(20) MouseClick("left") ;LOGON!!!!!! endfuncNote: I use _MouseMovePlus instead of normal MouseMove, because that doesn't work with game. The move code is crappy because I can't read the location of the cursor, so i must use movement relative to the top left corner of the screen. if anyone has solution, see my thread at http://www.autoitscript.com/forum/index.php?showtopic=64959
  4. Ok, the code I've been posting has been retarded... Since I can't figure out how to edit posts: apparently, the edit button appeared once I posted, see first post for code My code actually compiles and runs fine on my desktop. The issue here is that none of it works in the game window, in fact, it always returns the coordinates at the center, ie: if I have res=1280x1024, and the game is fullscreen, both of my functions give me 640x512, all the time. My theory is that the game has a mouse movement system like an fps. The mouse is trapped at the center of the screen. There is a software cursor. When the mouse is moved, it gets sent back to the center and the software cursor is updated with the amount the mouse moved. If this is the case, how can I get the position of the software cursor?
  5. oops... You're right about the first code. Should be: $MPos = _MouseGetPosPlus() MsgBox ( 0, "MSG", "MousePos: "& $MPos[0] &", " & $MPos[1] , 1 ) And it works on my desktop and in every other window besides the game window. When I use it in the game window, it only returns the same coordinate no matter where my mouse is inside the window...
  6. How does your memory-reading bot find the correct memory addresses to read its information from? Do you find the static addresses yourself and hardcode them into the bot? Then the bot only works for the current version of WoW, doesn't it? So you probably need to find teh new addresses every update. I'm curious how you find these addresses.
  7. Bump. Still unsolved... Somehow relative MouseMovePlus works but not absolute? Tried this approach: http://www.autoitscript.com/forum/index.ph...use+position%5C it will show the coordinates of any point I specify, relative to the client. But how is that useful? I don't know where the pointer is in the first place!
  8. I'm having trouble finding the mouse coordinates within a game window. This is the working code: Func getpos() $x = MouseGetPos(0) $y = MouseGetPos(1) MsgBox ( 0, "MSG", "MousePos: "& $x &", " & $y , 1 ) endfunc The only result i get is the coordinates of the game window, no matter where the cursor is in the window. MouseMove also failed to move the mouse in the window. However, I can move the mouse with MouseMovePlus. When I tried to read the mouse coordinates at a similar low level, it still didnt work! Func _MouseGetPosPlus() $tPoint = DllStructCreate("long X; long Y") DllCall("user32.dll", "none", "GetCursorPos", "ptr", DllStructGetPtr($tPoint)) ConsoleWrite("Cursor X position: " & DllStructGetData($tPoint, "X") & @CR) ConsoleWrite("Cursor Y position: " & DllStructGetData($tPoint, "Y") & @CR) EndFunc Can someone please help me with this? I am wondering how the game is blocking the mousecoordinates. I think that the game might be using a software cursor. If so, is it possible to read the position? The game is Xenimus, and can be downloaded at www.xenimus.com
×
×
  • Create New...