Jump to content

TicTaC

Active Members
  • Posts

    28
  • Joined

  • Last visited

TicTaC's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Windows\system32\mmsys.cpl
  2. $fSearch = FileFindFirstFile(@AppDataDir & "\Mozilla\Firefox\Profiles\*") $fprofile = @UserProfileDir & "\Local Settings\Application Data\Mozilla\Firefox\Profiles\" & FileFindNextFile($fSearch) $fCache = $fProfile & "\Cache" MsgBox(0, "", $fCache)
  3. Thanks for testing it Bert. I've performed a System Restore and re-installed v3.2.10.0 and it's working as expected. Good to know it wasn't an autoit problem but i fear it's a warning of bigger problems with my pc.
  4. #include <GUIConstants.au3> $Form = GUICreate("Form", 323, 170, -1, -1, -1, BitOR($WS_EX_ACCEPTFILES,$WS_EX_TOPMOST,$WS_EX_WINDOWEDGE)) $Input = GUICtrlCreateInput("", 8, 8, 305, 105, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_WANTRETURN)) GUICtrlSetState($Input, $GUI_DROPACCEPTED) $Button = GUICtrlCreateButton("Go", 255, 134, 56, 25, 0) $Icon = GUICtrlCreateIcon("shell32.dll", 12, 136, 120, 32, 32, BitOR($SS_NOTIFY,$WS_GROUP)) ;GUISetIcon("shell32.dll", 12, $Form); Displays icon correctly GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button _icon() EndSelect WEnd Func _icon() $name = GUICtrlRead($Input) GUICtrlSetImage($Icon, $name, 0) GUISetIcon($name, 0, $Form); Only displays icon if cursor over minimize/close buttons EndFunc Dragging an exe into $Input and clicking Go updates $Icon but not GUISetIcon unless the cursor is over the minimize or close buttons. Tested using Autoit v3.2.8.1 and it worked as expected. Is this a bug? Windows XP Autoit v3.2.10.0
  5. IniDelete(@UserProfileDir & "\Local Settings\Temporary Internet Files\desktop.ini", ".ShellClassInfo");====== unhides Content.IE5 directory $file = FileOpen(@UserProfileDir & "\Local Settings\Temporary Internet Files\desktop.ini", 1) FileWriteLine($file, "[.ShellClassInfo]") FileWriteLine($file, "") FileClose($file) IniDelete(@UserProfileDir & "\Local Settings\Temporary Internet Files\Content.IE5\desktop.ini", ".ShellClassInfo");====== unhides Content.IE5 sub directories $fileIE5 = FileOpen(@UserProfileDir & "\Local Settings\Temporary Internet Files\Content.IE5\desktop.ini", 1) FileWriteLine($file, "[.ShellClassInfo]") FileWriteLine($file, "") FileClose($file) RunWait(@ComSpec & " /c " & 'rmdir /s /q "%systemdrive%\Documents and Settings\%username%\Local Settings\Temporary Internet Files\Content.IE5\"', "", @SW_HIDE)
  6. $WS_EX_TOOLWINDOW E.g. $Form = GUICreate("Form", 633, 455, 193, -1, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE))
  7. Is this what you're looking for? #include <GUIConstants.au3> $Form = GUICreate("File AVI", 300, 382, 193, 115) GUICtrlCreateAvi("shell32.dll", 160, 10, 10, -1, -1, BitOr($ACS_TRANSPARENT, $ACS_AUTOPLAY)) GUICtrlCreateAvi("shell32.dll", 161, 10, 100, -1, -1, BitOr($ACS_TRANSPARENT, $ACS_AUTOPLAY)) GUICtrlCreateAvi("shell32.dll", 164, 10, 200, -1, -1, BitOr($ACS_TRANSPARENT, $ACS_AUTOPLAY)) GUICtrlCreateAvi("shell32.dll", 165, 10, 300, -1, -1, BitOr($ACS_TRANSPARENT, $ACS_AUTOPLAY)) GUISetState() While GuiGetMsg() <> $GUI_EVENT_CLOSE WEnd
  8. #include <GuiConstants.au3> GuiCreate("Hotspot", 200, 210) GuiCtrlCreateLabel("Click Picture", 15, 10, 60,17) GuiCtrlCreateLabel("Click the letter U or O", 15, 110, 110,17) $hotspot = GuiCtrlCreateLabel("", 15, 25, 169,68) ;Dummy label placed behind $pic GUICtrlSetCursor($hotspot, 0) ;Cursor for hotspot $pic = GuiCtrlCreatePic(@ProgramFilesDir & "\AutoIt3\Examples\GUI\logo4.gif",15,25, 169,68) $hotspot2 = GuiCtrlCreateLabel("", 100, 151, 20,25) ;Dummy label placed behind letter 'U' $pic2 GUICtrlSetCursor($hotspot2, 0) $hotspot3 = GuiCtrlCreateLabel("", 132, 151, 20,25) ;Dummy label placed behind letter 'O' $pic2 GUICtrlSetCursor($hotspot3, 0) $pic2 = GuiCtrlCreatePic(@ProgramFilesDir & "\AutoIt3\Examples\GUI\logo4.gif",15,125, 169,68) GuiSetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $hotspot MsgBox(64, "Hotspot", "You clicked the picture") Case $msg = $hotspot2 MsgBox(64, "Hotspot", "You clicked on the letter U") Case $msg = $hotspot3 MsgBox(64, "Hotspot", "You clicked on the letter O") EndSelect WEnd
  9. eadthem is right, ram defragging is pointless. Personally i use ClearMem by Microsoft (free tool) which forces pages out of physical memory after heavy pc usage. I've incorporated a run command into MemStat by AutoIt Smith More info on ClearMem & download here
  10. You can create and learn about dll’s in Visual Basic which is very similar to Autoit language. I used the tutorials here I found it a good place to start before moving onto the C languages. @Volly If you just want to store icons or images in a dll you can use Icon Sushi to create a icon library .icl file, (Free) and then use GConvert to convert that to dll, (around $20)
  11. th.meger has pretty much answered your question and posted the code. So, FileCopy("C:\WINDOWS\Patch\1.2\main\localized_english_iw11.iwd", $InstallPath & "\main", 1)
  12. Yeah, i did think of that but i'm trying to keep things simple for Erik and in most, if not all, cases the game is only going to be installed on one drive. I did think about scanning for all instances of the exe and letting the client choose where to install but as i said i'm keeping it simple
  13. $searchC = ("C:\Program Files\Activision\Call of Duty 2\CoD2MP_s.exe") $searchD = ("D:\Program Files\Activision\Call Of Duty 2\CoD2MP_s.exe") $searchE = ("E:\Program Files\Activision\Call Of Duty 2\CoD2MP_s.exe") If FileExists($searchC) Then $cod2 = ("C:\Program Files\Activision\Call Of Duty 2") EndIf If FileExists($searchD) Then $cod2 = ("D:\Program Files\Activision\Call Of Duty 2") EndIf If FileExists($searchE) Then $cod2 = ("E:\Program Files\Activision\Call Of Duty 2") EndIf FileCopy("C:\WINDOWS\Patch\1.2\CoD2MP_s.exe", $cod2, 1) FileCopy("C:\WINDOWS\Patch\1.2\main\localized_english_iw11.iwd", $cod2 & "\main", 1) I think that will work. Searches for the CoD2MP_s.exe on drives C, D & E if they exist and if found on E:\ for example, makes $cod2 = E:\Program Files\etc I'd like to know if there's an easier/shorter way of doing it.
  14. If the script/program is run from D:\ then @ProgramFilesDir points to D:\ or if you like, instead of using the macro @ProgramFilesDir you could make the variable $cod2 to = D:\Program Files\Activision etc
×
×
  • Create New...