
Sypher
Active Members-
Posts
87 -
Joined
-
Last visited
Everything posted by Sypher
-
Progress bar when applying WIM image file
Sypher replied to Catdaddy's topic in AutoIt General Help and Support
Thanks Björn, this code has been very helpful to me I only have one slight problem with it. I am displaying the status on a label. Somehow the modified text is put *on top* of the old one, after a few seconds of updates you can't really read the seconds. Instead of the ProgressSet(...) in _Progress, i'm using GuiCtrlSetData($label, "Remaining " & Int($3 / 1000) & " seconds")) Any suggestions on what could be wrong here? Thanks! Edit: Well kind-of- solved it by deleting the label and re-creating it every time there's a new text. Not really optimal though -
Arrays, Ubound & Removing entries
Sypher replied to Sypher's topic in AutoIt General Help and Support
Seems like this one is working Damn, i didn't know it was so easy. Thanks! -
Sorry for the odd title. I'm running a for-loop with an array. This for loop checks for certain things and removes them if they match. Example: For $I = 0 To UBound($TestArray) If ($TestArray[$I][1] == "test) Then _ArrayDelete2D ($FoundShowArray, $I) Endif Next When the for-loop starts the array contains 9 entries. 1 / 9: success - not matched - not removed 2 / 9: success - matched - removed 3 / 8: success - matched - removed 4 / 7: success - matched - removed 5 / 6: success - matched - removed 6 / 5: failure: Array variable has incorrect number of subscripts or subscript dimension range exceeded. I've tried adding a "$items = Ubound($TestArray)" on top, and after the removal $items = $items - 1. This did not work like expected. I hope someone can help me out, what am i missing here? Thanks in advance!
-
Yes! This is the type of thing i want badly for a while now My C knowledge is not that good to convert it to AutoIT, but i really hope someone else can help us out!
-
Jay! I've got it figured out The way i've stated before is now working great.
-
So, i ended up with something like this: Func CrossMatch() Dim $myshow = "" Dim $myscore = 0 For $shID = 0 To UBound($AvailableShowArray) - 1 $showname_tvNZB = $AvailableShowArray[$shID][0] $showlink_tvNZB = $AvailableShowArray[$shID][1] $showscore_tvNZB = $AvailableShowArray[$shID][2] For $myepID = 0 To UBound($SearchArray) - 1 If StringInStr($showname_tvNZB, $SearchArray[$myepID], 0) Then ConsoleWrite("--> Adding " & $showname_tvNZB & " to the found list!" & @LF) If ($myshow == $SearchArray[$myepID]) Then MsgBox(0, "DUPE", "Duplicate: " & $SearchArray[$myepID] & " - SCORE " & $showscore_tvNZB & "(" & $myscore & ")") If ($myscore > $showscore_tvNZB) Then MsgBox(0, "DUPE 2", "Dupe with higher score: " & $SearchArray[$myepID]) EndIf $myscore = $showscore_tvNZB EndIf $myshow = $SearchArray[$myepID] _ArrayInsert2D ($FoundShowArray, _ArrayCreate($SearchArray[$myepID], $showname_tvNZB, $showlink_tvNZB, $showscore_tvNZB), 0) __ArraySort ($FoundShowArray) EndIf Next Next EndFuncoÝ÷ ØZºÚ"µÍY ÌÍÛ^ÚÝÈOH ÌÍÔÙXÚ^VÉÌÍÛ^YQJH[ you can see my attempt into checking if the previous one was like the current one, and after that the score should be checked. I hope this helps.
-
Well, as i stated before. I am using 1 search array, 1 content array and 1 resultarray. In the last one, the one with the results, there are multiple results of shows found in the 2nd array. I already have created a function that gives each entry (based on the title of the file) a certain amount of points. An example: Show: Heroes.S02E01.HDTV.XviD-XOR Link: ..... Score: 6 Show: Heroes.S02E01.720p.HDTV.x264-CTU Link: ..... Score: 11 There are multiple results of the search for "Heroes.S02E01", and i only want to keep the ones (in the ResultArray) with the highest score. I did see, and try, the scripts provided in the link you gave, but i can't seem to get it to work. So what i could do is: - Count how many times "Heroes.S02E01" occurs in the $ResultArray. This could be done with a for-loop in the $SearchArray (the array which contains the words i'm looking for) - Find the highest score - Get rid of the other ones or save the highest ones in a new Array. I really could use some help with this
-
Yes, me again with the arrays. They are really giving me headache's In short: I am using three arrays: Search array (what to search for in the Available array)Available array (searchable, with StringInStr.. This one saves to the ResultArray)Result Array (result of the Search Array on the Available Array)So far so good, the search is going as planned (finally). The Search Array contains (1) entry per search. The Available one contains multiple similar entries. For example. I search for "Heroes.S02E01", the Available one contains: "Heroes.S02E01.HDTV.XviD-XOR", "Heroes.S02E01.720p.HDTV.x264-CTU". So the resultarray contains both. In order to make it easier to sort (720p over HR, HR over HDTV etc) i've added weights to it. This is working fine, and is stored in both the Available array as in the Result Array. Still with me? Great! So, the array contains multiple "same" search results, but with other scoring (which is stored in the 4th element ([3]) of the Result & Available array). What i need to do is: Find Duplicate names ([0])Find the highest scoring of all of them ([3])Remove the lowest ranking one from the listI've tried a darn lot, used all the possible Dupecleaners i could find but that wasn't helping too much. I am using the Array2D UDF, if that might help. I really hope you guys can help me out, as this is the final thing i have to do to finalize my program. Thanks a lot!
-
Thanks, the array2D inserting seems to be working $tempArr = _ArrayCreate($line, $link, Overruler($line)) _ArrayInsert2D ($ar_Created2D, $tempArr, 0) So Thanks! Now i can finally use $array[$x][1] etc
-
[Forum] Unable to edit post fully
Sypher replied to Sypher's topic in AutoIt General Help and Support
Okay, sorry i wasn't aware of that.. -
[Forum] Unable to edit post fully
Sypher replied to Sypher's topic in AutoIt General Help and Support
Damn, even my original post before the -
Im very sorry if this is in the wrong category. I didn't know where i could put it otherwise. I made a post, with some -tags and 1 [img] tag in it. When i try to edit my post it ends up pretty much like: [quote][code]Dim $ResultArrayoÝ÷ Ù«¢+Ù}ÉÉå%¹ÍÉÐ ÀÌØíIÍÕ±ÑÉÉä°À°}ÉÉå ÉÑ ÀÌØí±¥¹°ÀÌØí±¥¹¬°=ÙÉÉÕ±È ÀÌØí±¥¹¤¤¤
-
Hi Folks, I am working on a little tool that automates some of the tasks i normally have to do by hand. The big problem is that i'm stuck at creating multidimensional arrays. Dim $ResultArrayoÝ÷ Ù«¢+Ù}ÉÉå%¹ÍÉÐ ÀÌØíIÍÕ±ÑÉÉä°À°}ÉÉå ÉÑ ÀÌØí±¥¹°ÀÌØí±¥¹¬°=ÙÉÉÕ±È ÀÌØí±¥¹¤¤¤The results of that is the following (made with _ArrayDisplayTree) It just crashes... I've tried lots of various code, but this is just pretty annoying The Array is created from within a for-loop that reads the RSS feed, and the data i like are being put in the array. The thing i am trying to do - but well, without $ResultArray[1][0] i can't do much - is to cross-match the array content with another array, and dump all the non-matching ones (think: watchlist). Anyhow, can anyone please point me in the good direction? Thanks!
-
Same here
-
How to handle a HTTP Request with gzip, deflate headers
Sypher replied to mary's topic in AutoIt General Help and Support
Hmm i can't get it to work It crashes and gives an error at: -
_GUICtrlListViewInsertItem & Icons
Sypher replied to Sypher's topic in AutoIt General Help and Support
Thanks for the reply. I did look at A3L but there was no real mention of icons in listviews. I did try "-1" instead of $listview, but when i did that no icon appeared. -
_GUICtrlListViewInsertItem & Icons
Sypher replied to Sypher's topic in AutoIt General Help and Support
*Sigh* I take this isn't possible? -
_GUICtrlListViewInsertItem & Icons
Sypher replied to Sypher's topic in AutoIt General Help and Support
*Bump*.. Can this topic be moved to a better subforum? -
Hiya, I've searched for a while, tested lots of things but i couldn't get it to work so here it goes. I am using _GUICtrlListViewSetItemText and _GUICtrlListViewInsertItem to fill my listview. The reason i am doing this is for customization: people can change the column order and width, so i'm kinda stuck to those two. Now i want to add icons in front of the entries, in column 0. I tried GUICtrlSetImage($ListView, @ScriptDir & "\icons\" & $Icon, 0)oÝ÷ Ù8Z· +Æîµ«,¢Ú²&u©è¶«¢w¢µÈZ¬²íè¢{"Ø^+-¾'°¶azÞ±ëméZµë-êÞÆ¬*izÚ¶¡×ºÚ"µÍBBBBIÌÍÛ]Ñ[HHÑÕRPÝÝY]Ò[Ù][J ÌÍÓÝY]Ë ÌÍÜÜÚ][Û ÌÎNÉÌÎNÊBBBBBWÑÕRPÝÝY]ÔÙ]][U^ ÌÍÓÝY]Ë ÌÍÛ]Ñ[K ÌÍØÛÛ[[ÒXÛÛ ][ÝÉ][ÝÊBBBBBQÕRPÝÙ][XYÙJ ÌÍÓÝY]ËØÜ [È ][ÝÉÌLÚXÛÛÉÌLÉ][ÝÈ [È ÌÍÒXÛÛ BBBBBWÑÕRPÝÝY]ÔÙ]][U^ ÌÍÓÝY]Ë ÌÍÛ]Ñ[K ÌÍØÛÛ[[ÔÝ]K ÌÍÔÝ]JBBBBBWÑÕRPÝÝY]ÔÙ]][U^ ÌÍÓÝY]Ë ÌÍÛ]Ñ[K ÌÍØÛÛ[[ÕÛÜÜË ÌÍÕÛÜÜÊBBBBBWÑÕRPÝÝY]ÔÙ]][U^ ÌÍÓÝY]Ë ÌÍÛ]Ñ[K ÌÍØÛÛ[[ÕÝY ÌÍÕÝY I tried the GUiCtrlSetImage on $newEntry but that doesn't work. I also tried the _GuiCtrlSetImage function i found floating around. I hope someone can help me out with this, as i have a hunch this can be solved quite quickly, and that i am overlooking something. Thanks in advance!
-
Impressive. Can you add an icon in front of the listview-item (this is possible) with a Green (available, not secured), Gray (unavailable, unsecured), Green+padlock (secured + available), gray+padlock (secured + unavailable) just like Netstumbler has? Also, some graphs would be sweet. You could clone the whole Netstumbler interface, with the treeview etc. I would definably use it, as the Netstumbler crew doesn't find Vista important enough to issue an update for it
-
Thanks, that one works.
-
What program are you referring to?
-
WinXP (doesn't matter), latest AutoIT (both beta & stable)..
-
I'm trying to use UDF version 1.2.0.19. But somehow all the code posted in this thread ends up being invalid... Is that correct? Should that happen?
-
Hmm that's a thought... I hope there are some AutoIT functions/UDF's for it, as that would be a neater solution then using ini files...