Anoni Posted January 16, 2010 Share Posted January 16, 2010 "Hi all- I have honestly tried a a number of occasions to find the answer to my questions on my own and always come back with more questions and no answers to the original questions >:" * I am trying to produce a bot and am seeking how to: * -Create a random interval of time within which several interactive variables * would fluctuate, including: wpm & moment speed of the mouse pointer * (several others pending success of the before) Here are my questions: 1) Once a variable has been determined *such as a time amount for a Sleep command*, how do you insert the value of x into "Sleep (x)"? -similar to the basic command of "Let x=20"- (please keep in mind when answering- this value would be changing every several seconds) 2) What manner of command or other line entry would create varying wpm and mouse movement speed ? (yes also keeping in mind that this value would be changing every several seconds) Anyone caring to realize that these two questions could be answered with just one good example and explanation - please go ahead. Help on this would be very much appreciated! Sincere thanks- Anoni Link to comment Share on other sites More sharing options...
GodForsakenSoul Posted January 16, 2010 Share Posted January 16, 2010 i don't know about wpm, but here's an idea. dim $t=Random(1,20,1) sleep($t) same goes for mouse movement. dim $t=Random(1,20,1) mousemove(x,y,$t) changing the speed is slightly difficult with random intervals, and honestly, i'm kinda tired to think of those XD;; Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted January 16, 2010 Share Posted January 16, 2010 Don't use Dim, you will just confuse yourself. Use Global or Local. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
JRowe Posted January 16, 2010 Share Posted January 16, 2010 (edited) There are several mouse movement UDFs you can tap.Here's one that's relatively easy. Learning to use it should further your personal AutoIt skills quite a bit The wpm thing can be managed just using random() and send() at varying intervals... instead of sending whole strings, send individual keys at varied intervals.If you're feeling ambitious, you can use my tweening UDF and Random() to make an entirely random transition from point to point.If you're feeling really ambitious, you could analyze your own typing speeds, then create a table of average deviations for each character, then create a set of parameters for each sent key based on your own profile. Same goes for mousemove, although that's a bit more involved on the math end.Sleep() is measured in thousandths of a second. Sleep(1000) pauses the script for 1 second.$x = Random(500, 1500) Sleep($x)This snippet Sleeps for between .5 and 1.5 seconds. The Smoother Mousemove thread contains various examples of use. Good luck! Edited January 16, 2010 by JRowe [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
Anoni Posted January 17, 2010 Author Share Posted January 17, 2010 Thanks for the helpful advice!!To be as to the point as I can, I am really hoping to have a set time variable say- 5 seconds, after which all settings are determined to be in need to randomizing or left as they were previously set.This would include all the before mentioned things to be randomized-I shall play and test with the stuff you all suggested (linked references and all).Thanks you for all so far.One possible solution that might work for me for the WPM (if value inserting/changing works for it) is:;AutoItSetOption("SendKeyDelay", 400)*I hope to avoid much mental agony in learning to script- trying to pin down internal conflict and priorities in*command execution have been a big problem for me in the past.-Here is my new question:-If I have a 5 second check that determines some settings should be set to different paces- how should I make it sothat this change would effect even currently executing commands?Thank you~ 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