Garanator Posted October 16, 2005 Share Posted October 16, 2005 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 More sharing options...
peethebee Posted October 16, 2005 Share Posted October 16, 2005 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 More sharing options...
Garanator Posted October 16, 2005 Author Share Posted October 16, 2005 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? Link to comment Share on other sites More sharing options...
peethebee Posted October 16, 2005 Share Posted October 16, 2005 (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 October 16, 2005 by peethebee vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Link to comment Share on other sites More sharing options...
Garanator Posted October 16, 2005 Author Share Posted October 16, 2005 (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 October 16, 2005 by Garanator Link to comment Share on other sites More sharing options...
peethebee Posted October 17, 2005 Share Posted October 17, 2005 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 More sharing options...
Garanator Posted October 17, 2005 Author Share Posted October 17, 2005 (edited) I don't see anything about _ispressed in the helpfile lol sry for being a n00b but I am one Edited October 17, 2005 by Garanator Link to comment Share on other sites More sharing options...
peethebee Posted October 17, 2005 Share Posted October 17, 2005 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 More sharing options...
Garanator Posted October 17, 2005 Author Share Posted October 17, 2005 Your going to hate me but can I have a link all I find are scripts that use the _ispressed command. Link to comment Share on other sites More sharing options...
peethebee Posted October 17, 2005 Share Posted October 17, 2005 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 More sharing options...
Garanator Posted October 17, 2005 Author Share Posted October 17, 2005 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 Link to comment Share on other sites More sharing options...
peethebee Posted October 17, 2005 Share Posted October 17, 2005 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now