-
Posts
43 -
Joined
-
Last visited
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by ImOracle
-
port 1337 are you serious? xD
-
Please help! Converting batch file into AutoIT Script!
ImOracle replied to sabbas's topic in AutoIt General Help and Support
>go to your autoit installation dir >find AutoIt.chm thats how i learned it... -
well back in the days when you were watching porn and youre mom came into the room and you quickly tried closing the browser there wasnt a popup like "dude the video hasnt even finished, why are you closing me ;(" at least thats how i would look at it. and sorry if that example was a bit weird, harsh whatever.
-
it just didnt make sense to me (i didnt read the whole script aswell). he has trouble reading from an input control and you are offering your Outlook UDF xD
-
sorry didnt realize he was doing something with outlook
-
Found a little bug where you cant close the window while the text is being typed out. Fix: #include <GUIConstantsEx.au3> #include <GUIConstants.au3> GUICreate("Robco Terminal", 500, 400) $Terminal = GUICtrlCreateLabel("", 200, 30, 150, 30) GUISetState() Robco('Robco Industries Unified Operating System', $Terminal, 200) While 1 $Msg = GUIGetMsg() Switch $Msg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func Robco($string, $control, $time) AdlibRegister("IsClosedPressed", 50);use 50 else the function would be called to late and the GUI wouldn't close. Can be lowered even more but i don't know if the CPU would approve... $Temp = '' $Str = StringSplit($string, '') For $C = 1 To $Str[0] GUICtrlSetData($control, $Temp & $Str[$C]) $Temp &= $Str[$C] Sleep($time) Next AdlibUnRegister("IsClosedPressed") EndFunc Func IsClosedPressed() $iMsg=GUIGetMsg() If $iMsg = $GUI_EVENT_CLOSE Then Exit EndIf EndFunc hope i could help
-
wat
-
just use InputBox()
-
Notification when Download is finished
ImOracle replied to ImOracle's topic in AutoIt General Help and Support
only problem is it doesnt work on my moms pc... but that shouldnt be too much of a problem... i guess i could close the thread or whatever this is actually my first time posting a thread -
Notification when Download is finished
ImOracle replied to ImOracle's topic in AutoIt General Help and Support
UPDATE: finally got it. Minor tweaks did it for some reason i dont know wether the .tmp file created is actually the file im looking for but somewhen a file (<filename>.mp3.crdownload) is created and when the file has finished downloading its renamed to the actual <filename>.mp3 (the one im looking for) for some reason the msgbox pops up twice but thats no big deal #include <FileSystemMonitor.au3> _FileSysMonSetup(3, "C:\Users\"&@UserName&"\Downloads", "") While 1 Sleep(250) ToolTip("waiting");just a little tooltip to see if we're still in the while-loop _FileSysMonDirEventHandler() WEnd Func _FileSysMonActionEvent($event_type, $event_id, $event_value) If $event_type = 0 Then ;If $event_id=0x00000005 Then If StringInStr($event_value, ".mp3") > 0 And StringInStr($event_value, "crdownload") = 0 Then MsgBox(0, "Success", "mp3 file ("&$event_value&") added to downloads") EndIf ;EndIf EndIf EndFunc -
Notification when Download is finished
ImOracle replied to ImOracle's topic in AutoIt General Help and Support
Might actually be the case... Im tired now, on my end of the world its about 11 pm and i have been looking at code the whole day. Im gonna bring up a new Edit tomorrow -
Notification when Download is finished
ImOracle replied to ImOracle's topic in AutoIt General Help and Support
Okay i have kind of threw together a prototype that will just pop up a msgbox when a file has been added to C:Users@UserNameDownloads and a msgbox when the file is a *.mp3 file. the last part with the mp3 doesnt quite work because the file that the UDF returns, is a .tmp file with a random name. #include <FileSystemMonitor.au3> _FileSysMonSetup(3, "C:\Users\"&@UserName&"\Downloads", "") While 1 Sleep(250) ToolTip("waiting");just a little tooltip to see if we're still in the while-loop _FileSysMonDirEventHandler() WEnd Func _FileSysMonActionEvent($event_type, $event_id, $event_value) If $event_type = 0 Then If $event_id=0x00000001 Then MsgBox(0, 0, $event_value);more or less a debugging msgbox to get the file that had been located If StringInStr($event_value, ".mp3") > 0 Then MsgBox(0, 0, "mp3 file added to downloads") EndIf EndIf EndIf EndFunc it doesnt seems to care about the .mp3 file at all. I will keep searching and maybe i will find a solution myself as i said above, thanks again EDIT: okay i have read through the whole thread you provided and found your modded version of the UDF i wanted to test it but failed because of my limited knowledge about COM... those values seem like they could help me but i have no idea how to use them... maybe there is actually no way to determine if the file downloaded is an mp3 but i could manually delete every mp3 file in the download folder (i dont think she will download music that she doesnt want on her mp3 player) and whenever a file has been added to the download folder i could search the whole folder for a mp3 file. if there is one copy it over to the usb, and delete the mp3 in the downloads folder. if the usb isnt connected wait until it has, copy all mp3s over and delete them on the pc. maybe i will do that... Or i might have to show her how to find the files in browser. but that would be more complicated than reprogramming the whole OS just for the sake of that function xD didnt know that this could be so complicated. thanks anyways -
Notification when Download is finished
ImOracle replied to ImOracle's topic in AutoIt General Help and Support
i think i understood it, mostly. whats the $event_type parameter for? or what does it mean? $event_id can contain certain hex values that define certain events that have happened to the drive (like file/folder added or folder removed) $event_value contains the name of the folder or file... yea i only need $event_type now... thanks in advance youre really helping me! -
Notification when Download is finished
ImOracle replied to ImOracle's topic in AutoIt General Help and Support
yea okay i dont get it. i dont know anything about COM objects neither do i understand the example he has provided in his thread... i know that at some point the _FileSysMonDirEventHandler() calls _FileSysMonActionEvent() but i dont know when and what to do with the parameters im quite new to autoit... as you can tell -
Notification when Download is finished
ImOracle replied to ImOracle's topic in AutoIt General Help and Support
I knew there was an UDF somewhere out there! thanks! quite weird with the _FileSysMonActionEvent function call but okay... -
Notification when Download is finished
ImOracle replied to ImOracle's topic in AutoIt General Help and Support
To form my question again (it was a bit late yesterday and i was in quite a hurry) I want my script to wait until a certain download is finished. thats all. But quite complicated nonetheless... -
So i have been making a little program that helps my mom with copying mp3 files onto her mp3-player-usb-stick-thingy. i already did the part with the copying onto the mp3-player but now i have to get the file that she downloaded. It seems to be pretty hard for her to find the file she just downloaded thats why i wanted to find it and automatically copy it over to the mp3-player. i've already thought about getting the amount of files in the download directory and then comparing it against the amount after the download and spotting the file like that but its very complicated and maybe there is some function in an UDF i dont know about that would help me with this problem. she is using firefox. thanks, Oracle