Sign in to follow this  
Followers 0
Super2

Press a key?

12 posts in this topic

Sorry, but can you tell me, what`s the function to press a key ?

Share this post


Link to post
Share on other sites



Lookup Send and ControlSend in the help files.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
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:

Share this post


Link to post
Share on other sites

Does your game use some type of protection like gameguard?


[center]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.[/center]

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

No, as much as i know....

Edited by Super2

Share this post


Link to post
Share on other sites

So, the code is ok ?

the problem must be in my PC?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

That one / taken from auto buff script for one game/ doesn`t work... it just doesn`t send 1 or whatever is "" :whistle:

hehe wo dong ni yi si ,ni xiang zi dong he xue, shi ba

Share this post


Link to post
Share on other sites

hehe wo dong ni yi si ,ni xiang zi dong he xue, shi ba

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

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0