KennyOmega Posted January 15, 2017 Share Posted January 15, 2017 Hi guys so I was trying to make a script which autoclicks on inactive with AHK, but it just doesn't work and other people couldn't figure it out either, but I heard that it works with autoit. So I was just trying to convert my script to do the same but on autoit So here is my ahk script 4:: loop { Random, num, 100, 80000 if(num < 35000){ Random, delay, 356, 432 } else if(num>=35000 && num<50000){ Random, delay, 384, 584 } else if(num>=50000 && num<79970){ Random, delay, 228, 304 } else if(num>=79960 && num<79990){ Random, delay, 120, 25104 } else if(num>=79990) { Random, delay, 46074, 105004 } Sleep, %delay% Click } 6::Reload 8:: ExitApp So basically it's a simple script that rolls a number and based on it, selects a specific delay then clicks. I want to make it work on Autoit and also be able to click on inactive window or without using mouse cursor. Any help would be cool Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 16, 2017 Moderators Share Posted January 16, 2017 @KennyOmega Why are you using Mouseclick (and Random at that) rather than the much more consistent Control* commands? Can you please explain more precisely what application you're working with, and what your end goal is? "Random clicking" doesn't exactly help us help you. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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