Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 03:36

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

Advertisement



WinAPIEx

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

Reply
 
Old 05/05/2012, 19:50   #16
 
elite*gold: 0
Join Date: Jun 2010
Posts: 578
Received Thanks: 56
hat geklappt, danke.

Jetzt kommt das nächste Problem:
elitemuffin is offline  
Old 05/05/2012, 20:09   #17
 
-STORM-'s Avatar
 
elite*gold: 124
Join Date: Dec 2009
Posts: 2,114
Received Thanks: 3,142
Wie wärs, wenn du deinen Code mal hier reinstellst? Würde es deutlich einfacher machen, dir zu helfen.
-STORM- is offline  
Old 05/05/2012, 20:37   #18
 
elite*gold: 0
Join Date: Jun 2010
Posts: 578
Received Thanks: 56
PHP Code:
#RequireAdmin
#include <WinAPI.au3>
#include <Misc.au3>
#include <GUIConstantsEx.au3>
#include <ButtonConstants.au3>
#include <StaticConstants.au3>
#include <EditConstants.au3>

Global $slot2$slot3$slot
Global $keys[119][2] = [ _
        
[01Left mouse button], _
        
[02Right mouse button], _
        
[04Middle mouse button (three-button mouse)], _
        
[05Windows 2000XP X1 mouse button], _
        
[06Windows 2000XP X2 mouse button], _
        
[08BACKSPACE key], _
        
[09TAB key], _
        
[0CCLEAR key], _
        
[0DENTER key], _
        
[10SHIFT key], _
        
[11CTRL key], _
        
[12ALT key], _
        
[13PAUSE key], _
        
[14CAPS LOCK key], _
        
[1BESC key], _
        
[20SPACEBAR], _
        
[21PAGE UP key], _
        
[22PAGE DOWN key], _
        
[23END key], _
        
[24HOME key], _
        
[25LEFT ARROW key], _
        
[26UP ARROW key], _
        
[27RIGHT ARROW key], _
        
[28DOWN ARROW key], _
        
[29SELECT key], _
        
[2A, PRINT key], _
        
[2BEXECUTE key], _
        
[2C, PRINT SCREEN key], _
        
[2DINS key], _
        
[2EDEL key], _
        
[300 key], _
        
[311 key], _
        
[322 key], _
        
[333 key], _
        
[344 key], _
        
[355 key], _
        
[366 key], _
        
[377 key], _
        
[388 key], _
        
[399 key], _
        
[41A key], _
        
[42B key], _
        
[43C key], _
        
[44D key], _
        
[45E key], _
        
[46F key], _
        
[47G key], _
        
[48H key], _
        
[49I key], _
        
[4AJ key], _
        
[4BK key], _
        
[4CL key], _
        
[4DM key], _
        
[4EN key], _
        
[4FO key], _
        
[50P key], _
        
[51Q key], _
        
[52R key], _
        
[53S key], _
        
[54T key], _
        
[55U key], _
        
[56V key], _
        
[57W key], _
        
[58X key], _
        
[59Y key], _
        
[5AZ key], _
        
[5BLeft Windows key], _
        
[5CRight Windows key], _
        
[60Numeric keypad 0 key], _
        
[61Numeric keypad 1 key], _
        
[62Numeric keypad 2 key], _
        
[63Numeric keypad 3 key], _
        
[64Numeric keypad 4 key], _
        
[65Numeric keypad 5 key], _
        
[66Numeric keypad 6 key], _
        
[67Numeric keypad 7 key], _
        
[68Numeric keypad 8 key], _
        
[69Numeric keypad 9 key], _
        
[6AMultiply key], _
        
[6BAdd key], _
        
[6CSeparator key], _
        
[6DSubtract key], _
        
[6EDecimal key], _
        
[6FDivide key], _
        
[70F1 key], _
        
[71F2 key], _
        
[72F3 key], _
        
[73F4 key], _
        
[74F5 key], _
        
[75F6 key], _
        
[76F7 key], _
        
[77F8 key], _
        
[78F9 key], _
        
[79F10 key], _
        
[7AF11 key], _
        
[7BF12 key], _
        
[7CF13 key], _
        
[7FF16 key], _
        
[80F17 key], _
        
[87F24 key], _
        
[90NUM LOCK key], _
        
[91SCROLL LOCK key], _
        
[A0Left SHIFT key], _
        
[A1Right SHIFT key], _
        
[A2Left CONTROL key], _
        
[A3Right CONTROL key], _
        
[A4Left MENU key], _
        
[A5Right MENU key], _
        
[BA, ;], _
        
[BB, =], _
        
[BC, ,], _
        
[BD, -], _
        
[BE, .], _
        
[BF, ], _
        
[C0, `], _
        [DB, [], _
        [DC, ], _
        [DD, ]]]
global 
$defkey = False, $key1 
Das wäre es, womit ich ein problem habe -.-
elitemuffin is offline  
Old 05/05/2012, 20:43   #19
 
Achat's Avatar
 
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,403
"String" oder 'String'

Tutorials lesen

MfG
Achat is offline  
Old 05/05/2012, 21:21   #20
 
elite*gold: 0
Join Date: Jun 2010
Posts: 578
Received Thanks: 56
Quote:
Originally Posted by Achat View Post
"String" oder 'String'

Tutorials lesen

MfG
bin ich doch dabei... Aber da finde ich den fehler nicht. Der rest ist eigenproduktion..
elitemuffin is offline  
Old 05/06/2012, 00:02   #21
 
Achat's Avatar
 
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,403
Quote:
Originally Posted by elitemuffin View Post
bin ich doch dabei... Aber da finde ich den fehler nicht. Der rest ist eigenproduktion..
Code:
Global $keys[119][2] = [ _ 
        ["01", "Left mouse button"], _ 
        ["02", "Right mouse button"], _ 
        ["04", "Middle mouse button (three-button mouse)"], _
Usw....

MfG
Achat is offline  
Old 05/08/2012, 21:59   #22
 
elite*gold: 464
Join Date: Dec 2010
Posts: 3,998
Received Thanks: 3,909
Sorry aber das sieht alles ziemlich nach C&P aus

'!'
Dies weist AutoIt an, den ALT Tastendruck zu senden, folglich würde Send("Das ist ein Text!a") die Tastendrücke "Das ist ein Text" senden und dann die Tastendrücke "ALT+a".

Nebenbei sind einige Programme sehr empfindlich bezüglich Großbuchstaben und ALT-Taste, z.B. "!A" ist unterschiedlich zu "!a". Der erste Ausdruck bewirkt ALT+SHIFT+A, der zweite ist ALT+a. Im Zweifelsfall ist die Kleinschreibung zu verwenden!

'+'
Dies weist AutoIt an, den SHIFT-(=UMSCHALT)-Tastendruck zu senden, folglich würde Send("Hell+o") den Text "HellO" senden. Send("!+a") würde "ALT+SHIFT+a" senden.

'^'
Dies weist AutoIT an, den CTRL (=STRG)-Tastendruck zu senden, folglich würde Send("^!a") "STRG+ALT+a" senden.

Bemerkung: Einige Programme reagieren sehr empfindlich auf Groß-/Kleinschreibung (Case sensitive) und STRG-Tastendrücke, z.B. ist "^A" unterschiedlich zu "^a". Der erste Ausdruck sendet STRG+SHIFT+A, der zweite sendet STRG+a. Im Zweifelsfall benutzt man die Kleinschreibung!

'#'
Die Hash (Raute oder Doppelkreuz)-Taste simuliert das Drücken der Windows-Taste. Folglich würde Send("#r") Win+r senden und damit die Run Dialogbox (Ausführen-Dialog) aufrufen.

Credits goes to:
Dr.Toni-old is offline  
Reply




All times are GMT +1. The time now is 03:36.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.