K3STROS

Why arent HotKeys Working?

2 posts in this topic

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

 

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.