Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 09:58

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

Advertisement



[AutoIt3] Probleme

Discussion on [AutoIt3] Probleme within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
iJonas's Avatar
 
elite*gold: 75
Join Date: May 2010
Posts: 934
Received Thanks: 1,285
[AutoIt3] Probleme

Hallo, liebe Community
Ich habe ne Frage
Also:
1. Wie bekomme ich es hin das in dem folgendem Script der Name bzw. das Passwort (beim Einloggen) gespeichert wird.
2. Sich direkt mehrere "Tabs" öffnen, also das ich zwischen 2 Pages switchen kann..
Danke im voraus schonmal..
Hier das Script:
PHP Code:
#cs ----------------------------------------------------------------------------

 
AutoIt Version3.3.6.1
 Author
:         iJonas

 Script 
Function:
    
Shortcut

#ce ----------------------------------------------------------------------------

Script Start Add your code below here
#include <GUIConstants.au3>
#include <IE.au3>

$IE _IECreateEmbedded()

#Region ### START Koda GUI section ### Form=
$Form3 GUICreate("ShortcutName"1018705319552)
$Browser GUICtrlCreateObj($IE001009665)
$Button1 GUICtrlCreateButton("Beenden"35266428933)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

_IENavigate($IE,"www.elitepvpers.com")

While 
1
$nMsg 
GUIGetMsg()
Switch 
$nMsg
Case $GUI_EVENT_CLOSE
Exit
Case 
$Button1
Exit
EndSwitch
WEnd 
Aber es soll das Passwort gespeichert sein ohne, dass wenn ich im I-Net Browser drinnen bin es gespeichert wird.
Zusätzlich ist in dem Bsp. mit "www.elitepvpers.com" ist die Page im AutoIt Browser auf Enlisch wieso und wie kann ich es auf Deutsch machen?

Dankeschön
iJonas is offline  
Thanks
1 User
Old 11/27/2010, 23:16   #2
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Hey,
hier aus dem Thread kannst du das mit den Tabs schonmal rausnehmen und bei der sache mit dem psw weis ich noch nicht. Also du willst dass wenn er sich einloggt das passwort speichert aber wenn man die seite erneut besucht sich nicht gleich einloggt oder?
BlackHybrid is offline  
Old 11/27/2010, 23:19   #3
 
iJonas's Avatar
 
elite*gold: 75
Join Date: May 2010
Posts: 934
Received Thanks: 1,285
Ich möchte das Login-Name und Passwort einfach nur gespeichert werden damit wenn ich mich später wenn ich mich einloggen will nicht nochmal dass PW eingeben muss.

Edie: Wieso kann ich das mit den Tabs gleich rausnehmen?
iJonas is offline  
Thanks
1 User
Old 11/27/2010, 23:22   #4
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Also dass er speichert sobald man login drückt müsst ich überlegen aber wenn man vorher pw und id irgendwo hinterlegt ist das kein problem. Würde dann so aussehen, wenn die Abfrage kam ob die Seite elitepvpers.com aktiv ist:
(Benutzername und Passwort in einer Ini.)

PHP Code:
$name iniread("file","section","Login Name","")
$passwort iniread("file","section","Login Passwort","")

_IEnavigate($oIE,"elitepvpers.com")
$oForm _IEFormGetCollection($oIE,0)
$oUsername _IEFormElementGetObjByname($oForm,"vb_login_username")
$oPassword _IEFormElementGetObjByName($oForm,"vb_login_password")
_IEFormElementSetValue($oUsername,$name)
_IEFormElementSetValue($oPassword,$passwort)
_IEFormSubmit($oForm) ;;; Je nach dem ob er gleich einloggen soll 
Zudem kann man natürlich noch den Inhalt der Ini verschlüsseln.

Edit: Kannst du aus dem Threat übernehmen wenn du willst weil des da bereits im Quelltext steht
BlackHybrid is offline  
Old 12/04/2010, 19:51   #5
 
SCORNI's Avatar
 
elite*gold: 26
Join Date: Jun 2009
Posts: 972
Received Thanks: 228
BlackHybrid dein Script ist völlig mangelhaft. Wenn du es startst kommt bei ienavigate schon direkt der erste fehler. Was wenn die Inidatei nicht existiert? Wenn du es machst dann mach es bitte richtig.

Hier nun ein Script das klappt :

PHP Code:
#include <IE.au3>
if not FileExists (@scriptdir&"\file.ini"then

iniwrite 
("file.ini","section","Login Name","ID")
iniwrite ("file.ini","section","Login Passwort","PW")


EndIf
$name iniread("file.ini","section","Login Name","")
$passwort iniread("file.ini","section","Login Passwort","")


$oIE _IECreate ("www.elitepvpers.com")
$oForm _IEFormGetCollection($oIE,0)
$oUsername _IEFormElementGetObjByname($oForm,"vb_login_username")
$oPassword _IEFormElementGetObjByName($oForm,"vb_login_password")
_IEFormElementSetValue($oUsername,$name)
_IEFormElementSetValue($oPassword,$passwort)
_IEFormSubmit($oForm) ;;; Je nach dem ob er gleich einloggen soll 
Du musst nur bei iniwrite bei pw dein passwort hinschreiben und bei id deine ID.


€dit: Bei BlackHybrid´s Script fehlt in der ersten Zeile schon das include
SCORNI is offline  
Old 12/04/2010, 20:11   #6
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Ich bin halt davon ausgegangen dass es noch menschen gibt bei denen noch die Brain.exe existiert. Außerdem will ich hier nur ein Leitfaden geben um anderen nicht gleich alles in den ... zu stecken. Mit Strg+c und Strg+v lernt man halt nicht viel.
BlackHybrid is offline  
Old 12/04/2010, 20:44   #7
 
SCORNI's Avatar
 
elite*gold: 26
Join Date: Jun 2009
Posts: 972
Received Thanks: 228
Ok da hast du recht.

Mein fail0r
SCORNI is offline  
Reply


Similar Threads Similar Threads
Autoit3 Help
08/07/2010 - AutoIt - 42 Replies
Ich versuche einen AFK bot zu machen^^ Hier mal mein script: HotKeySet( "{F8}" , "Start") HotKeySet( "{F9}", "Pause") HotKeySet( "{F10}", "Beenden") Func Start()
AutoIt3 plz help
11/11/2009 - Mabinogi - 2 Replies
ummm niether autiit3 or autohotkey works on my mabinogi. i tried setting up fossil macro before and it just moved around curson around my mabi screen without clicking. i tried making autoit cobweb gathering bot but it didnt work. it is something to do with mabinogi being not a current window but what ever i try it just doesnt work. basically the problem is if i ran any of those macro they run on my desktop screen instead of my mabinogi window... how do you make them run on mabinogi window?...
Autoit3
09/14/2009 - Guild Wars - 4 Replies
Hallo, hab ein paar Fragen zu Autoit. 1. Mit MsbBox öffnet man ja ein Fenster aber wie schreibe ich in das Fester(mit welchem Befehl). z.B. Wie alt bist du? Antwort: 2. Wie speichert man dieses als Variabel. Gruss artimes:handsdown:
Autoit3
05/31/2009 - Metin2 - 9 Replies
Guten Abend ich suche jemanden der mir ein bissl was über Autoit erklären kann. Ich krieg nichmal nen pickup-bot hin (*schäm*) oder bei diesen textboxen ja/nein buttons aber ein bisschen was kann ich schon auch! ICQ:453200614 MfG Peter
SF - AutoIt3
08/29/2008 - Soldier Front - 2 Replies
I was wondering if anyone had any ideas about how to get AutoIt to work in-game.I've made a type of Anti-Recoil tool that works flawlessly outside of the game.Maybe someone can check it out and see whats up with it. The uploaded file comes with AutoIt v3 for those who do not have the updated version of AutoIt. Along with the .au3 script file as well as the compiled .exe for testing purposes.Any ideas would be appreciated. The way this works is you run the .exe (or the .au3 file after...



All times are GMT +1. The time now is 09:58.


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.