Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 09:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Autoit]how to code a macro like this?

Discussion on [Autoit]how to code a macro like this? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2016
Posts: 4
Received Thanks: 0
[Autoit]how to code a macro like this?

can any one please help me with coding this macro in autoit?

i want a series of keyboard and mouse buttons to be sent with like a 0.15-1 sec delays while holding down Rclick

and i want it to stop when i release the Rclick button, and i want it to start from the begining after i hold Rclick again

i know i can use "send" and "sleep" for the keys and the delay but dunno how to do the holding Rclick button thing



would really appreciate the help

thnx in advance
pouyanz is offline  
Old 01/23/2016, 19:30   #2


 
Moneypulation's Avatar
 
elite*gold: 138
Join Date: Apr 2012
Posts: 3,495
Received Thanks: 1,769
Moneypulation is offline  
Old 01/23/2016, 19:54   #3
 
elite*gold: 0
Join Date: Jan 2016
Posts: 4
Received Thanks: 0
Quote:
Originally Posted by Moneypulation View Post
so is this good?

or this?

pouyanz is offline  
Old 01/23/2016, 20:35   #4
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Holy **** that code looks disgusting. Do you even kno what you're doing?
alpines is offline  
Old 01/23/2016, 21:16   #5
 
elite*gold: 0
Join Date: Jan 2016
Posts: 4
Received Thanks: 0
Quote:
Originally Posted by alpines View Post
Holy **** that code looks disgusting. Do you even kno what you're doing?
no
but im trying
pouyanz is offline  
Old 01/26/2016, 00:23   #6
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
Maybe like this ?

Code:

#include <Misc.au3>

Global $hDLL = DllOpen("user32.dll"), $time = 500
Global $keys[8] = ["a", "b", "c", "d", "1", "2", "3", "4"]


While 1

    If _IsPressed("02", $hDLL) Then
        
        While _IsPressed("02", $hDLL)
            For $i = 0 To UBound($keys) -1
                Send($keys[$i])
                Sleep($time)
            Next
        WEnd

    EndIf
    Sleep(250)

WEnd

DllClose($hDLL)
mlukac89 is offline  
Old 01/26/2016, 15:16   #7
 
elite*gold: 0
Join Date: Jan 2016
Posts: 4
Received Thanks: 0
Quote:
Originally Posted by mlukac89 View Post
Maybe like this ?

Code:

#include <Misc.au3>

Global $hDLL = DllOpen("user32.dll"), $time = 500
Global $keys[8] = ["a", "b", "c", "d", "1", "2", "3", "4"]


While 1

    If _IsPressed("02", $hDLL) Then
        
        While _IsPressed("02", $hDLL)
            For $i = 0 To UBound($keys) -1
                Send($keys[$i])
                Sleep($time)
            Next
        WEnd

    EndIf
    Sleep(250)

WEnd

DllClose($hDLL)

wow, THANK YOU !!!!!
pouyanz is offline  
Reply


Similar Threads Similar Threads
Autoit BG macro
09/05/2010 - World of Warcraft - 0 Replies
Looking for a new autoit bg join/leave macro the old 1 that i have doesnt work anymore instead of pressing the join bg button now it opens the bags :).
Macro/AutoIT für 40/40 set
07/05/2008 - Guild Wars - 13 Replies
Hey, kann man n script schreiben das der jeweile char vor jedem casten (1-8) Z.B. auf F2 in sein 40/40 set wechselt?wenn das gehen würde könntet ihr bitte sowas erstellen...ich denke für euch is das nich wirklich ein problem...aber ich kenn mich damit halt gar nich aus... danke im vorraus :) mfg
macro autoit
06/19/2008 - Cabal Online - 10 Replies
Hi. I'm french.Sorry for my bad english. My version of cabal is europea. I tried to make myself a macro but it is only 2 days that I practice autoit. I therefore know quite limited. I like to share with you my program. I've tested but has no effect on the game like most other programs of the forum that I tested. I'd like to know why.it's really a simple program you will not hurt to understand?:confused: $x = 1 $y = 1 WinWaitActive("CABAL") ;activation of the window cabal...



All times are GMT +2. The time now is 09:56.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.