|
You last visited: Today at 20:37
Advertisement
help needed with checkbox check
Discussion on help needed with checkbox check within the AutoIt forum part of the Coders Den category.
02/21/2020, 01:36
|
#1
|
elite*gold: 0
Join Date: Feb 2015
Posts: 90
Received Thanks: 20
|
help needed with checkbox check
Hi,
I need some help regarding the checkbox 'check'. When I try to run my script it doesn't work and I get the next msg
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $b_login
$rUsername = GUICtrlRead($ip_username)
$rPassword = GUICtrlRead($ip_password)
$rSave = GUICtrlRead($Checkbox2)
If $rUsername == '' Or $rPassword == '' Then
Msgbox(48, 'Login Error', 'No Username or password was entered')
EndIf
If _Ischecked($rSave) Then
IniWrite('userdata.ini', 'auth', 'username', $rUsername)
Iniwrite('userdata.ini', 'auth', 'username', $rPassword)
EndIf
Local $a
If $a = __darkorbit_login($rUsername, $rPassword, 'www.darkorbit.com') == 0 Then
MsgBox(48, 'Login failed', 'Could not login')
Else
__darkorbit_load_game($a)
EndIf
EndSwitch
WEnd
How to fix this ?
|
|
|
02/21/2020, 04:15
|
#2
|
elite*gold: 0
Join Date: Apr 2011
Posts: 363
Received Thanks: 167
|
Quote:
Originally Posted by Lost King
Hi,
I need some help regarding the checkbox 'check'. When I try to run my script it doesn't work and I get the next msg
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $b_login
$rUsername = GUICtrlRead($ip_username)
$rPassword = GUICtrlRead($ip_password)
$rSave = GUICtrlRead($Checkbox2)
If $rUsername == '' Or $rPassword == '' Then
Msgbox(48, 'Login Error', 'No Username or password was entered')
EndIf
If _Ischecked($rSave) Then
IniWrite('userdata.ini', 'auth', 'username', $rUsername)
Iniwrite('userdata.ini', 'auth', 'username', $rPassword)
EndIf
Local $a
If $a = __darkorbit_login($rUsername, $rPassword, 'www.darkorbit.com') == 0 Then
MsgBox(48, 'Login failed', 'Could not login')
Else
__darkorbit_load_game($a)
EndIf
EndSwitch
WEnd
How to fix this ?
|
Code:
#include <GUIConstantsEx.au3>
Func _IsChecked($idControlID)
Return BitAND(GUICtrlRead($idControlID), $GUI_CHECKED) = $GUI_CHECKED
EndFunc ;==>_IsChecked
I don't think is your script if so u won't ask this stupid question cause you could solve this problem easily
|
|
|
02/22/2020, 00:11
|
#3
|
elite*gold: 0
Join Date: Apr 2011
Posts: 11,117
Received Thanks: 2,436
|
General Coding -> AutoIt
#moved
|
|
|
 |
Similar Threads
|
[HELP] unlock characters/ping checkbox/hide missions
03/26/2016 - S4 League - 2 Replies
Does anyone know how to achieve the following modifications in a FagNet client through the Resource Tool or maybe with the actual server files?
1. unlocking all three character slots instantly and always, at level 0
2. enabling the "Ping Check" checkbox by default while in a standby room
3. hiding the Mission List window forever upon login
Thanks in advance. I'm trying to improve a private server with these.
|
[VB 2010][HELP] Checkbox abfragen
07/24/2014 - .NET Languages - 3 Replies
Hallo Liebe Com,
ich möchte gerne 119 Check Boxen abfragen und zählen lassen.
Die Ausgabe erfolgt in einem Label welches nur ausgeben soll "Anzahl - Champions in Besitz."
Desweiteren sollen der CheckBoxenStatus gespeichert da der Status in einem Weiteren TAB gebaucht wird, denn da soll dieser Status neue Felder freischalten.
Habe leider kein wirklichen Plan von Visual Basic jedoch eine Idee die ich umsetzen möchte, es ist nicht wichtig wie lange ich brauche ...
|
need help with form2.checkbox.checkstate
11/04/2013 - .NET Languages - 8 Replies
Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
while 1
if form2.checkbox.checkstate= 1 then
MsgBox(Form2.Checkbox.Checkstate)
End If
End While
End Sub
|
Help me in Start&Stop and time and Checkbox :D
05/02/2012 - AutoIt - 18 Replies
i make the Script need Work Stop and Time i know how make Start work!
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
;================================================ =
#Region ### START Koda GUI section ### Form=
|
Help-CheckBox zuweisen!
11/29/2009 - AutoIt - 13 Replies
Hallo Leute
ich hab mal wieder ne Frage xD
Also, ich wollte mal mit AutoIT ein Programm schreiben für mich und meine freunde und so, dass wenn sie den Pc neumachen das dieses Programm halt die wichtigsten bzw. auch guten Programme automatisch insterliert.
Das mit dem Automatisch insterlieren war ja kein Problem für mich, doch wie mache ich es das er jetzt z.b. anklickt das er Antivir haben will und Firfox, dass er die nacheinander Insterliert.
Also hier noch mal mehr Infos.
Wenn er jetzt...
|
All times are GMT +1. The time now is 20:37.
|
|