Sign in to follow this  
Followers 0
Garanator

AutoIt Help plz

12 posts in this topic

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.

Share this post


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

Share this post


Link to post
Share on other sites

Yes I know, I completely removed the sleep but i want how fast the mouse moves back and forth to speed up. And is there anyway i can disable b, alt, esc, and windows keys through the script?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Ok I looked for _ispressed but am still confused about it could you show me an example of what it would look like to disable b?

Edit: Nevermind i just used blockinput which works alot better

Edited by Garanator

Share this post


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

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

I don't see anything about _ispressed in the helpfile lol sry for being a n00b but I am one

Edited by Garanator

Share this post


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

Share this post


Link to post
Share on other sites

Your going to hate me but can I have a link all I find are scripts that use the _ispressed command.

Share this post


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

Share this post


Link to post
Share on other sites

Ooo i thought that, that was just a script using _ispressed but now that I have it I don't know what do with it.

Yet another newb question

Share this post


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

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