Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 10:44

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

Advertisement



Autoit & Pointer Frage

Discussion on Autoit & Pointer Frage within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1


 
AndyDe's Avatar
 
elite*gold: 18
Join Date: Jul 2013
Posts: 1,299
Received Thanks: 96
Autoit & Pointer Frage

Hallo Community,

Ich habe einen Pointer der anzeigt wieviele Spieler in meiner Nähe sind und nun meine Frage dazu.

Kann man machen, das man das alles einzeln machen kann wie in meinen Fall was ich gerade teste.

Code:
$mainGUIPLAYER = GUICreate("Spielerliste", 441, 148, -1, -1,  BitOR(0x80000000,0x00C00000))
GUISetBkColor(0x434E54)
WinMove("Spielerliste","",10,10)
$idCount1 = GUICtrlCreateInput("", 8, 24, 33, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetData($idCount1, GetPlayerCounter())
GUICtrlSetColor(-1, 0xFF4500)
$idCount2 = GUICtrlCreateInput("", 8, 48, 33, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF4500)
$idCount3 = GUICtrlCreateInput("", 8, 72, 33, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF4500)
$idCount4 = GUICtrlCreateInput("", 8, 96, 33, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF4500)
$idCount5 = GUICtrlCreateInput("", 8, 120, 33, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF4500)
$idName1 = GUICtrlCreateInput("", 60, 24, 105, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF4500)
$idName2 = GUICtrlCreateInput("", 60, 48, 105, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF4500)
$idName3 = GUICtrlCreateInput("", 60, 72, 105, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF4500)
$idName4 = GUICtrlCreateInput("", 60, 96, 105, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF4500)
$idName5 = GUICtrlCreateInput("", 60, 120, 105, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF4500)
$idLegion1 = GUICtrlCreateInput("", 183, 24, 105, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF4500)
$idLegion2 = GUICtrlCreateInput("", 183, 48, 105, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF4500)
$idLegion3 = GUICtrlCreateInput("", 183, 72, 105, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF4500)
$idLegion4 = GUICtrlCreateInput("", 183, 96, 105, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF4500)
$idLegion5 = GUICtrlCreateInput("", 183, 120, 105, 21)
GUICtrlSetBkColor(-1, 0xD3D3D3)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0xFF4500)
$idLABELTABLE = GUICtrlCreateLabel("   ID           Playername                       Legion", 8, 5, 213, 17)
GUICtrlSetColor(-1, 0xFFFFFF)
$idDisconnect = GUICtrlCreateGroup(" Auto Disconnect ", 312, 8, 121, 129)
GUICtrlSetColor(-1, 0xFFFFFF)
$idRefreshPlayer = GUICtrlCreateButton("Refresh", 322, 95, 100, 17)
$idQuitPlayer = GUICtrlCreateButton("Schließen", 322, 115, 100, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GuiSetstate(@SW_Hide, $mainGUIPLAYER)
Nun möchte ich das Offsets was mir die gesamte Anzahl anzeigt einzeln machen das ich sehe
1 - bin ich selber
2 - Andere Spieler
3 - Anderer Spieler
4 - Anderer Spieler
5 - Anderer Spieler

Ist das möglich ? ich bitte um Antworten. In dem Script seht Ihr nur eine GUI Die Adresse und Offsets habe ich in einer Function.

Lg
AndyDe is offline  
Old 08/09/2015, 12:37   #2
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
1.) Ich versteh nicht was du genau willst

2.) Du erstellst eine gui und gibst dort die position des fensters an. danach verschiebst du es mit WinMove.....
YatoDev is offline  
Old 08/09/2015, 12:42   #3


 
AndyDe's Avatar
 
elite*gold: 18
Join Date: Jul 2013
Posts: 1,299
Received Thanks: 96
Ja genau dann habe ich aus dem Game eine Pointer gesucht. Der Spieleranzahl anzeigt zb. 56 Leute in meiner Nähe.
Und meine Frage ist es möglich das einzeln zu machen das ich es nach der Reihe auflisten kann. in meine ID Inputs.
$idCount1 wäre dann 1
$idCount2 wäre dann 2
... bis 5

Ist das möglich oder ehr nicht?
AndyDe is offline  
Old 08/09/2015, 14:57   #4
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
möglich ist das
YatoDev is offline  
Old 08/09/2015, 15:05   #5


 
AndyDe's Avatar
 
elite*gold: 18
Join Date: Jul 2013
Posts: 1,299
Received Thanks: 96
Und wie könnte ich das umsetzten? Bitte um Hilfe
AndyDe is offline  
Old 08/09/2015, 15:25   #6
 
YatoDev's Avatar
 
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
Warum fragst du denn ob das möglich ist anstatt direkt zu sagen das du nicht programmieren kannst.

Ich verstehe auch einfach nicht was du machen willst und deine frage gehört ins coders trading oder den request thread
YatoDev is offline  
Old 08/10/2015, 01:56   #7
 
Paraly's Avatar
 
elite*gold: 27
Join Date: Sep 2009
Posts: 5,592
Received Thanks: 1,596
Also wenn du ~56 Entities in diesen 5 Feldern anzeigen willst brauchst du noch 2 Buttons mit dennen du Scrollen kannst.
Der Rest sollte einfach zu lösen sein mit einem Array falls du den hast

hier die verkürzte und ordentliche variante deines skripts.
PHP Code:
Dim $idCount[4][6]
$mainGUIPLAYER GUICreate("Spielerliste"441148, -1, -1,  BitOR(0x80000000,0x00C00000))
GUISetBkColor(0x434E54)
WinMove("Spielerliste","",10,10)
For 
$i2 1 To 3
 
If $i2 1 Then
  $x 
8
  $w 
33
  $h 
21
 
ElseIf $i2 2 Then
  $x 
60
  $w 
105
  $h 
21
 
ElseIf $i2 3 Then
  $x 
183
  $w 
105
  $h 
21
 
EndIf
 For 
$i 1 To 5
  $idCount
[$i2][$i] = GUICtrlCreateInput(""$x$i*24$w$h)
  
GUICtrlSetBkColor(-10xD3D3D3)
  
GUICtrlSetFont(-188000"MS Sans Serif")
  
GUICtrlSetData($idCount[$i2][$i], GetPlayerCounter())
  
GUICtrlSetColor(-10xFF4500)
 
Next
Next
$idLABELTABLE 
GUICtrlCreateLabel("   ID           Playername                       Legion"8521317)
GUICtrlSetColor(-10xFFFFFF)
$idDisconnect GUICtrlCreateGroup(" Auto Disconnect "3128121129)
GUICtrlSetColor(-10xFFFFFF)
$idRefreshPlayer GUICtrlCreateButton("Refresh"3229510017)
$idQuitPlayer GUICtrlCreateButton("Schließen"32211510017)
GUICtrlCreateGroup("", -99, -9911)
GuiSetstate(@SW_SHOW$mainGUIPLAYER)
While 
1
WEnd 
Paraly is offline  
Thanks
1 User
Old 08/10/2015, 08:50   #8


 
AndyDe's Avatar
 
elite*gold: 18
Join Date: Jul 2013
Posts: 1,299
Received Thanks: 96
Danke
AndyDe is offline  
Reply


Similar Threads Similar Threads
[Frage]CE Pointer idn Autoit eintragen
08/06/2010 - General Coding - 5 Replies
Hallo, Ich habe heute versucht die Pointer von 4Story aus CE in AutoIt einzutragen. Dazu wollte ich erst mal den CE Pointer to AutoIt von expo_botter verwenden aber bei mri kommt da immer ein varialen fail wenn ich auf Code generieren gehe. Dann hab ich mir schon so ne Liste für AutoIt runtergeladen wo man nur noch die Pointer eintragen muss, aber ich weiß nicht wie mein die Pointer in autoit eingibt. Drum wollte ich mal fragen da ich bei autoit ein Noob bin, wie man die Adressen von den...
[AutoIt] Frage zu Pointer
07/15/2010 - AutoIt - 15 Replies
hu.hu... ich hab beschlossen einen therad aufzumachen ,weil für ein poniter einschreiben keine gute gibt. (finde ich) Bei mir sind da ein paar probleme aufgetreten: 1) Wenn ich #include <NomadMemory.au3> oben hin schreibe meldet er mir ein fehler C:\Users\fabi\Desktop\test.au3 (2) : ==> Error opening the file.:



All times are GMT +2. The time now is 10:44.


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.