
CoderDunn
Active Members-
Posts
336 -
Joined
-
Last visited
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by CoderDunn
-
Alright. I added my progress bars to your modded version (I like the GUI better), changed split and join functions a bit ... now version 1.1 (see first post). Still working on my idea ... Hallman
-
Yes thats right u did say it was a dummy control ... I need to start reading the whole post xD I forgot to add the function for the cancel btn (oops). I was just going to put a GuiGetMsg() in the loop where it writes the file data. Having it in a separate script is kinda messy. There might be a better way of doing it. Warning: Trying to split a file into pieces less than 4095 bytes (4 KB) WILL NOT WORK since the script reads 4095 bytes every loop. I can change this of course if it's needed. I have a new idea for this script ... will be working on it. Hallman
-
Cool, makes my job easier since Iv'e been busy with school lately and havn't had much time to mess around with it (Only did a progress bar for file splitting). What I did: You might want to import the progress bar from mine since it has a progress bar for both the current file and the total % done. File_Splitter_1.0.au3 One more thing ... in your script the user can change the byte type (MB,KB,bytes) split but you havn't made the script able to calculate anything other than mega bytes. Also, bytes probably isn't needed since there is 1024 bytes in a single kilobyte! And even dial up goes 5 kilobytes a second (5120 bytes). Thats the reason I only chose MB because I figure your not going to be splitting many files into pieces smaller than one MB (Unless you still use something smaller than a floppy disc xD) Thanks for the help, Hallman
-
Thanks. I have thought about most of those but since this origionally was for personal use, I didn't want to spend the time making it to complicated. I think I will update it then if there is some interest in this.
-
File Splitter 1.1 I made this script to split large files so I could send them in email attachments. I know you can do this with a compressed archive like RAR but that takes away the fun of making your own The script is dependent on file names so dont rename files after splitting. All split files must be in the same directory to rejoin them together. Hallman 3/21/07 - Version 1.1 - Changed GUI to smashly's version since I liked it better, also smashly's file path selecter is better (more user friendly) and allows the user to select where to save the file(s) - Added Progress bars File_Splitter_1.1.au3
-
Thanks I'm gonna try to add more process functions ... anyone have any udfs?
-
Window Manager 2 is a program that allows you to "manage" all the open windows. It's "Window Script" utility allows you to easily generate a small script to automatically manage a window. All window scripts are external AutoIt scripts generated and managed by the main program. I origionally made this program because Norton Antivirus kept poping up asking me to renew my subscription, so I just used the window script utility to hide it whenever it poped up. I recently added the process list so it's lacking in functions. Right now it can only kill processes and if you right click a window in the window list and click find process, it will find it in the process list. Anyone know of some process udf's that can get more process info? I plan on adding the _ProcessGetPriority () udf but thats all I have. The menu bar hasn't been completed yet so the only menus that will do something is "File > Exit" and "? > About/Help" Window Manager 2 is almost totally recoded from version one which I never released. Hopefully it will be usefull to some of you. Screen Shots: Main GUI The Window Script Utility (Adding a condition) Program: Window_Manager_2.zip The main script is Window Manager 2.0.au3. The rest are just includes. Enjoy! Hallman
-
It would be nice not to have to create a background image to use scroll screen. That way the back ground could be 100% generated with sprites so we wouldn't have to make a new image for the level but rather a map file containing sprite #'s
-
The only way I can see that would work would be to restart the whole script. So in the ScriptStuck() function where it runs the Start() Function, replace it with a _restart() oÝ÷ Ø Ýi×m+-¢Ø^nm¢j¶¬r¸©µ«¢+Ø(í}ÉÍÑÉÐ ¤Ý¥±°ÉÍÑÉÐå½ÕÈÍÉ¥ÁиÕÑ¡½ÈèY±ÕÑÈ)Õ¹}ÉÍÑÉÐ ¤(% ½µÁ¥±ôÄQ¡¸(IÕ¸ ¥±ÑM¡½ÉÑ9µ¡MÉ¥ÁÑÕ±±AÑ ¤¤(±Í(IÕ¸ ¥±ÑM¡½ÉÑ9µ¡Õѽ%ÑᤵÀìÅÕ½ÐìÅÕ½ÐìµÀ쥱ÑM¡½ÉÑ9µ¡MÉ¥ÁÑÕ±±AÑ ¤¤(¹%(á¥Ð)¹Õ¹ Hallman
-
Well this is gonna be difficult. Hopfully you can come up with something based on my example. If it comes down to it, you can always have the script restart itself to solve the adlib problem. Well I gotta get off the internet. Dial up takes up phone line and my mom hates it
-
Here I fixed it for you It worked in the first example, because the was no loop to keep the fucntion running. So, Adlibs function ended. HotKeySet("{ENTER}", "HotkeyStart") ; Run the script when ENTER is pressed Global $Script_Start = 0 ;Variables Global $Paused, $pos, $Timestack ; If the Mouse is stuck, Restart the script While 1 If $Script_Start = 1 Then Start() WEnd Func HotkeyStart() If $Script_Start = 0 Then $Script_Start = 1 Else $Script_Start = 0 EndIf EndFunc ;==>HotkeyStart Func Start() TrayTip("Test", "Script Started ...", 3) MouseClick("left", 525, 270, 1, 3) Sleep(500) Main() EndFunc ;==>Start Func Main() MouseClick("left", 525, 215, 1, 3) $MainTimer = TimerInit() ; timer which waits for the 600 m/s mark. $Base_Mouse_Coordinates = MouseGetPos() ; get the origional coordinates While 1 ; Problem came from here $Current_Mouse = MouseGetPos() ; get new coordinates If $Base_Mouse_Coordinates[0] <> $Current_Mouse[0] And $Base_Mouse_Coordinates[1] <> $Current_Mouse[1] Then ; If mouse has moved, reset check $MainTimer = TimerInit() $Base_Mouse_Coordinates = MouseGetPos() EndIf If TimerDiff($MainTimer) > 6000 Then Return 0 ; If the mouse wasn't moved for 6 secs, end func Sleep(100) WEnd EndFunc ;==>Main Hallman EDIT: Code error. It's correct now
-
The problem is ... I think adlib wont run again until that last function it called is done running. It's set up like this: AdlibEnable() calls ... ---------------------------ScriptStuck(), it called ... ---------------------------------------------------------Start() which called ... ---------------------------------------------------------------------------------------Main() So ... Adlib wont call ScriptStuck again until the func Main() is done, which alows Start() to finish, which allows ScriptStuck() to finish, which at the end lets Adlib finish. So instead of using AdlibEnable, have the check in your Main() func loop with TimerInit() and TimerDiff()
-
I'm not even sure if this will work.. but I will try
CoderDunn replied to sandman's topic in AutoIt General Help and Support
I fixed it up a bit. This should work now. It now can turn on/off with a hotkey (Home) ; MyKO Basic Auto-Attack Script ; Please don't copy my ideas without my approval first... ; ; This script includes a simple GUI to start, and stop the macro. #include <GUIConstants.au3> GUICreate("MYKO AUTOATTACK 0.1", 220, 100) $StartEnable = GUICtrlCreateButton("Start", 10, 10, 100, 25) $StopEnable = GUICtrlCreateButton("Stop", 110, 10, 100, 25) GUICtrlSetState($StopEnable, $GUI_DISABLE) ; make the stop button disabled $Help = GUICtrlCreateButton("Help", 10, 50, 100, 25) $About = GUICtrlCreateButton("About", 110, 50, 100, 25) GUISetState(@SW_SHOW) $start = 0 ; create a variable which will identify if the macro is running or not. 1 = yes, 0 = no HotKeySet("{HOME}", "SwitchOnOff") ; set a hotkey (in this case the HOME key) to turn the macro on / off While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $StartEnable SwitchOnOff() ; call the switch function. This turns the macro on / off depending on what $start is. Case $msg = $StopEnable SwitchOnOff() Case $msg = $Help MsgBox(0, "Help", "To activate the macro, simply click the Start button or press the HOME key. To stop it, click the stop button or HOME key." & _ "If there is no response within the MYKO client, you may need to disable HackShield. I believe there is a " & _ "program at FG forums that can disable HackShield.. after beta testing I will finalize the steps for this." & _ "But for now, in version 0.1, you are on your own.") Case $msg = $About $AboutWin = GUICreate("About", 300, 100) GUICtrlCreateLabel("Created by [email protected]. This is not a finalized" & _ "version; I am not responsible for any bugs or problems but may be able to " & _ "give some limited support via email. (c) 2007 sandman.", 10, 10, 280, 80) GUISetState(@SW_SHOW, $AboutWin) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE GUIDelete($AboutWin) ; Delete the about GUI ExitLoop EndSelect WEnd EndSelect WEnd Func SwitchOnOff() If $start = 0 Then ; If the macro is off ... AdlibEnable("Attack", 200) ; enable it. This function calls "Attack" every 200 m/s GUICtrlSetState($StartEnable, $GUI_DISABLE) ; disable the start btn GUICtrlSetState($StopEnable, $GUI_ENABLE) ; enable the stop btn $start = 1 Else ; if the macro is on ... AdlibDisable() ; disable the autoit function that is calling the macro GUICtrlSetState($StartEnable, $GUI_ENABLE) ; enable the Start btn GUICtrlSetState($StopEnable, $GUI_DISABLE) ; Disable the stop btn $start = 0 EndIf EndFunc ;==>SwitchOnOff Func Attack() If WinActive("Knight OnLine Client") Then ; If "Knight OnLine Client" is the current active window then ... Send("z") Sleep(100) Send("r") Sleep(200) EndIf EndFunc ;==>Attack Hope it helps, Hallman -
I'm not even sure if this will work.. but I will try
CoderDunn replied to sandman's topic in AutoIt General Help and Support
Call ("Attacker") And Attacker() are the same thing. Is this a full screen game? -
look at http://www.autoitscript.com/forum/index.ph...7&hl=screen for screen shots. Why do u need to to check if there is no white on the screen? To do that, just call pixel search and look for white (0xFFFFFF). If it finds it, you know it's there or not. Hallman
-
Look in C:\Windows\Media for sounds. In win XP it's SoundPlay(@WindowsDir & "\media\Windows XP Error.wav",0) Hallman
-
if your worried about things being there after u delete ... just run disk cleanup, defragment your drives, and empty recycle bin
-
Helping with removing title bar and moving the GUI
CoderDunn replied to Immensee's topic in AutoIt General Help and Support
Create a GUI with the $WS_POPUP style, then create a label or pic control with the $GUI_WS_EX_PARENTDRAG Extra Style to be what you click and drag to move the GUI. -
Is it possible to tell if a sprite was clicked? It would also be cool if there are any bitmap read / write functions. Then we could make our own image editing software.
-
I second that. Just think of the kind of things we can make when this is done ....
-
Thanks jpam. Works like a charm for what I want. This project is moving quite fast. Before to long you will have all prospeed functions as UDF's. The joystick stuff might prove usefull. Thanks for this great addition to AutoIt.
-
Here are some things I think you should do: The functions need return values. This would be usefull for the sprite function so you have a handel to use with spritemove(). If the .dll call doesn't return it, then just put like Global Const $PS_CURRENT_SPRITE = 0 at the top and have the sprite function add one integer to it every time the function is ran so you can return it. If it's possible, it would be nice to be able to draw the picture, then later do an effect to it using it's handel instead of having to draw a new picture each time to do an effect. You need a window refresh function because if for example, you open another window while the example is running (so it covers the example), then go back to the example the background turns into the standard GUI background color. It would be nice to have a GUI handel parameter for the functions as well, in case there is more than one GUI. You need at least a little bit of an explanation for the functions other than it's name and parameters. Like what it specifically does. Hallman
-
man this is cool. Thanks Frank for prospeed! jpam I think you should add a function parameter for the handel to a previously opened prospeed dll. Then we wont have to modify the code if it's some where other than the working dir. Plus, it won't be openend and closed every function. Hallman
-
This is frickin' Awsome! I can't wait for you to release to UDF's (Works with all AutoIt vers). This will make games MUCH easier to make. Hopefully you will have some image read/write functions? Hallman
-
Script sometimes halts on "IF" statement
CoderDunn replied to willw_magic's topic in AutoIt General Help and Support
Test the code with TimerInit() and TimerDiff() Like: $Timer = TimerInit() If WinExists("MIS Database","Warning") Then MsgBox(0,"","It took " & Round(TimerDiff($Timer),0) & " miliseconds") Hallman