xanthar Posted November 7, 2004 Share Posted November 7, 2004 I cant seem to get mousemove to work properly in a full window game. The mouse just sticks up in the top left or in the borders of the game. I am running desktop 1024/768 game 640/480 Hope you can help, sorry if this is a repeat! i tried searching to make sure to not make a double post. TIA Xanthar Link to comment Share on other sites More sharing options...
CyberSlug Posted November 7, 2004 Share Posted November 7, 2004 Posting an example of your code would help.... Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
xanthar Posted November 7, 2004 Author Share Posted November 7, 2004 Posting an example of your code would help....<{POST_SNAPBACK}>sorry, right now I am just trying to get my mouse to move, I have coded in autoit before for a web page purpose...but never for a full screen game.I am just using,sleep(20000)mousemove(300,300).....just trying to get my mouse to move right now Link to comment Share on other sites More sharing options...
this-is-me Posted November 7, 2004 Share Posted November 7, 2004 Does the game have a custom cursor? Who else would I be? Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted November 7, 2004 Share Posted November 7, 2004 I tried writing a mouse moving script for the RPG game "Morrowind". The probelm with Morrowind was, that when I would tell it to move the mouse at all, it would drop the mouse out of the program. That may also be your problem. It appears that many game designers have a tendancy to do weird things to stop automations. Link to comment Share on other sites More sharing options...
xanthar Posted November 7, 2004 Author Share Posted November 7, 2004 as far as custom cursors, yes...it does... py7 - that could be it I guess, but my window doesnt quit out...wouldn't that be a sign of mouse dropping out? Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted November 7, 2004 Share Posted November 7, 2004 My name is Python =). And no. On Morrowind, the game did not close out.. The game was still up, but after the script ended, the mouse was dragged to the very bottom top or sides of the program, to a point where it could be seen maybe a little, or not at all. I tested this for about a week and tried many different ways. Link to comment Share on other sites More sharing options...
xanthar Posted November 7, 2004 Author Share Posted November 7, 2004 My name is Python =). And no. On Morrowind, the game did not close out.. The game was still up, but after the script ended, the mouse was dragged to the very bottom top or sides of the program, to a point where it could be seen maybe a little, or not at all. I tested this for about a week and tried many different ways.<{POST_SNAPBACK}>No luck ?..Am I doomed to actually play the game!!!!??? Link to comment Share on other sites More sharing options...
this-is-me Posted November 7, 2004 Share Posted November 7, 2004 Afraid so... Wow, you might actually have to DO something... Who else would I be? Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted November 7, 2004 Share Posted November 7, 2004 No, you arent doomed quite yet. What game is it? Maybe I can help you think of something. I am always glad to help hack a game! You can even AIM me right now: slytheshadowlord Link to comment Share on other sites More sharing options...
xanthar Posted November 7, 2004 Author Share Posted November 7, 2004 My problem is still unsolved...Yes it uses custom cursors.Let me explain what i have done/tried so far.-I am trying to play a game that can only be ran in full screen mode-My computer screen res is 1024x768-Game res is 640x480---I tested the following in the game, so I know autoit is working on the game...------mouseclick, I can click the mouse in the game------send, I can send keys to the game--I cannot move the mouse--The game DOES NOT allow me to use wasd, or any keyboard keys to move... I must MOVE and click the mouse....but i am unable to move the mouse, so I am here current code:sleep(20000); wait 20 secondsmousemove(340,340)effects; Game cursor will jump to the edge of the game screen.TIAXanthar Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted November 7, 2004 Share Posted November 7, 2004 There is a MouseLog script in the Scripts And Scraps Forum. *** Matt @ MPCS Link to comment Share on other sites More sharing options...
xanthar Posted November 8, 2004 Author Share Posted November 8, 2004 I just wrote one really quick Code: WinWaitActive("Title") sleep(5000) $file = FileOpen("log.txt", 1) $x=0 while($x<100); do for 100 seconds $pos = MouseGetPos() FileWriteLine($file, $x & " : (x) " & $pos[0] & ", (y) " & $pos[1]) $x=$x+1 sleep(1000);sleep 1 second wend FileClose($file) Results: expandcollapse popup0 : (x) 583, (y) 59 1 : (x) 439, (y) 443 2 : (x) 83, (y) 143 3 : (x) 474, (y) 71 4 : (x) 543, (y) 239 5 : (x) 130, (y) 418 6 : (x) 475, (y) 55 7 : (x) 72, (y) 153 8 : (x) 533, (y) 409 9 : (x) 114, (y) 74 10 : (x) 238, (y) 304 11 : (x) 333, (y) 20 12 : (x) 151, (y) 143 13 : (x) 511, (y) 262 14 : (x) 513, (y) 79 15 : (x) 380, (y) 0 16 : (x) 633, (y) 224 17 : (x) 639, (y) 165 18 : (x) 475, (y) 273 19 : (x) 326, (y) 335 20 : (x) 186, (y) 94 21 : (x) 446, (y) 68 22 : (x) 340, (y) 307 23 : (x) 287, (y) 312 24 : (x) 277, (y) 302 25 : (x) 356, (y) 221 26 : (x) 356, (y) 221 27 : (x) 356, (y) 221 28 : (x) 516, (y) 122 29 : (x) 538, (y) 55 30 : (x) 538, (y) 55 31 : (x) 538, (y) 55 32 : (x) 538, (y) 55 33 : (x) 538, (y) 55 34 : (x) 538, (y) 55 35 : (x) 538, (y) 55 36 : (x) 346, (y) 94 37 : (x) 639, (y) 9 38 : (x) 199, (y) 66 39 : (x) 193, (y) 151 40 : (x) 108, (y) 140 41 : (x) 381, (y) 28 42 : (x) 442, (y) 28 43 : (x) 325, (y) 47 44 : (x) 53, (y) 116 45 : (x) 54, (y) 117 46 : (x) 369, (y) 0 47 : (x) 285, (y) 0 48 : (x) 269, (y) 0 49 : (x) 269, (y) 0 50 : (x) 269, (y) 0 51 : (x) 269, (y) 0 52 : (x) 242, (y) 51 53 : (x) 242, (y) 43 54 : (x) 242, (y) 45 55 : (x) 472, (y) 301 56 : (x) 512, (y) 309 57 : (x) 501, (y) 302 58 : (x) 397, (y) 166 59 : (x) 499, (y) 126 60 : (x) 490, (y) 125 61 : (x) 490, (y) 125 62 : (x) 490, (y) 125 63 : (x) 490, (y) 125 64 : (x) 490, (y) 125 65 : (x) 418, (y) 184 66 : (x) 418, (y) 184 67 : (x) 418, (y) 184 68 : (x) 418, (y) 184 69 : (x) 418, (y) 184 70 : (x) 418, (y) 184 71 : (x) 418, (y) 184 72 : (x) 392, (y) 223 73 : (x) 443, (y) 142 74 : (x) 302, (y) 107 75 : (x) 639, (y) 36 76 : (x) 624, (y) 34 77 : (x) 620, (y) 27 78 : (x) 628, (y) 27 79 : (x) 628, (y) 27 80 : (x) 417, (y) 31 81 : (x) 370, (y) 9 82 : (x) 286, (y) 8 83 : (x) 433, (y) 293 84 : (x) 345, (y) 297 85 : (x) 564, (y) 4 86 : (x) 639, (y) 9 87 : (x) 620, (y) 7 88 : (x) 450, (y) 0 89 : (x) 246, (y) 67 90 : (x) 370, (y) 119 91 : (x) 625, (y) 0 92 : (x) 619, (y) 18 93 : (x) 347, (y) 141 94 : (x) 353, (y) 41 95 : (x) 273, (y) 26 96 : (x) 149, (y) 0 97 : (x) 0, (y) 44 98 : (x) 0, (y) 63 99 : (x) 0, (y) 375 Link to comment Share on other sites More sharing options...
scriptkitty Posted November 8, 2004 Share Posted November 8, 2004 So is that while running the game? I tend to like to watch it, and most games will allow me to see tooltip blinking on top, so I would use something like this: While 1 $pos = MouseGetPos() tooltip($pos[0] & ","& $pos[1],0,0) sleep(10) wend Then while running the game, I move to top left and then bottom right and see how it reacts. AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
scriptkitty Posted November 8, 2004 Share Posted November 8, 2004 or: Sleep(20000); start game $pos = MouseGetPos() MouseClick("left",$pos[0],$pos[1]) Sleep(2000) $pos = MouseGetPos() MouseClick("left",$pos[0]+20,$pos[1]) Sleep(2000) $pos = MouseGetPos() MouseClick("left",$pos[0]-20,$pos[1]+10) Sleep(2000) $pos = MouseGetPos() MouseClick("left",$pos[0],$pos[1]+30) Sleep(2000) this way it should just move from its current spot a bit. AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now