Jump to content

AutoIt Help plz


Recommended Posts

Ok I am making a Diablo2 autoit sript that will drop all my stuff on the ground for my mule. In the game when you press b it brings up the inv. I was wondering if there was a way to disable the user from pressing b and alt so you can't alt tab out. Plus i was wondering if there is a way to speed up the mouse movement? Any help greatly appreciated.

Link to comment
Share on other sites

Hi!

Please read the help file!!

The last param of MouseMove or MouseClick is a speed param.

You could do it like this for "b" key:

HotKeySet("b", "b_func")

While 1
   sleep(7000)
WEnd

Func b_func()
EndFunc

Code not tested!

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to comment
Share on other sites

Hi!

Directly from the help file:

MouseMove ( x, y [, speed] )
---
speed [optional]:
the speed to move the mouse in the range 1 (fastest) to 100 (slowest). A speed of 0 will move the mouse instantly. Default speed is 10.

have a search for the _IsPressed udf...

Hope it helps, peethebee

Edited by peethebee

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to comment
Share on other sites

Hi!

This is even better, because it works more easily and savely.

But there should be some examples in the _IsPressed threads. I did not use it myself before, but I read very nuch about it and it seems to be a very nice UDF.

peethebee

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to comment
Share on other sites

Hi!

It is an UDF developped by an AutoIt user. It is NOT part of AutoIt itself. So you have to search for it here in the forums in order to download it or contacting the author.

peethebee

p.s. everyone has been a n00b in the beginning...

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to comment
Share on other sites

Hi!

As you stay patient and keep asking your questions in a nice way, I will not hate you, but using the forum's search engine is not the problem, is it?

Try this one:

http://www.autoitscript.com/forum/index.ph...685entry38685

(I found it searching just for "_IsPressed")

peethebee

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Link to comment
Share on other sites

Hi!

Just play around with it a little bit!

change the key's value and so on. Perhaps you find a way to do with it what you want to.

And if you have more detailed questions, turn to "ezzetabi" who posted this script and is a very skilled coder.

peethenee

vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

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...