| |
|
|
- Page 1 - |
|
| trouble: The globale Mausposition isn't simply To relating.
an additional function getMousePos (vlt. get("MousePos",handle&)) missing, these setting too The System-Variables %mouseX and %mouseY .
is handle& zero, then is the Globale meant, otherwise relatively vlt. How: CompileMarkSeparation CompileMarkSeparation |
|
|
| |
|
|
|
| |
|
- Page 1 - |
|
| @Dieter: my response counted Nico the IMHO annahm, that %mousex and %mousey simply umrechenbar would, what therefore little uses, there %mousex and %mousey only staid go, if the Mauspfeil itself over the HWND befindet. ^^ your example is still ok, is still in the Grunde same How mine supra - I meant only the it rather would if XProfan %mousex and y settle could and getMousePos nativ would. |
|
|
| |
|
|
|
Dieter Zornow | Achso, then have so did i Nico wrong understood, naja rapide fortschreitende Alzheimer.
but fundamentally has it right, The positions in the Mainwindow could one on Screen-Coordinates converting let. But in the Mainwindow probably sinnfrei. |
|
|
| Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2 | 10/19/09 ▲ |
|
|
|
|
| with Omikron-Basic (Atari 1040ST) hiess it too GetMousePos - found I always beautiful. |
|
|
| |
|
|
|
Nico Madysa | Yes, that %MouseX and -Y something limited are, forgot I, jsuis inconsolable.
then would but a Set-option, The the two System-Variables properly changes, still integral sinnvoller, or? |
|
|
| |
|
|
|
| Nico Madysa, Beitrag=54602, Zeitpunkt=24.10.2009
Yes, that %MouseX and -Y something limited are, forgot I, jsuis inconsolable.
then would but a Set-option, The the two System-Variables properly changes, still integral sinnvoller, or?
get("MousePos",[lever]) is meaningfully, changes both Sysvars. |
|
|
| |
|
|
| |
|
- Page 2 - |
|
|
Nico Madysa | |
|
|
|
| Ne - is Garbage, as wärs of somebody the itself no thoughts made has or so no experience has.
Get("MousePos",... is active, what You vorschlägst would passiv.
around the Mausposition JETZT or. to a designed Time To relating (is important this self to determine to!) - and optional relatively to a lever od. rel.z. Bildschrim, needed is a function getMousePos - could one beautiful to pack in get("MousePos",... there Yes System-Variables staid and be this imho with the function GET in the "Einklang" standing.
"GetMousePos" is too beautiful Basichaft, know I anyway so and fands always integrally useful and misse it in XProfan seither and so I into Mouse.Inc too The function getMousePos hineinpackte. ^^
Well, explode I had too missing - what has become of it?!
but naturally, mannn can also getMousePos verhunzen - could one too get("MausÄthsaPosi",Y,Z,X) draus make followed of %x%mouse and %y%mouse. -.-
One simple getmousepos! |
|
|
| |
|
|
|
Nico Madysa | so, How You it having want, are you so, simply The API -- for may part by Call -- To use, with 70%-iger probability faster and rather bedient. |
|
|
| |
|
|
|
| what? Why is a mehrzeilige XProfanfunktion faster as if Roland it nativ implementiert and How set I System-Variables %mousex and y? |
|
|
| |
|
|
|
Nico Madysa | want You me say, that Dieters tender for your tack too slow is? |
|
|
| |
|
|
|
| goes circa FPS (Programmeffizienz), teste time whom Difference.
Why ought to the processor on 100 walk instead of only on 5, with such importent function too with Echtzeitanwendungen? |
|
|
| |
|
|
|
| the here's naturally awfully quick, but unfortunately in variables instead of System-Variables schreibend: CompileMarkSeparationcls
var mouse.x&=0
var mouse.y&=0
var mouse.xa&=addr(mouse.x&)
var mouse.ya&=addr(mouse.y&)
while 1
GetMousePos(%hWnd,mouse.xa&,mouse.ya&)
locate 1,1
print mouse.x&,mouse.y&," "
waitinput 100
wend
waitinput
end
nProc GetMousePos
Parameters h&,ax&,ay&
var mem&=dim(8)
ClientToScreen(h&,mem&)
var x&=long(mem&,0)
var y&=long(mem&,4)
GetCursorPos(mem&)
x&=long(mem&,0)-x&
y&=long(mem&,4)-y&
dispose(mem&)
long ax&,0=x&
long ay&,0=y&
return 0
endproc
(but vlt. can itself so nevertheless integrally well works) |
|
|
| |
|
|