Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 08:04

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

Advertisement



What's wrong with this simple script?

Discussion on What's wrong with this simple script? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
h4ss4n's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 145
Received Thanks: 4
What's wrong with this simple script?

I want ''e down'' to hold down ''s'' & ''f'' and ''e up'' to release ''s'' & ''f''. But this doesn't seem to be working. Any help?


#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1
Sleep(10)
; If E key is pressed hold key S & F down until E is released
If _IsPressed("45", $dll) Then
Send("{s down}") ;Holds the s key down
Send("{f down}") ;Holds the f key down
While _IsPressed("45", $dll)
Sleep(10)
WEnd
EndIf
WEnd
h4ss4n is offline  
Old 10/24/2017, 11:39   #2
 
elite*gold: 32
Join Date: Dec 2015
Posts: 2,275
Received Thanks: 1,113
Quote:
Originally Posted by h4ss4n View Post
I want ''e down'' to hold down ''s'' & ''f'' and ''e up'' to release ''s'' & ''f''. But this doesn't seem to be working. Any help?


#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1
Sleep(10)
; If E key is pressed hold key S & F down until E is released
If _IsPressed("45", $dll) Then
Send("{s down}") ;Holds the s key down
Send("{f down}") ;Holds the f key down
While _IsPressed("45", $dll)
Sleep(10)
WEnd

EndIf
WEnd
Code:
#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1
	; If E key is pressed hold key S & F down until E is released
	If _IsPressed("45", $dll) Then
		Send("{s down}") ;Holds the s key down
		Send("{f down}") ;Holds the f key down
		While _IsPressed("45", $dll)
			Sleep(10)
		WEnd
		Send("{s up}");
		Send("{f up}");
	EndIf
WEnd
perhaps release the key? what is the problem? do the script nothing?
FlyffServices is offline  
Thanks
1 User
Old 10/24/2017, 14:54   #3
 
h4ss4n's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 145
Received Thanks: 4
Quote:
Originally Posted by FlyffServices View Post
Code:
#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1
	; If E key is pressed hold key S & F down until E is released
	If _IsPressed("45", $dll) Then
		Send("{s down}") ;Holds the s key down
		Send("{f down}") ;Holds the f key down
		While _IsPressed("45", $dll)
			Sleep(10)
		WEnd
		Send("{s up}");
		Send("{f up}");
	EndIf
WEnd
perhaps release the key? what is the problem? do the script nothing?
It works now =)! Thank you very much. The problem was the s & f keys were not getting released when e was released.
h4ss4n is offline  
Reply


Similar Threads Similar Threads
[How To]Simple VB Spammer (very simple) [Für Anfänger]
08/10/2012 - Coding Tutorials - 12 Replies
So, da ich mir gedacht habe, warum schreibst du eig keine Tutorials für epvp wollte ich heute mal damit Anfangen welche zu schreiben Ich werde alles mit kleinen Erklärungen im Text erklären. Sie sind mit ' gekennzeichnet. Sie werden von VB nicht mit in den Code einbezogen. So kann man einfach alles stehen lassen und hat im Nachhinein eine komplette Erklärung Was benötigt ihr? -Visual Basic 2008 oder besser -ein kleines bisschen Grundwissen Welche Steuerelemente werden benötigt?
Simple Edit (But not To Simple)
12/03/2010 - CO2 Weapon, Armor, Effects & Interface edits - 10 Replies
Hey, a friend of me asked me to edit top's. So i did for him. I wanted to share them with ya guys: http://i51.tinypic.com/1z5orns.jpg I know its simple. If You like them press Thanks Button. If you Want me to release it Just Ask me.
Simple questions, simple answers :)
11/09/2009 - Kal Online - 2 Replies
Hello guys :) I've been reading this forum for a while, and I found very nice information here but still, some threads in german can't provide me whole knowledge I'm looking for, that's why I'm asking some questions :) 1. kiki uce - is it working on windows xp/vista ? 2. I'm willing to check that on my own, but maybe somebody knows that already - will store hack (http://www.elitepvpers.com/forum/kal-online/300254 -tutorial-money-bug-store-hack.html) work on R3volution server ? There's GBL v2...
Simple Question Needs Simple Answer[If CR gone what bot we can use]
08/08/2008 - Cabal Online - 2 Replies
If CR is not free what BOT can we use in PH... Many players in Ph asking that question.... TY...



All times are GMT +2. The time now is 08:04.


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.