
buzz44
Active Members-
Posts
1,349 -
Joined
-
Last visited
Everything posted by buzz44
-
#include <String.au3> $Text = "Text" & @CRLF $Write = FileWrite ("C:\WINDOWS\Temp\text.txt", _StringRepeat($Text, 4))
-
D = F (File) so what does M = ?... C (Connect)?
-
Trim Down Array and return Ubound Problems
buzz44 replied to Knight's topic in AutoIt General Help and Support
Anytime . -
Trim Down Array and return Ubound Problems
buzz44 replied to Knight's topic in AutoIt General Help and Support
#include <Array.au3> $Array = _ArrayCreate("Fish", "Goose", "Chicken", "None", "None") $Trim2UBound = _TrimDownArray($Array) MsgBox(4100, "Array", $Trim2UBound) Func _TrimDownArray($ArrayToUse) Local $Temp For $I = 0 To UBound($ArrayToUse) - 1 If $ArrayToUse[$I] = "None" Then $Temp = $Temp & $I & "," EndIf Next $Split = StringSplit(StringTrimRight ($Temp, 1), ",") If $Split[0] = UBound($ArrayToUse) Then $ArrayToUse = 0 Else For $I = 1 To $Split[0] _ArrayDelete($ArrayToUse, $Split[$I]) Next EndIf Return UBound($ArrayToUse) EndFunc Fixed . When all the index's don't equal "None" it returns 4 because that is the UBound. When they all equal "None" it sets the array to 0 thus deleting it. -
Trim Down Array and return Ubound Problems
buzz44 replied to Knight's topic in AutoIt General Help and Support
Bah, I hate it when stuff doesn't work. I'll fix it in a bit . -
Trim Down Array and return Ubound Problems
buzz44 replied to Knight's topic in AutoIt General Help and Support
#include <Array.au3> $Array = _ArrayCreate("None", "None", "None", "None", "None") $Trim2UBound = _TrimDownArray($Array) MsgBox(4100, "Array", $Trim2UBound) Func _TrimDownArray($ArrayToUse) For $I = 0 To UBound($ArrayToUse) - 1 If $ArrayToUse[$I] <> "None" Then Do $Found = _ArraySearch($ArrayToUse, "None") If Not $Found = "" Then _ArrayDelete($ArrayToUse, $Found) Until $Found = "" Return UBound($ArrayToUse) EndIf Next EndFunc -
I take it the script is not yours? ie. You didn't build it from scratch and mostly just copied and cut other scripts to make it. I know this because if it was your own you would now how to use the functions correctly with there correct parameters. #include <GUIConstants.au3> GUICtrlCreateLabel ( "my label which will split on several lines", 10,20, 100, 100) GUICreate("My GUI" ,250,110 ,$WS_EX_WINDOWEDGE) GUICtrlCreatePic ("SGS.jpg", 0, 0, 250, 110) GUICtrlSetState (-1, $GUI_DISABLE) GUISetState (@SW_SHOW) GUICtrlCreateButton ("& $GameOneName", 10, 10, 100) GUICtrlCreateButton ("& $GameOneName", 10, 40, 100) GUICtrlCreateButton ("& $GameOneName", 10, 70, 100) GUICtrlCreateButton ("& $GameOneName", 10, 100, 100) WinSetTrans ( "My GUI", "", 200) ; Run the GUI until the dialog is closed While 1 $Msg = GUIGetMsg() If $Msg = $GUI_EVENT_CLOSE Then ExitLoop Wend You will find that if you bother to try something someone has suggested, such as reading the help file, people will respond more to your posts instead of ignoring them.
-
find replace untill string does not exist
buzz44 replied to caspermurphy's topic in AutoIt General Help and Support
+= aswell as -=, *=, /= and &= are the new operators included in the beta. They are used to simplify code such as $A = $A + 1 to just $A += 1, this also applies for multiplication, subtraction, division, and concatenation. -
Look here > http://www.autoitscript.com/forum/index.ph...topic=12449&hl=.
-
A single Larry . Though I have been absent from posting for a small time period I still try to keep up with the latest beta's and discussions. I revisisted the 'Scripts and Scraps' forum to see a new sticky, this one. I have read all 4 pages of it, every post, every word. I thought I might leave my own opinion. Jon has done the right thing by not replying to this sticky, except for creating it.I agree with Jdeb. It should have been locked, as he predicted, but its too late for that now.I remember when the keylogger's first starting appearing. Everyone seemed to have an input of new ways of doing it, speed etc etc. The keylogger fad seemed to die down but there were still the small occurances, and obviously, since my 'holiday', it seems to have resurfaced and stirred a fuss. I believe that the only people that have a problem with this probation, ie. aarondellis, are the people who lack the brain capacity and skills to build their own keyloggers in privacy and need to rely on the support of the AutoIt community to do it for them.This is directed at aarondellis. Did it ever occur to you that Jon has more common sense then to reply to a stupid post by you? What is this, "the question wasn't directed at you"? Perhaps if you let your brain do the typing, and not your fingers, you would realise that Jon is a busy man and often doesn't have time to respond to every post directed at him. When this is the case it is usually a developer (who contributes greatly, such as Valik) to answer if Jon is unavailable for comment. With that said, what Jon says goes. Jon's forum, Jon's rules. If you want to make your own keylogger, don't involve the AutoIt community or the AutoIt forums, or better yet, go join another forum where they tolerate this type of crap. Lastly, if your going to have a cry about banning keyloggers, cry somewhere else .
-
Help Setting up screenhooks for DiabloII
buzz44 replied to Sarc's topic in AutoIt General Help and Support
I use WPE Alpha. It tells you want packets are being sent/recieved. Using other languages (don't think it's possible with AutoIt yet) you can then send packets to Diablo and automate it. I remember seing a tutorial somewhere about how to open your inventory by sending the packet XX.XXXX.XX.50 or something similar. -
Minimizing Windows To SysTray (clock area)
buzz44 replied to Keene Coder's topic in AutoIt General Help and Support
Why can't you just have one script, one icon, one instance of AutoIt that controls all windows? Why can't they all minimize to the same AutoIt tray icon. -
Minimizing Windows To SysTray (clock area)
buzz44 replied to Keene Coder's topic in AutoIt General Help and Support
I thought you meant without external forces. You can't minimize your notepad window to the tray manually can you? -
Minimizing Windows To SysTray (clock area)
buzz44 replied to Keene Coder's topic in AutoIt General Help and Support
You can't minimize a notepad window to the tray, it doesn't have an icon... But I think for windows like NAV you just close the window and it minimizes. -
Minimizing Windows To SysTray (clock area)
buzz44 replied to Keene Coder's topic in AutoIt General Help and Support
WinSetState("Notepad window title", "", @SW_MINIMIZE) -
Look at Send() and MouseClick().
-
Webroot SpySweer detects Trojan horse in V3
buzz44 replied to a topic in AutoIt General Help and Support
What the . -
Thanks.
-
Func is equivilant to Goto isn't it?
-
Getting large amounts of text from a txt file
buzz44 replied to viper8907's topic in AutoIt General Help and Support
FileRead("filename.txt", FileGetSize("filename.txt")) should work, what version of AutoIt are you using, do you have a copy of the file to post? -
Thanks both for clearly up. I didn't bother to look at the code for _ArrayAdd() lol. I think now I have to go back over some old scripts and fix this, where speed is a comfort for the user.
-
Just wondering, why don't you like using _ArrayAdd() in a loop?
-
I was going to reply to this topic before Nova gave him the RegKey but I thought it might be just some loser, which it is, trying to install his 'virus', 'trojan' or something like that created in AutoIt on a victims computer, however lame his script might be.
-
_GUICtrlListViewSort - Bug or Feature?
buzz44 replied to HardCopy's topic in AutoIt General Help and Support
Keep in mind that as Gary pointed out, 4 2 10 5 Will sort to, 10 2 4 5 You can fix this by making sure that each number has the same character length. So for the above you could use, 04 02 10 05 And it will sort correctly, or alternatively you can just use white space if you want zero's. For this to work you will have to find out the largest string length in the column your sorting, then create a routine that will add more length (zero/white space or w/e) to the other items in the column, so they all have the same length. -
issues with WinGetPos function
buzz44 replied to v1rtu0s1ty's topic in AutoIt General Help and Support
Thanks for info about a minimized window's X and Y co-ordinates. And yes whenever I ran the the script D2 was always minimized, and when using the AutoIt Window Tool it stays on top of the D2 window and it doesn't get minimized. I came across this ironically trying to prevent accidently clicking outside the D2 window and minimizing it by creating a simple script using the MouseTrap() function that is floating around.