Jump to content

XoloX

Members
  • Posts

    16
  • Joined

  • Last visited

Everything posted by XoloX

  1. I am trying to use the controlcommand function for GetLineCount and GetLine etc,but it isnt working....basically,i want to get the last line only..any ideas?
  2. I wanted to know if there was any way,program or via autoit ,using which i can modify simple GUI elements in a executable program,like window title,buttons' position,labels, etc...Pls Help...
  3. For the Recursive Search Function,Is there any way that you can edit the function to return only a boolean value,true if it finds *.exe and false if no files are found,because i have no use of the path or name....Please Help...ThnX
  4. I would like help on coding something that detects the insertion of a USB drive(accomplished) and if it finds any exe files,then immediately ejects it.My purpose here is to prevent the entry of viruses(ravmon.exe,sal.xls.exe etc).Please Help.Thnx
  5. I couldnt find any functions to rename files in the help file as well as Auto3Lib Program.Please Assist.
  6. There is another Way OuT!.....u can use vbscripts..........i have posted below a working example....... THE VBSCRIPT(Copy and paste in notepad and save as ejectdrive.vbs) ----------------------------START COPY------------------------------------------ Option Explicit On Error Resume Next CONST SSF_DRIVES = 17 Dim oShell, oNameSpace, oDrive, strDrive ' Set the Default Drive Letter strDrive = "i:\" strName="WritePROTecH" If Wscript.Arguments.Count > 0 Then strDrive = Wscript.Arguments.Unnamed.Item(0) End If Set oShell = CreateObject("Shell.Application") Set oNamespace = oShell.NameSpace(SSF_DRIVES) Set oDrive = oNamespace.ParseName(strDrive) oDrive.InvokeVerb "E&ject" ' Message can be displayed(optional) MsgBox strName & " drive ejected. You can now remove the device safely." -------------------------END COPY-------------------------------------------------------------- Then u have to make a script to install it in the c:\windows directory and run it using wscript.exe Eg: ;;USB EJECTION ;;Coded By XoloXx $windir=@WindowsDir FileInstall("ejectdrive.vbs",@WindowsDir & "\ejectdrive.vbs") Run("wscript.exe "& @WindowsDir & "\ejectdrive.vbs") Beep(1000,1000) Then simply run the au3!!
  7. Nothing that i see wrong....it gives me no errors when i complied it....i have the version v3.2.2.0 ......shouldnt give u a prblm in assigning variables atleast!
  8. How can we set the process status like manual disabled in autoit as we can through the "services.msc" app........i tried GUI automation but Windows Info just doesn't read the SystreeView as individual entries.....Any Suggestions please???
  9. I did try that,but then it pops a dialog saying it cant remove the drive... ....Even the 'Deveject' idea went into the trash because it couldnt eject the drive either..... ....So manual unplug is the only way out(i think).......
  10. ;USB WriteProTECH v1.0 ;Coded By XoloX ;Works Only for Xp Sp2 ;&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& ;Operating Instructions: ;1. Copy this to ur PenDrive along with an autorun.inf pointing to this, ;2.Then Put ur Drive Back in and run the app when the XP-Autorun dialog pops up ;3.When it tells u 2 remove the drive do so ;4.Insert the drive again ;5.It shld now b write protected! ;&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& #include <Misc.au3> Opt("TrayMenuMode",1) ; Default tray menu items (Script Paused/Exit) will not be shown. $exit= TrayCreateItem("Exit") TraySetState() While 1 $msg = TrayGetMsg() If $msg=$exit Then Exit EndIf Wend $dll = DllOpen("user32.dll") ;Check For Souvenir ,if there,then stay "Dormant" else rite proteCH and eject If not FileExists("c:\riteprotect.dat") Then _writeprotect() Else _Dormant() EndIf Func _writeprotect() RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies", "WriteProtect", "REG_DWORD", "00000001") FileInstall("riteprotect.dat","C:\riteprotect.dat");A souviner Sleep(100);Adjust As needed MsgBox(64, "Remove Your Device", "You can now safely unplug your USB Device", 5) Sleep(2000) EndFunc ;FUNC DORMANT:Waits for End Key Press and On getting the keystoke it Reverses Changes Func _Dormant() While 1 Sleep ( 250 ) If _IsPressed("23", $dll) Then RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies", "WriteProtect", "REG_DWORD", "0") FileDelete("C:\riteprotect.dat") ExitLoop EndIf WEnd DllClose($dll) EndFunc ;; plZ provide positive criticism!...
  11. Hey Guys...some help here..plz...?!...................if u could direct me to a similar thread,tht would also be great...........keeping my fingers crossed..........
  12. I am trying to make a game bot(more of a keyboard macro) for the game little fighter 2...The game involves key combinations for various moves,pressing which continuously in game gets tedious.... So, I am trying to make a bot tht will send the required key combo if a particular key is pressed..... like,if the key "g" is pressed,then a keycombo of enter+rctrl+shift is to be sent to the LF2 window....Which will cause the fighter to do some move ........i tght it wuld b easy.....but NOTHING works,i have tried all possiblities(send,hotkey etc) ............Please Help...........ThanX
  13. "Make"!!...is there any way to make it....using AutoIt?...tho thnx for the suggestion on Folder Lock..
  14. i want to make an app 2 rite protect the USB pendrive ......this is meant for those new transcends which dont have that "switch".....just need the logic...will handle the rest....ne ideas??...thnx in advance..
  15. I am trying to make a small GUI application that can send High and Low Signals to a circuit connected to The COM port which will swictch on/off electrical appliances.......What is the method or command for doing the same?....
×
×
  • Create New...