Register for your free account! | Forgot your password?

You last visited: Today at 02:26

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

Advertisement



Macro

Discussion on Macro within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Elborod's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 74
Received Thanks: 3
Zeitverzögerung beheben?

Servus ;D


Alsooooo,

ich hab mir für League of Legends ein Makro geschrieben, dass zb. bei einer 5-Tasten Maus bei Taste 5 Missing und bei Taste 6 Re in den chat schreibt.

Nun hätt ich das ganze natürlich gern auch für 3 Tasten Maus geschrieben. Das Skript funktioniert in der Theorie auch einwandfrei. Nur die Praktik sieht anders aus.... Leider gibt es immer minimale Zeitverzögerungen durch welche nicht immer abwechselnd auf SS ein RE folgt.
Kann mir wer helfen das ganze verlässlicher und cleaner zu gestalten?

Code:

PHP Code:
#include <Misc.au3>


$dll DllOpen("user32.dll")
$y 0

While 1
    Sleep 
250 )
            If 
_IsPressed("04"$dllThen
            
While _IsPressed("04"$dll)
                
Sleep(5)
            
WEnd
            send
("{Enter}")
            
sleep(250)
            
send("ss")
            
sleep(250)
            
send("{Enter}")
             Do
                
Sleep(5)
            
Until _IsPressed("04"$dll)
                While 
_IsPressed("04"$dll)
                    
Sleep(5)
                
WEnd
            send
("{Enter}")
            
sleep(250)
            
send("re")
            
sleep(250)
            
send("{Enter}")
  
    EndIf
WEnd
DllClose
($dll

Der für die 5Tasten Maus funzt Super. Falls wer braucht einfach PN.



Grüßé
Stoani
Elborod is offline  
Old 07/13/2011, 14:07   #2
 
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454


Der Titel ist etwas irreführend
Freddy​ is offline  
Old 07/13/2011, 14:32   #3
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
vllt kann man etwas besser machen indem man mit contolsend() was macht
Ludder231 is offline  
Thanks
1 User
Old 07/14/2011, 15:58   #4
 
Elborod's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 74
Received Thanks: 3
Ich schonwieder....
Nach dem im Forum eh schon soviele unsinnige Threads korsieren, möchte ich einfach in dem Thread hier einen kleinen Themawechsel machen, anstatt extra einen neuen zu öffnen.

Also. Mal was ich hab:

Skript.
Funktionierende Checkbox Funktion mit Gui
Ein Video im Gui


Was ich gerne erreichen würde:

Durch das anhaken der Checkbox soll der Ton des Videos im gleichen Skript ausgeschaltet werden.


Was die Theorie sagt:
Mit Soundsetwavevolume sollte das ganze eigentlich funktionieren, da die Wave nur noch für das verwendete Skript gilt. Nur funktioniert das bei mir nicht


Wäre schön wenn mit wer weiterhelfen könnte


Grüße
Stoani

PS.: Es wird auch ein PublicRelease von dem Programm rausgehn ;D



Edit: Code:

PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GUIConstants.au3>
#AutoIt3Wrapper_UseX64 = n

$hWnd GUICreate("League of Legends - Macrobot"474386285176)
GUISetBkColor(0x000000)
$oWMP ObjCreate("WMPlayer.OCX")
$hEmbedd GUICtrlCreateObj($oWMP00640360)
$oWMP.URL = (".\League of Legends - Season One CG Cinematic Trailer.mp4")
$Start GUICtrlCreateButton("Start"11229625765)
GUICtrlSetFont(-1118002"Arial Black"
$About GUICtrlCreateButton("About"3763608925)
$Checkbox1 GUICtrlCreateCheckbox("Addmon?"482966557)
$Exit GUICtrlCreateButton("Exit"3762968965)
GUICtrlSetFont(-188002"Arial Black")
With $oWMP
    
.settings.volume 100
    
.stretchToFit True
    
.fullscreen True
    
.uiMode 'none'
    
.controls.play()
EndWith

GUISetState
()

While 
1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

        Case 
$Start
            run
(".\Ss.exe")
            
run(".\Re.exe")
        
        Case 
$About
            MsgBox
(0,"Macrobot","The Macrobot was coded and designed by Stoani. It is made to make your laneing more safe. This is only the Alphap 1.0. Version")
    
        Case 
$Exit
            ProcessClose
("Ss.exe")
            
ProcessClose("Re.exe")
            Exit

    Case 
$Checkbox1
        
    $Check1 
GUICtrlRead($Checkbox1)
If 
$Check1 $GUI_CHECKED Then Aus()

EndSwitch
WEnd

Func Aus
()
SoundSetWaveVolume(0)
EndFunc 


EDIT 2:

Also hab das ganze jetzt so gelöst:

PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GUIConstants.au3>
#AutoIt3Wrapper_UseX64 = n

$hWnd GUICreate("League of Legends - Macrobot"474386285176)
GUISetBkColor(0x000000)
$oWMP ObjCreate("WMPlayer.OCX")
$hEmbedd GUICtrlCreateObj($oWMP00640360)
$oWMP.URL = (".\League of Legends - Season One CG Cinematic Trailer.mp4")
$Start GUICtrlCreateButton("Start"11229625765)
GUICtrlSetFont(-1118002"Arial Black"
$About GUICtrlCreateButton("About"3763608925)
$Checkbox1 GUICtrlCreateCheckbox("Addmon?"482966557)
$Exit GUICtrlCreateButton("Exit"3762968965)
GUICtrlSetFont(-188002"Arial Black")
With $oWMP
    
.settings.volume 100
    
.stretchToFit True
    
.fullscreen True
    
.uiMode 'none'
    
.controls.play()
EndWith

GUISetState
()






While 
1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

        Case 
$Start
            run
(".\Ss.exe")
            
run(".\Re.exe")
        
        Case 
$About
            MsgBox
(0,"Macrobot","The Macrobot was coded and designed by Stoani. It is made to make your laneing more safe. This is only the Alphap 1.0. Version")
    
        Case 
$Exit
            ProcessClose
("Ss.exe")
            
ProcessClose("Re.exe")
            Exit

    Case 
$Checkbox1
        
    $Check1 
GUICtrlRead($Checkbox1)
If 
$Check1 $GUI_CHECKED Then Aus()
If 
$Check1 $GUI_UNCHECKED Then Ein()



EndSwitch
WEnd






Func Ein
()
With $oWMP
    
.settings.volume 100
EndWith
EndFunc



Func Aus
()
With $oWMP
    
.settings.volume 0
EndWith
EndFunc 


Thread Closed
Elborod is offline  
Reply


Similar Threads Similar Threads
[Release]Macro Files for Macro Manager (AKA BOT)
02/16/2010 - Grand Chase Hacks, Bots, Cheats & Exploits - 16 Replies
@all FYI its not a cheat its just a macro file that enables you to run dungeon so you can do other choirs like mussicca said...!! Contents Mana Valley Dungeon Macro File Xenia Frontier Dungeon UP and LEFT (Remap Dungeon)Macro File Ignis Mountain Dungeon Macro File Orc Temple Dungeon Macro File
[Macro] Making an assist Macro
10/02/2008 - General Gaming Releases - 1 Replies
This will tell you how to make an assist macro in the Warhammer Online game. This is a very useful macro that can be used in very busy surroundings such as Realm vs Realms, Scanerios and Public Quest. Step 1: Click the WAR icon Step 2: Click Macros icon Step 3: Click an empty box icon Step 4: Give your macro a name such as "Assist" Step 5: Type the following command /assist charactername Step 6: Click No Icon set box Step 7: Select an icon of your liking Step 8: Click Save
Macro Express (Help with Macro at Basilisk)
08/29/2007 - Conquer Online 2 - 4 Replies
O.K guys, so i have made a few macro's using macro express before. Now that my archer is level 128, i started making waters to plvl at basilisk. Since plvling is so repetitive, i want to leave my archer on bot running in circles around the stack killing bask's. I tried to do this with SV record route macro, but the problem w/ SV is that it will stand in one spot until it kills all the monsters. Thats why i tried to make my own macro express so it just shoots and jumps to the next coord. ...
Macro Express re-log macro help
01/08/2006 - Conquer Online 2 - 3 Replies
I use Co Partner but the re-log in feature in copartner SUCKS, as some of you know. So i use macro express... what my macro does is closes the instruction box, and clicks on log in (duh). Since this is a macro, its performing exact screen coordinates every single time and conquer detects that... hmm what could i do to make it more "randomized?".... any idea what to do to get past the macro detection?



All times are GMT +2. The time now is 02:26.


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.