Register for your free account! | Forgot your password?

Go Back   elitepvpers › Coders Den › AutoIt
You last visited: Today at 07:27

  • 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   #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   #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   #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] = [ _
        
[01, Left mouse button], _
        
[02, Right mouse button], _
        
[04, Middle mouse button (three-button mouse)], _
        
[05, Windows 2000XP X1 mouse button], _
        
[06, Windows 2000XP X2 mouse button], _
        
[08, BACKSPACE key], _
        
[09, TAB key], _
        
[0C, CLEAR key], _
        
[0D, ENTER key], _
        
[10, SHIFT key], _
        
[11, CTRL key], _
        
[12, ALT key], _
        
[13, PAUSE key], _
        
[14, CAPS LOCK key], _
        
[1B, ESC key], _
        
[20, SPACEBAR], _
        
[21, PAGE UP key], _
        
[22, PAGE DOWN key], _
        
[23, END key], _
        
[24, HOME key], _
        
[25, LEFT ARROW key], _
        
[26, UP ARROW key], _
        
[27, RIGHT ARROW key], _
        
[28, DOWN ARROW key], _
        
[29, SELECT key], _
        
[2A, PRINT key], _
        
[2B, EXECUTE key], _
        
[2C, PRINT SCREEN key], _
        
[2D, INS key], _
        
[2E, DEL key], _
        
[30, 0 key], _
        
[31, 1 key], _
        
[32, 2 key], _
        
[33, 3 key], _
        
[34, 4 key], _
        
[35, 5 key], _
        
[36, 6 key], _
        
[37, 7 key], _
        
[38, 8 key], _
        
[39, 9 key], _
        
[41, A key], _
        
[42, B key], _
        
[43, C key], _
        
[44, D key], _
        
[45, E key], _
        
[46, F key], _
        
[47, G key], _
        
[48, H key], _
        
[49, I key], _
        
[4A, J key], _
        
[4B, K key], _
        
[4C, L key], _
        
[4D, M key], _
        
[4E, N key], _
        
[4F, O key], _
        
[50, P key], _
        
[51, Q key], _
        
[52, R key], _
        
[53, S key], _
        
[54, T key], _
        
[55, U key], _
        
[56, V key], _
        
[57, W key], _
        
[58, X key], _
        
[59, Y key], _
        
[5A, Z key], _
        
[5B, Left Windows key], _
        
[5C, Right Windows key], _
        
[60, Numeric keypad 0 key], _
        
[61, Numeric keypad 1 key], _
        
[62, Numeric keypad 2 key], _
        
[63, Numeric keypad 3 key], _
        
[64, Numeric keypad 4 key], _
        
[65, Numeric keypad 5 key], _
        
[66, Numeric keypad 6 key], _
        
[67, Numeric keypad 7 key], _
        
[68, Numeric keypad 8 key], _
        
[69, Numeric keypad 9 key], _
        
[6A, Multiply key], _
        
[6B, Add key], _
        
[6C, Separator key], _
        
[6D, Subtract key], _
        
[6E, Decimal key], _
        
[6F, Divide key], _
        
[70, F1 key], _
        
[71, F2 key], _
        
[72, F3 key], _
        
[73, F4 key], _
        
[74, F5 key], _
        
[75, F6 key], _
        
[76, F7 key], _
        
[77, F8 key], _
        
[78, F9 key], _
        
[79, F10 key], _
        
[7A, F11 key], _
        
[7B, F12 key], _
        
[7C, F13 key], _
        
[7F, F16 key], _
        
[80, F17 key], _
        
[87, F24 key], _
        
[90, NUM LOCK key], _
        
[91, SCROLL LOCK key], _
        
[A0, Left SHIFT key], _
        
[A1, Right SHIFT key], _
        
[A2, Left CONTROL key], _
        
[A3, Right CONTROL key], _
        
[A4, Left MENU key], _
        
[A5, Right 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   #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   #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   #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   #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 +2. The time now is 07:27.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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