jackyyll Posted April 4, 2005 Share Posted April 4, 2005 (edited) Is it possible to build a cordinate tracker into one of my script so when you hit a hotkey it freezes the Cords? If so how Edited April 4, 2005 by jackyyll Link to comment Share on other sites More sharing options...
zcoacoaz Posted April 4, 2005 Share Posted April 4, 2005 what kind of coordinates? [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
jackyyll Posted April 5, 2005 Author Share Posted April 5, 2005 Like cordnates that are relative to the screen, so the user of my script can choose where they want it to click Link to comment Share on other sites More sharing options...
zcoacoaz Posted April 5, 2005 Share Posted April 5, 2005 Commands needed (optional ones have { and } around them): Opt/AutoItSetOption MouseGetPos {GuiCreate} {GuiCtrlCreateLabel} {GuiSetState} {SplashTextOn} {SplashOff} [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
Guest jimmart Posted May 4, 2005 Share Posted May 4, 2005 Is it possible to build a cordinate tracker into one of my script so when you hit a hotkey it freezes the Cords? If so how<{POST_SNAPBACK}>Here is a sample script that should help you.Global $selectKey = "^c"Global $selectAbortKey = "^a"Global $selectKeyHitGlobal $selectAbortKeyHitCaptureLocationSetup()While $selectKeyHit = 0 And $selectAbortKeyHit = 0 $coord = MouseGetPos() SplashTextOn("","Current location " & $coord[0] & "," & $coord[1] & ".", 200, 16, -1, 100, 3, "Ariel", 10, 500) Sleep(100)WEnd ExitFunc CaptureLocationSetup() HotKeySet($selectKey, "CaptureLocation"); Capture loot location HotKeySet($selectAbortKey, "CaptureLocationabort") $selectKeyHit = 0 $selectAbortKeyHit = 0EndFunc ;==>CaptureLocationSetupFunc CaptureLocation() $selectKeyHit = 1 HotKeySet($selectKey) HotKeySet($selectAbortKey) $coord = MouseGetPos() SplashOff() SplashTextOn("","Location " & $coord[0] & "," & $coord[1] & " selected.", 200, 16, -1, 100, 3, "Ariel", 10, 500) Sleep(1000)EndFunc ;==>CaptureLocationFunc CaptureLocationabort() $selectAbortKeyHit = 1 HotKeySet($selectKey) HotKeySet($selectAbortKey) SplashTextOn("","Location selection aborted.", 200, 16, -1, 100, 3, "Ariel", 10, 500) Sleep(1000)EndFunc ;==>CaptureLocationabort Link to comment Share on other sites More sharing options...
herewasplato Posted May 4, 2005 Share Posted May 4, 2005 (edited) .....so the user of my script can choose where they want it to click<{POST_SNAPBACK}>I'm not sure that I understand what you want, but maybe there is some code in this post that might help. You might be able to use or modify what I posted there. Edited May 4, 2005 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] 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