|
You last visited: Today at 15:34
Advertisement
Edit Problem
Discussion on Edit Problem within the AutoIt forum part of the Coders Den category.
12/18/2011, 20:03
|
#1
|
elite*gold: 0
Join Date: Nov 2011
Posts: 121
Received Thanks: 45
|
Edit Problem
Wie schreibe ich das wenn z.b. eine Datei (in dem fall $1) in einer editbox ausgelesen wird ohne das da nur z.b. bei einer dll (-D3D9- by Corex'[Limited].dll) steht : MZ und nicht mehr obwohl in der dll 120 zeihlen sind oda sowas ?!!
#HelpPlease
|
|
|
12/18/2011, 20:04
|
#2
|
elite*gold: 64
Join Date: May 2011
Posts: 1,228
Received Thanks: 847
|
Öhm?
Also bitte nochmal für mich und sende mal das script...
Oder ein Beispiel...
|
|
|
12/18/2011, 20:07
|
#3
|
elite*gold: 0
Join Date: Nov 2011
Posts: 121
Received Thanks: 45
|
Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Filer - .:iIi:.", 306, 138, -1, -1)
$Button1 = GUICtrlCreateButton("Read :", 96, 8, 75, 25)
$Input1 = GUICtrlCreateInput("", 176, 8, 121, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER))
$Edit1 = GUICtrlCreateEdit("", 8, 40, 289, 89, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN,$WS_VSCROLL))
$Button2 = GUICtrlCreateButton("Write", 8, 8, 75, 25)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$I1 = GUICtrlRead($Input1)
$1 = FileRead($I1)
GUICtrlSetData($Edit1,$1)
EndSwitch
WEnd
das is das was ich mit dem read habn wollte :P
|
|
|
12/18/2011, 20:14
|
#4
|
elite*gold: 64
Join Date: May 2011
Posts: 1,228
Received Thanks: 847
|
Also funktioniert jetzt alles ?
Oder immer noch ein problem ?
Und wenn nicht dann hier:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Filer - .:iIi:.", 306, 138, -1, -1)
$Button1 = GUICtrlCreateButton("Read :", 96, 8, 75, 25)
$Input1 = GUICtrlCreateInput("", 176, 8, 121, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER))
$Edit1 = GUICtrlCreateEdit("", 8, 40, 289, 89, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETU RN,$WS_VSCROLL,$WS_HSCROLL))
$Button2 = GUICtrlCreateButton("Write", 8, 8, 75, 25)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$I1 = GUICtrlRead($Input1)
$1 = FileRead($I1)
GUICtrlSetData($Edit1,$1)
EndSwitch
WEnd
|
|
|
12/18/2011, 20:22
|
#5
|
elite*gold: 0
Join Date: Nov 2011
Posts: 121
Received Thanks: 45
|
hab doch oben geschrieben das nur eine zeile in edit geschrieben wird anstatt alle ..
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Filer - .:iIi:.", 306, 138, -1, -1)
$Button1 = GUICtrlCreateButton("Read :", 96, 8, 75, 25)
$Input1 = GUICtrlCreateInput("", 176, 8, 121, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER))
$Edit1 = GUICtrlCreateEdit("", 8, 40, 289, 89, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETU RN,$WS_VSCROLL,$WS_HSCROLL))
$Button2 = GUICtrlCreateButton("Write", 8, 8, 75, 25)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$I1 = GUICtrlRead($Input1)
$1 = FileRead($I1)
GUICtrlSetData($Edit1,$1)
EndSwitch
WEnd
geht net
|
|
|
12/18/2011, 21:14
|
#6
|
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
|
Warscheinlich sind keine Umbrüche im Text. Und lerne bitte, wie man sich verständlich ausdrückt.
|
|
|
12/18/2011, 22:12
|
#7
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
Quote:
Originally Posted by iK3ksii
Wie schreibe ich das wenn z.b. eine Datei (in dem fall $1) in einer editbox ausgelesen wird ohne das da nur z.b. bei einer dll (-D3D9- by Corex'[Limited].dll) steht : MZ und nicht mehr obwohl in der dll 120 zeihlen sind oda sowas ?!!
#HelpPlease
|
eine dll ist eine vom compiler in maschienencode umgewandelte datei...
hier gibt es keine zeilen sondern bytes welche du binär darstellen könntest, indem du beim fileopen 16 als parameter auswählst.
wer öffnet denn bitte programme mit einem editor? -.- wenn du ein bild bearbeiten möchtest, gibt es dafür sicher auch geeignetere tools als beispielsweise word oder excel...
|
|
|
12/19/2011, 19:25
|
#8
|
elite*gold: 0
Join Date: Nov 2011
Posts: 121
Received Thanks: 45
|
Quote:
Originally Posted by Lawliet!
Warscheinlich sind keine Umbrüche im Text. Und lerne bitte, wie man sich verständlich ausdrückt.
|
es tut mir leid das ihr einfach nicht so schlau seid und es versteht .. es hat nichts mit einer schreibweiise su tun .. oda kannst du das hier nicht LeSeN ??
tzzz..
|
|
|
12/19/2011, 20:09
|
#9
|
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
|
Bestimmt sind wir drann schuld.
Quote:
Wie schreibe ich das wenn z.b. eine Datei (in dem fall $1)
|
Sollte man ja kapieren, da eine Datei und eine Variable ($1) ja das gleiche sind
/ironie off.
|
|
|
12/19/2011, 21:36
|
#10
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
Quote:
Originally Posted by iK3ksii
es tut mir leid das ihr einfach nicht so schlau seid und es versteht .. es hat nichts mit einer schreibweiise su tun .. oda kannst du das hier nicht LeSeN ??
tzzz..
|
nochmals um das klar zu stellen...
gedankengänge beim posten: - Problem Erfassung. (was will ich tun?)
- Problem Formulierung. (wie kann ich mein problem vernünftig formulieren?)
- Filtern (was ist in meiner formulierng absolut nutzlos? <-- Löschen!)
- Ansatz vorweisen (was habe ich schon geschaft?)
- Problem mit Ansatz (wo genau liegt nun mein Problem?)
solange du dich an diese schrittfolge hältst, werden leute auch in der lage sein dir zu helfen =)
wendet man das ganze auf deinen post an, ergibt sich folgendes:
Quote:
Ich möchte den Inahlt einer datei in einem Edit innerhalb meines GUIs darstellen.
Mein bisheriger Lösungsansatz sieht so aus:
Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Filer - .:iIi:.", 306, 138, -1, -1)
$Button1 = GUICtrlCreateButton("Read :", 96, 8, 75, 25)
$Input1 = GUICtrlCreateInput("", 176, 8, 121, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_CENTER))
$Edit1 = GUICtrlCreateEdit("", 8, 40, 289, 89, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN,$WS_VSCROLL))
$Button2 = GUICtrlCreateButton("Write", 8, 8, 75, 25)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$I1 = GUICtrlRead($Input1)
$1 = FileRead($I1)
GUICtrlSetData($Edit1,$1)
EndSwitch
WEnd
Problem hierbei:
Wähle ich als Datei ein File des Typs DLL, so erhalte ich als Inhalt nur "MZ". Ist es möglich den gesamten Inhalt des Files im Edit darzustellen?
|
genau so sieht ein sauber formuliertes problem aus.
|
|
|
|
Similar Threads
|
World Edit Problem und Creeper Problem
06/04/2011 - Minecraft - 15 Replies
Also wegen Worldedit immer wenn ich //walls oder so eingebe kommt dieser error: An internal error occured while attempting to perform this command
Und jetz wegen Creeper
Ich mach die Creeper bei WorldGuard oder wie das heißt immer weg aber es geht nicht O_o es kommen immer so 2 und machen boom baam bitte um hilfe :( #
sieht bei mir so aus
mobs:
block-creeper-explosions: true
block-creeper-block-damage: true
block-creature-spawn:
anti-wolf-dumbness: false
|
Problem in Pk2 edit
10/23/2010 - Silkroad Online - 1 Replies
he yall im using agbot atm and i placed the pk2 at sro folder, bot working well but when it goes to city its dc and writing when im trying to loggin that server is under inspections. thx for ppl who would help !
|
Edit problem !
02/23/2010 - Conquer Online 2 - 1 Replies
I got an question about edits thought it would fit if i made a thread here..
My halos are pretty fucked up.. It says Red Team and Blue Team, i know it's something wrong with the edit there but i dunno what.. So if someone do knows please reply to me.. Or if someone can upload an folder with the halos and PM me that would be awesome to
Oh, and my lucky time doesnt shows either..It works on my npcs, but not on players.. Tryed to download a new one but still doesnt work, if someone can help...
|
All times are GMT +2. The time now is 15:34.
|
|