
MirnesC2
Active Members-
Posts
117 -
Joined
-
Last visited
Everything posted by MirnesC2
-
figured it out please delete
-
Got it! Thanks for that and the udf
-
Thats a useful .udf thanks for that! output... >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\User\Desktop\ddd.au3" --> IE.au3 V2.4-0 Warning from function _IEFormGetCollection, $_IEStatus_NoMatch --> IE.au3 V2.4-0 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidDataType --> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType --> IE.au3 V2.4-0 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidDataType --> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType --> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType --> IE.au3 V2.4-0 Error from function _IEAction, $_IEStatus_InvalidDataType ! _IE_test_FormElementCollection: IsObj($oIE) = 1 ! _IE_test_FormElementCollection: IsObj($oForms) = 1 ! _IE_test_FormElementCollection: $iForm_index = 0 ! _IE_test_FormElementCollection: $oForm "Type" = HTMLFormElement ! _IE_test_FormElementCollection: $oForm.id = 0 ! _IE_test_FormElementCollection: $oForm.name = 0 ! _IE_test_FormElementCollection: $iElement_index = 0 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="host" class="m-wrap small" type="text" placeholder="00000000"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = host ! _IE_test_FormElementCollection: $iElement_index = 1 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="port" class="m-wrap small" type="text" placeholder="80"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = port ! _IE_test_FormElementCollection: $iElement_index = 2 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="time" class="m-wrap small" type="text" placeholder="60"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = time ! _IE_test_FormElementCollection: $iElement_index = 3 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="method" type="radio" checked="" value="Method Type"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = method ! _IE_test_FormElementCollection: $iElement_index = 4 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="method" type="radio" value="charge"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = method ! _IE_test_FormElementCollection: $iElement_index = 5 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="method" type="radio" value="css"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = method ! _IE_test_FormElementCollection: $iElement_index = 6 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="method" type="radio" value="syn"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = method ! _IE_test_FormElementCollection: $iElement_index = 7 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="Hide" type="checkbox" value="yes"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = Hide ! _IE_test_FormElementCollection: $iElement_index = 8 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="goBtn" class="btn blue" type="submit" value="Go!"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = goBtn ! _IE_test_FormElementCollection: $iForm_index = 1 ! _IE_test_FormElementCollection: $oForm "Type" = HTMLFormElement ! _IE_test_FormElementCollection: $oForm.id = 0 ! _IE_test_FormElementCollection: $oForm.name = 0 ! _IE_test_FormElementCollection: $iElement_index = 0 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="host" class="m-wrap medium" type="text" placeholder="web address"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = host ! _IE_test_FormElementCollection: $iElement_index = 1 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="port" type="hidden" value="80"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = port ! _IE_test_FormElementCollection: $iElement_index = 2 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="time" class="m-wrap small" type="text" placeholder="60"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = time ! _IE_test_FormElementCollection: $iElement_index = 3 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="method" type="radio" checked="" value="xml"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = method ! _IE_test_FormElementCollection: $iElement_index = 4 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="method" type="radio" value="rude"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = method ! _IE_test_FormElementCollection: $iElement_index = 5 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="method" type="radio" value="mear"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = method ! _IE_test_FormElementCollection: $iElement_index = 6 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="method" type="radio" value="slow"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = method ! _IE_test_FormElementCollection: $iElement_index = 7 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="method" type="radio" value="get"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = method ! _IE_test_FormElementCollection: $iElement_index = 8 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="method" type="radio" value="post"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = method ! _IE_test_FormElementCollection: $iElement_index = 9 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="method" type="radio" value="head"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = method ! _IE_test_FormElementCollection: $iElement_index = 10 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="goBtn" class="btn blue" type="submit" value="Go!"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = goBtn ! _IE_test_FormElementCollection: $iForm_index = 2 ! _IE_test_FormElementCollection: $oForm "Type" = HTMLFormElement ! _IE_test_FormElementCollection: $oForm.id = 0 ! _IE_test_FormElementCollection: $oForm.name = 0 ! _IE_test_FormElementCollection: $iElement_index = 0 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="stopCheck[]" type="checkbox" value="2241"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = stopCheck[] ! _IE_test_FormElementCollection: $iElement_index = 1 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="stopbtn" class="btn red" type="submit" value="Stop!"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = stopbtn ! _IE_test_FormElementCollection: $iForm_index = 3 ! _IE_test_FormElementCollection: $oForm "Type" = HTMLFormElement ! _IE_test_FormElementCollection: $oForm.id = 0 ! _IE_test_FormElementCollection: $oForm.name = 0 ! _IE_test_FormElementCollection: $iElement_index = 0 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="host2" class="m-wrap small" type="text" placeholder="000000"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = host2 ! _IE_test_FormElementCollection: $iElement_index = 1 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="port2" class="m-wrap small" type="text" placeholder="80"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = port2 ! _IE_test_FormElementCollection: $iElement_index = 2 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="times" class="m-wrap small" type="text" placeholder="15"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = times ! _IE_test_FormElementCollection: $iElement_index = 3 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="redirect" class="btn light-blue" type="submit" value="Redirect" !"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = redirect --> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType --> IE.au3 V2.4-0 Error from function _IEFormElementCheckboxSelect, $_IEStatus_InvalidDataType >Exit code: 0 Time: 2.416 I think this the bit we are looking for is this.. ! _IE_test_FormElementCollection: $iForm_index = 2 ! _IE_test_FormElementCollection: $oForm "Type" = HTMLFormElement ! _IE_test_FormElementCollection: $oForm.id = 0 ! _IE_test_FormElementCollection: $oForm.name = 0 ! _IE_test_FormElementCollection: $iElement_index = 0 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="stopCheck[]" type="checkbox" value="2241"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = stopCheck[] ! _IE_test_FormElementCollection: $iElement_index = 1 ! _IE_test_FormElementCollection: $oElement "Type" = HTMLInputElement ! _IE_test_FormElementCollection: $oElement "OuterHtml" = <input name="stopbtn" class="btn red" type="submit" value="Stop!"> ! _IE_test_FormElementCollection: $oElement.id = 0 ! _IE_test_FormElementCollection: $oElement.name = stopbtn So how do we set it up to find the form/object now?
-
Welp so much for a simple script, running into problems around every corner it seems >.> This is what I am looking to check off.. That does sound like it could be the issue, it's most likely not hooked right to the box so it can't check it off.. which is what the error messages are saying I am assuming. --> IE.au3 V2.4-0 Warning from function _IEFormGetCollection, $_IEStatus_NoMatch --> IE.au3 V2.4-0 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidDataType --> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType --> IE.au3 V2.4-0 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidDataType --> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType --> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType --> IE.au3 V2.4-0 Error from function _IEAction, $_IEStatus_InvalidDataType --> IE.au3 V2.4-0 Warning from function _IEFormElementCheckboxSelect, $_IEStatus_NoMatch How do I find the right object?
-
Hey, there is a checkbox on IE which I would like to manipulate. The .HTML is as follows.. <td><input type="checkbox" value="557" name="stopCheck[]"></td> I have tried this.. (using the IEFormElementCheckBoxSelect) _IELoadWait($oIE) Local $oForm = _IEFormGetCollection($oIE, 0) _IEFormElementCheckBoxSelect($oForm, 0, "stopCheck[]", 1, "byIndex") But it still will not check the box. I am either doing something wrong in $oForm with the IEFormGetCollection() or IEFormElementCheckBoxSelect() but can't figure out what >.> I followed the examples in the help files.. Any ideas? Thanks!
-
What do I use for this IE form?
MirnesC2 replied to MirnesC2's topic in AutoIt General Help and Support
Ahh yes that worked! Thank you!! -
What do I use for this IE form?
MirnesC2 replied to MirnesC2's topic in AutoIt General Help and Support
Still nothing, didn't even submit the form :3 -
What do I use for this IE form?
MirnesC2 replied to MirnesC2's topic in AutoIt General Help and Support
Ah thank you! The IEFormGetCollection worked when finding it by index. But for some reason the submit function still isn't working. It's the correct username and password entered.. when i take out the submitform part and hit the button manually it works. But with the submit form it submits and just refreshes the page it seems.. no login failed, nothing.. it just resets the username and passwords. #include <IE.au3> Local $oIE = _IECreate("http://www.web.net/",0,1,1,1) Local $oForm = _IEFormGetCollection($oIE, 0) _IELoadWait($oIE) Local $oQuery = _IEFormElementGetCollection($oForm, 0) _IEFormElementSetValue($oQuery, "username") Local $oQuery = _IEFormElementGetCollection($oForm, 1) _IEFormElementSetValue($oQuery, "password") _IEFormSubmit($oForm) -
This is the HTML pulled from the desired page.. <!-- BEGIN BODY --> <body class="login"> <!-- BEGIN LOGO --> <div class="logo"> <img src="assets/img/logo-big.png" alt="" /> </div> <!-- END LOGO --> <!-- BEGIN LOGIN --> <div class="content"> <!-- BEGIN LOGIN FORM --> <form class="form-vertical login-form" method="post"> <h3 class="form-title">Login to your account</h3> <div class="control-group"> <div class="controls"> <div class="input-icon left"> <i class="icon-user"></i> <input class="m-wrap" type="text" name="username" placeholder="Username" /> </div> </div> </div> <div class="control-group"> <div class="controls"> <div class="input-icon left"> <i class="icon-lock"></i> <input class="m-wrap" type="password" style="" name="password" placeholder="Password" /> </div> </div> </div> <div class="form-actions"> <label class="checkbox"> <input type='checkbox' name='rememberme'><A title='Saves your session for 48 hours' rel='tooltip-b' herf='#'>Remember me</a> </label> <input type="submit" id="login-btn" name="loginBtn" class="btn green pull-right" value="Login" /> </form> </div> <div class="forget-password"> <h4>Don't have an account ?</h4> <p> no worries, click <a href="javascript:;" class="" id="forget-password">here</a> to register an account. </p> </div> </form> <!-- END LOGIN FORM --> and this is my .au3 code #include <IE.au3> Local $oIE = _IECreate("http://www.website.net/",0,1,1,1) Local $sHTML = _IEBodyReadHTML($oIE) ;---> Finds login in forms and defines it to variable. $oForm = _IEFormGetObjByName($oIE, "form-vertical login-form") ;--->Reports error. Exit on error, else login. If $oForm = 0 Then MsgBox(48,"Error", "Error "&@error&" has occured handling the variable '$oForm'.") Exit Else ;--->Creates variables for input fields in targeted form above. $iUser = _IEFormElementGetObjByName($oForm, "username") $iPass = _IEFormElementGetObjByName($oForm, "password") ;--->Enters data into input fields of IE window. _IEFormElementSetValue($iUser, "john") _IEFormElementSetValue($iPass, "orange12") ;--->Submits form to server. _IEFormSubmit($oForm) EndIf I keep getting error 7 (7 ($_IEStatus_NoMatch) = No Match) which means it's not finding the form by what I put in I suppose.. what would I put for the login ID or NAME instead of "form-vertical login-form" which isn't working??
-
Yeeeaaah, that does work along with adding a space but I was hoping there would be another way to do it that didn't involving adding those macros and/or spaces. It would get messy later on. But if those are the only options then its no big deal I guess, it would have made the GUI look nicer but thats not too important.
-
Yup that worked, thanks! Now I just need to figure out how to indent WITHOUT adding extra spaces in my strings " (space)blah blah"
-
Hey, I know that GUICtrlSetColor() changes the font color inside an editbox and setting the editboxes state to $GUI_DISABLE will disable it from being written used. My question is... Is there anyway to disable the editbox AND change the font color inside the box? When ever I add the $GUI_DISABLE, it overwrites the color I set the it to (green in this case) and changes it to grey. Is there anyway to bypass this? Also, is there a way to create padding inside the text box? I think that the text is too close to the border... Is there away to change the spacing from borders? #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region: Graphical User Interface $wProgram = GUICreate("CraigsList Alert", 306, 210, 545, 295) $wExecute = GUICtrlCreateButton("Execute", 8, 176, 65, 25) $wCommand = GUICtrlCreateInput("", 8, 152, 289, 21) $wConsole = GUICtrlCreateEdit("Welcome", 8, 8, 289, 145, BitOR($ES_AUTOVSCROLL,$ES_WANTRETURN)) $wStart = GUICtrlCreateButton("Start", 80, 176, 65, 25) $wFetch = GUICtrlCreateButton("Fetch Data", 208, 176, 91, 25) GUICtrlSetBkColor($wConsole, 0x000000) GUICtrlSetBkColor($wCommand, 0x000000) GUICtrlSetColor($wConsole, 0x80FF00) GUICtrlSetColor($wCommand, 0x80FF00) GUICtrlSetState($wConsole, $GUI_DISABLE) GUISetState(@SW_SHOW) #EndRegion While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Here is what I am talking about...
-
Oohhh okay I see now. Thank you! That solves it P.S. Diggin the new "Mark solved" feature.
-
Yeah, maybe you're right I kinda feel as if I have been doing that lately.. I don't know why. I don't find offense in my replies, yet someone else always does. It might just be because of where I am from. You get something slightly sarcastic, so you dish out something slightly sarcastic. And in the end no one takes offense. Here it seems to get people's panties in a bunch. I managed to figure out how to do it in multiple lines. #include <Array.au3> Local $data[10][3] For $i = 0 To 10-1 Step +1 $data[$i][0] = 1987 $data[$i][1] = "Tooth Brush" $data[$i][2] = "$3.00" Next _ArrayDisplay($data) I was hoping to accomplish it with a single line like... #include <Array.au3> Local $data[10][3] For $i = 0 To 10-1 Step +1 $data[$i] = [1398, "Toothbrush", "$3.00"] Next _ArrayDisplay($data) But can't seem to figure out the error im making? It's not that big of deal though I guess. And thank you jdelaney for the example!
-
The way you say please and the questions you seem to be asking can be viewed as slightly sarcastic and loathsome. But I can see now that English might not be your first language so it wasn't intential. I can completely understand you for that and would not blame you for it. But you tried to play it off by making it look like I was doing something wrong instead of saying that. I'm sorry if I offended somehow. Having questions for me is understandable... and I answered them. I thought that the question was understandable enough. I will try to edit it right now, make it more understandable.
-
If it's default is +1 and me adding +1 doesn't effect it at all then why change it? It helps me and doesn't harm anything. Everyone has their own style. You seem to be working backwards from the question and the sarcasm really isn't contributing to anything either. I understand that I need to declare a second dimension Local $array[$num][5] But doing so doesn't solve my problem it just causes another sub-script error. Adding & only combines the data into a single string. And the @CRLF abstruct my data. Each loop in the for-loop should be adding an array to the array $array... but it isn't working. Hence a 2D array...
-
I guess your trying to tell me I'm doing it wrong? Array $array 00 00 - ID 01 - Name 02 - Price 03 - Location 04 - Date 01 00 - ID 01 - Name 02 - Price 03 - Location 04 - Date 02 00 - ID 01 - Name 02 - Price 03 - Location 04 - Date I want have an array like $array[10][5]. So if I want to know the price of the 5th item in the array I would call for it using $array[4][2]. That is my goal but it's not really working out the way I wanted it to
-
All the arrays have the same number of items. What Step -1? Step +1? How will the For-loop increase?
-
My goal is to have an array that contains other arrays... a 2D array. Array $data[4][3] 0 - Array 0 - Id 1 - Name 2 - Price 1 - Array 0 - Id 1 - Name 2 - Price 2 - Array 0 - Id 1 - Name 2 - Price 3 - Array 0 - Id 1 - Name 2 - Price I want to structure my array like this so I can pull data from it easily like this... If I want to know the price of the 2nd item in the array I would call for it using $data[1][2]. This is how I tried to do this but it isn't working. Each different attempt gives a different error message. I don't see what I am doing wrong, maybe someone with more experiance than me can pick up on it? Thanks and Please! #include <Array.au3> Local $data[10] For $i = 0 To 10-1 Step +1 $data[$i] = ["1987", "Toothbursh", "$4.00"] Next _ArrayDisplay($arr) Error Produced (from console window in SciTe) >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\USER\Desktop\asdas.au3" C:\Users\Mirnes\Desktop\asdas.au3 (7) : ==> Error in expression.: $data[$i] = ["1987", "Toothbursh", "$4.00"] $data[$i] = ^ ERROR >Exit code: 1 Time: 0.230 I then figured that my error was not defining the 2nd dimension in the array so I changed $data[10] to $data[10][3] but it just produced a new error message. #include <Array.au3> Local $data[10][3] For $i = 0 To 10-1 Step +1 $data[$i] = ["1987", "Toothbursh", "$4.00"] Next _ArrayDisplay($arr) Error Produced (from console window in SciTe) >"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\USER\Desktop\asdas.au3" C:\Users\Mirnes\Desktop\asdas.au3 (5) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: $data[$i] = ["1987", "Toothbursh", "$4.00"] ^ ERROR >Exit code: 1 Time: 0.222
-
Predict Text for an Edit Control _PredictText.au3 (UDF)
MirnesC2 replied to PhoenixXL's topic in AutoIt Example Scripts
Great UDF! Thank you!! -
Excellent! My help files aren't really returning the searches I am expecting. Been having some problems with help files in general as well. Thank you for the example! Also thank you for the two links in your sig! Will probably be using those as well once I am done with all the main functions of my script.
-
Herroo! I have two questions that I couldn't find the answer to after searching. 1. How do I indent (right,left, up, and down) the text inside an editbox? I couldn't find anything in the help files. 2. Is it possible to have multiple text colors in a single editbox? I know that GUICtrlSetColor() will change the color of the text inside an editbox but I am looking to have multiple colors in a single line. For example, the default color is white. Then I want one word in that sentence red and another orange. (Hello, my name is John)
-
Protecting your code, and an authentication method.
MirnesC2 replied to MirnesC2's topic in AutoIt General Help and Support
Thanks for the reply! Is it okay if I make a separate function called _AuthCheck() and then call it from random points in the code or would it better to embed it with random points of code?And yes I used obfuscator. There is nothing else to use besides that? As for the server calls you mentioned. Any specific autoit functions I should be looking at? Or is there even an example of it laying around some where o.O -
Hey guys, I have been working on this project for some time now and have made a really useful tool for people to use. I want to sell my software (1 month, 3 month, lifetime licenses, etc). I have two worries. Someone will reverse engineer my program and take the source code which I worked hard on. People find a way to bypass my user authentication system.So my question here, for those more experienced in the subject, is...What is the best and most sure way to protect my code? (I don't want hackers unwinding it) What is the best and most sure way to set this user authentication system up?I ask about the protecting source code part because with previous programs I have made and shared for free. I have had other people de-compile my "protected/encrypted" .exe file and send me the code... For the user authentication part, I was thinking of making an online database, mySQL or something along those lines. But the problem with that is that I will probably have to input the database details into the source code... which again brings me back to worry #1. If the source code can be unraveled, then my entire database becomes a security hazard. Any ideas and/or suggestions will be GREATLY appreciated!