Merlin Posted October 3, 2004 Share Posted October 3, 2004 Howto MouseGetPos in a 3dwindow/game? if i use it it always returns same position ... ;-( i tried Opt("MouseCoordMode", 0) and Opt("MouseCoordMode", 1) but no success... any hints tipsntricks?! btw: anyone knows whats is the best way to start c++?? (i have Microsoft Visual C++ 6 0 Standard Edition) good forum ? (maybe a german one?) where to get tutorials? is there something like www.selfhtml.org for c++ ? *----Greets---MerliN---->www.ALLyaNEED.de German HelpBoard<-----* Link to comment Share on other sites More sharing options...
Guest BL@(K-R34P3R Posted October 3, 2004 Share Posted October 3, 2004 I don't know, but what game are you working on? Link to comment Share on other sites More sharing options...
Merlin Posted October 3, 2004 Author Share Posted October 3, 2004 usin old quake3 engine to make short films... i need to MouseGetPos to get different kameramovements automated *----Greets---MerliN---->www.ALLyaNEED.de German HelpBoard<-----* Link to comment Share on other sites More sharing options...
Guest BL@(K-R34P3R Posted October 3, 2004 Share Posted October 3, 2004 Oo, cool! Do you play any games online? Link to comment Share on other sites More sharing options...
Merlin Posted October 3, 2004 Author Share Posted October 3, 2004 yep we play Call of Duty in a clan online ... look my forum in my sig there are 2 clans in the forum .. ours and an Quake3 allied clan... *----Greets---MerliN---->www.ALLyaNEED.de German HelpBoard<-----* Link to comment Share on other sites More sharing options...
Guest BL@(K-R34P3R Posted October 3, 2004 Share Posted October 3, 2004 Lol. Ok. Link to comment Share on other sites More sharing options...
Merlin Posted October 4, 2004 Author Share Posted October 4, 2004 but now back on Topic ! Please can someone answer my questions?! *----Greets---MerliN---->www.ALLyaNEED.de German HelpBoard<-----* Link to comment Share on other sites More sharing options...
Merlin Posted October 4, 2004 Author Share Posted October 4, 2004 come on pls help ! any ideas? *----Greets---MerliN---->www.ALLyaNEED.de German HelpBoard<-----* Link to comment Share on other sites More sharing options...
Def Posted October 4, 2004 Share Posted October 4, 2004 Can you put a snippet of code where you try to grab the coords? Def Link to comment Share on other sites More sharing options...
Merlin Posted October 4, 2004 Author Share Posted October 4, 2004 (edited) Opt("TrayIconDebug", 1) Opt("MouseCoordMode", 0) HotKeySet("{PGUP}","moveit") While 1 Sleep(5) Wend Func moveit() $pos = MouseGetPos() MsgBox(0, "X/Y:", $pos[0] "," $pos[1]) MouseDown("left") MouseMove($pos[0], $pos[1]+4, 4) Sleep(110) MouseUp("left") $pos = MouseGetPos() MsgBox(0, "X/Y:", $pos[0] "," $pos[1]) MouseMove($pos[0], $pos[1]-4, 4) Sleep(50) MsgBox(0, "X/Y:", $pos[0] "," $pos[1]) EndFunc but that just returns always same x y coordinates...makes no diff. if i use Opt("MouseCoordMode", 0) or Opt("MouseCoordMode", 1) Edited October 4, 2004 by Merlin *----Greets---MerliN---->www.ALLyaNEED.de German HelpBoard<-----* Link to comment Share on other sites More sharing options...
this-is-me Posted October 4, 2004 Share Posted October 4, 2004 Is it a full screen 3d window? Who else would I be? Link to comment Share on other sites More sharing options...
Merlin Posted October 4, 2004 Author Share Posted October 4, 2004 i tried it windowed and fullscreen same results... *----Greets---MerliN---->www.ALLyaNEED.de German HelpBoard<-----* Link to comment Share on other sites More sharing options...
this-is-me Posted October 4, 2004 Share Posted October 4, 2004 Does the cursor in the game look different than the regular windows cursor? If so, the ACTUAL cursor position is really staying in the same spot, and the game is taking over the cursor function. If that is so, then you will never be able to get the position of the game's cursor. Who else would I be? Link to comment Share on other sites More sharing options...
Hooch Posted October 4, 2004 Share Posted October 4, 2004 i tried it windowed and fullscreen same results...<{POST_SNAPBACK}>Here is some code I use and it works windowed or not in Lineage2...Func back2L2() $CENTER_X = @DesktopWidth / 2 $CENTER_Y = @DesktopHeight / 2 $pos = MouseGetPos() MouseClick("left", $CENTER_X, $CENTER_Y , 0) sleep(200) MouseMove($pos[0], $pos[1], 0) endFunc Link to comment Share on other sites More sharing options...
t0ddie Posted October 4, 2004 Share Posted October 4, 2004 ok. here is what you do the game window is not able to get coordinates, because it takes up the full screen, and is not in window mode. make a shortcut to the game (right click.. add shortcut) then , right clck the shortcut and select properties at the END of the target.. just add -w that will make the game load into a window.. instead of taking up the whole screen. and then mousegetcoor will work later ~Todd Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
Valik Posted October 4, 2004 Share Posted October 4, 2004 ok. here is what you dothe game window is not able to get coordinates, because it takes up the full screen, and is not in window mode.make a shortcut to the game (right click.. add shortcut)then , right clck the shortcut and select propertiesat the END of the target.. just add -wthat will make the game load into a window.. instead of taking up the whole screen. and then mousegetcoor will worklater~Todd<{POST_SNAPBACK}>That is completely false. The only game I know of that does that is Diablo II. Other Blizzard games might also support that; some other games may also support it, but not all. Somebody else has already pointed this out to you. Command line options are not global across applications. Link to comment Share on other sites More sharing options...
Merlin Posted October 4, 2004 Author Share Posted October 4, 2004 i tried it windowed and fullscreen same results...<{POST_SNAPBACK}>i already tried windowed mode ...Here is some code I use and it works windowed or not in Lineage2...Func back2L2() $CENTER_X = @DesktopWidth / 2 $CENTER_Y = @DesktopHeight / 2 $pos = MouseGetPos() MouseClick("left", $CENTER_X, $CENTER_Y , 0) sleep(200) MouseMove($pos[0], $pos[1], 0) endFunc<{POST_SNAPBACK}>ill try that thx btw.: what is lineage for a game`? maybe u know which engine? *----Greets---MerliN---->www.ALLyaNEED.de German HelpBoard<-----* Link to comment Share on other sites More sharing options...
t0ddie Posted October 4, 2004 Share Posted October 4, 2004 i thought it was supported globally. because of the fact that the game is FULLSCREEN and that blizzard intended it to be that way, i thought the -w was a way of getting around that. since it is not in the game manual, i thought they did not want you to be able to do that. so, why would they include the option of being able to do that? i thought it applied to ANY full screen application. it was just a suggestion, and i stand corrected. but try it, never know. might work. ~Todd Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
Hooch Posted October 4, 2004 Share Posted October 4, 2004 i already tried windowed mode ...ill try that thx btw.: what is lineage for a game`? maybe u know which engine?<{POST_SNAPBACK}>Lineage II uses a modded Unreal engine. Link to comment Share on other sites More sharing options...
Valik Posted October 4, 2004 Share Posted October 4, 2004 i thought it was supported globally.because of the fact that the game is FULLSCREEN and that blizzard intendedit to be that way, i thought the -w was a way of getting around that.since it is not in the game manual, i thought they did not want you to be able to do that.so, why would they include the option of being able to do that?i thought it applied to ANY full screen application.it was just a suggestion, and i stand corrected.but try it, never know. might work.~Todd<{POST_SNAPBACK}>There are so many flaws in that logic that I'm at a loss on where to begin. 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