Jump to content

Press a key?


Super2
 Share

Recommended Posts

Lookup Send and ControlSend in the help files.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Func Heal_A1 ()

Call ("Unfocus")

Send ("1")

MouseMove (775,47,1)

Sleep (50)

MouseClick ("Right",775,47,1)

Call ("Unfocus")

MouseUp ("Right")

EndFunc

That one / taken from auto buff script for one game/ doesn`t work... it just doesn`t send 1 or whatever is "" :whistle:
Link to comment
Share on other sites

  • Moderators

Does your game use some type of protection like gameguard?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Ack! I can't take it any longer! Your code is drving me nuts. :whistle:

Func Heal_A1 ()
;  Call("Unfocus") <-- Stop doing this!
  Unfocus()
  Send ("1") <-- What window currently as focus?
  MouseMove (775, 47, 1)
  Sleep (50) <-- Why?
  MouseClick ("Right", 775, 47, 1) <-- Why not move/click in the same statement?
;  Call ("Unfocus")
  Unfocus()
  MouseUp ("Right") <-- Why are you doing mouse up without mouse down?
EndFunc
Auto3Lib: A library of over 1200 functions for AutoIt
Link to comment
Share on other sites

Mayo las pulgas de mil camellos infestan tus hoyos del brazo :whistle:

May the fleas of thousand camels infest your holes of the arm

???

lol ;)

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

Ack! I can't take it any longer! Your code is drving me nuts. :whistle:

Func Heal_A1 ()
;  Call("Unfocus") <-- Stop doing this!
  Unfocus()
  Send ("1") <-- What window currently as focus?
  MouseMove (775, 47, 1)
  Sleep (50) <-- Why?
  MouseClick ("Right", 775, 47, 1) <-- Why not move/click in the same statement?
;  Call ("Unfocus")
  Unfocus()
  MouseUp ("Right") <-- Why are you doing mouse up without mouse down?
EndFuncoÝ÷ Ûú®¢×zYZ[ayÊz+®§w­4®,!ƧºhiØ­²Â«y«­¢+Ø쨨¨¨¨¨¨¨¨¨U¹½Ǫ̃¨¨¨¨¨¨¨¨¨((ìU¹½ÕÌ5Ô]¥¹½ÜµÀì½ÕÌ=¸Í­Ñ½À¸()Õ¹U¹½ÕÌ ¤()]¥¹Ñ¥ÙÑ ÅÕ½Ðí
±Í͹µõM¡±±}QÉå]¹ÅÕ½Ðì¤(íM¹ ÅÕ½ÐìÅÕ½Ðì°Ä¤()¹Õ¹oÝ÷ Ù8^~.±çpwhÂ+-èì"Ú0Öj+z«²Ø¨br¬mëmz»hmë¬x6®¶­se6VæBgV÷C³2gV÷C²oÝ÷ ÚÚºÚ"µÍÙ[
    ][ÝÞÌÈÝÛI][ÝÊHÙ[
    ][ÝÞÌÈI][ÝÊ
Edited by Super2
Link to comment
Share on other sites

Well, all the code is around 600 rows, I can upload it somewhere....

clipoÝ÷ Ù8^~.±çpwhÂ+-èì"Ú0Öj+z«²Ø¨br¬mëmz»hmë¬x6®¶­se6VæBgV÷C³2gV÷C²oÝ÷ ÚÚºÚ"µÍÙ[
    ][ÝÞÌÈÝÛI][ÝÊHÙ[
    ][ÝÞÌÈI][ÝÊ
just use 3, no reason to do down then up.

Send ("3")

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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