Jump to content

Why arent HotKeys Working?


K3STROS
 Share

Recommended Posts

Ive been examining and working for a while now so i figured id turn to here, non of my HotKeys are working <_<

Heres my code, lmk if more is needed to help

 

#include <AutoItConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
#include <StaticConstants.au3>

HotKeySet("{ESC}","Terminate")
HotKeySet("{F5}","GetScreenPos1()")
HotKeySet("{F6}","GetScreenPos2()")
HotKeySet("{F7}","GetMapPos1()")
HotKeySet("{F8}","GetMapPos2()")
HotKeySet("{F9}","GetCompassPos()")

Func GetScreenPos1() ; Game from Top Left Corner **DONE
    $xyTLC = MouseGetPos()
MsgBox(0, "SUCCESS", "Top Left Corner has been set")
EndFunc


Func GetScreenPos2() ; Game from Bottom Right corner **DONE
    $xyBRC =  MouseGetPos()
MsgBox(0, "SUCCESS", "Bottom Right Corner has been set")
EndFunc


Func GetMapPos1() ; Game Map Top Left Corner **DONE
    $xyMTLC = MouseGetPos()
MsgBox(0, "SUCCESS", "Top Left Map Corner has been set")
EndFunc


Func GetMapPos2() ; Game Map Bottom Right corner **DONE
    $xyMBRC = MouseGetPos()
MsgBox(0, "SUCCESS", "Bottom Right Map Corner has been set")
EndFunc


Func GetCompassPos() ; F5 - Compass Position **DONE
    $xyCompass = MouseGetPos()
MsgBox(0, "SUCCESS", "Compass has been set")
EndFunc

 

Link to comment
Share on other sites

  • Developers

You are probably running a program, likely a game, that causes that.
Since you have been told about reading the forum rules before consider this your last warning without so naughty spot time.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Jos locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...