Jump to content

Touch

Active Members
  • Posts

    68
  • Joined

  • Last visited

Everything posted by Touch

  1. Hi, I'm currently running a function every 250 milliseconds using AdlibEnable. If something happens then a tooltip is shown. However, the problem may not always be fixed instantly, and so the tooltip will be shown again. Is there anyway to only show it IF it's not already showing? Thanks, Touch!
  2. I would like to know how Res Add Files works in Scite4AUtoIt3? I need to include a file in a program without FileInstall, is that possible? Touch
  3. WOW! That is amazing. I never thoguht about making something like this. You guys deserve a pat on the back
  4. Yo, How do I convert VB variables e.g 32514& into an AutoIt accepted number? I'm not sure if it's hex or what. Any help please?
  5. His didn't write anything. Not sure if he even finished it.
  6. JamesBrooks made something called InsideNI which displays INI files in a tree just like this.
  7. This is my attempt at converting this. Global $Struct = DllStructCreate("int Left;int Top;int Right;int Bottom") $Desktop = GetDesktopWindow() $hdcSrc = GetWindowDC($Desktop) $hdcDest = CreateCompatibleDC($hdcSrc) $hBitmap = CreateCompatibleBitmap($hdcSrc, GetDeviceCaps($hdcSrc, 8), GetDeviceCaps($hdcSrc, 10)) SelectObject($hdcDest, $hBitmap) BitBlt($hdcDest, 0, 0, GetDeviceCaps($hdcSrc, 8), GetDeviceCaps($hdcSrc, 10), $hdcSrc, 0, 0, 0x00CC0020) Func GetWindowRect($intPtr, $lpRect) DllStructSetData($Struct, "Left", $lpRect[0]) DllStructSetData($Struct, "Top", $lpRect[1]) DllStructSetData($Struct, "Right", $lpRect[2]) DllStructSetData($Struct, "Bottom", $lpRect[3]) Return DllCall("user32.dll", "int", "GetWindowRect", "hwnd", $intPtr, "ptr", DllStructGetPtr($Struct)) EndFunc Func GetDesktopWindow() Return DllCall("user32.dll", "int", "GetDesktopWindow") EndFunc Func GetWindowDC($hWnd) Return DllCall("user32.dll", "int", "GetWindowDC", "int", $hWnd) EndFunc Func ReleaseDC($hWnd, $hdc) Return DllCall("user32.dll", "int", "ReleaseDC", "int", $hWnd, "int", $hdc) EndFunc Func BitBlt($hdcDest, $nXDest, $nYDest, $nWidth, $nHeight, $hdcSrc, $nXSrc, $nYSrc, $dwRop) Return DllCall("gdi32.dll", "int", "BitBlt", "int", $hdcDest, "int", $nXDest, "int", $nYDest, "int", $nWidth, "int", $nHeight, _ "int", $hdcSrc, "int", $nXSrc, "int", $nYSrc, "int", $dwRop) EndFunc Func CreateCompatibleBitmap($hdc, $nWidth, $nHeight) Return DllCall("gdi32.dll", "int", "CreateCompatibleBitmap", "int", $hdc, "int", $nWidth, "int", $nHeight) EndFunc Func CreateCompatibleDC($hdc) Return DllCall("gdi32", "int", "CreateCompatibleDC", "int", $hdc) EndFunc Func DeleteDC($hdc) Return DllCall("gdi32", "int", "DeleteDC", "int", $hdc) EndFunc Func DeleteObject($hObject) Return DllCall("gdi32", "int", "DeleteObject", "int", $hObject) EndFunc Func GetDeviceCaps($hdc, $nIndex) Return DllCall("gdi32", "int", "GetDeviceCaps", "int", $hdc, "int", $nIndex) EndFunc Func SelectObject($hdc, $hdiobj) Return DllCall("gdi32", "int", "CreateCompatibleDC", "int", $hdc, "int", $hdiobj) EndFuncNot sure how it works though :blush: - no errors though
  8. That's what I need. I am replicating the Windows Vista Task bar hover thing. I can't keep looking through active windows.
  9. Ah right. Is there anyway without activating the window?
  10. This is weird. Basically this function should loop through every window on the taskbar and screenshot it: ; This function creates a screenshot of every visible window, stores it to a temp location and keeps it in an array Func ThumbScreen() Local $hWindows = WinList() ; Loop through each task bar control For $i = 0 To $hWindows[0][0] If _WinIsAppWindow($hWindows[$i][1]) Then $iRandTmp = StringRand() _ScreenCapture_CaptureWnd($sLocation & $iRandTmp & ".jpg", WinGetHandle($hWindows[$i][0])) $aThumb[$i][0] = $sLocation & $iRandTmp & ".jpg" EndIf Next EndFunc It just ends up taking pictures of random things.
  11. Thanks MrCreatoR!!
  12. How would I make this run through all items on the task bar?
  13. How can I tell if a window is visible and is shown on the task bar? Thanks!
  14. Gary has an ellipse and square code for this somewhere. Search
  15. For $i = 0 To UBound($farray, 1) - 1 $String = StringReplace($string, $farray[$i][0], $farray[$i][1]) Next Return $String Only returns 1 character from each array value.
  16. I have this so far: Func Convert($string, $farray) For $i = 0 To UBound($farray, 1) - 1 $OutString = StringReplace($string, $farray[$i][0], $farray[$i][1]) Next Return $OutString EndFunc ;==>Convert But it returns the same value?
  17. How do I go about expanding this so that it returns the final result?
  18. Hello! How do I go about replacing data in an array? Let's say I have: $Array[3][2] = [["o", "0"], ["100", "1"], ["two", "2"]] How do I make a function to replace the o, 100 and two with the normal, 0, 1 and 2? Touch
  19. Yeah! I know, I was just saying muttley Neat example James. I see you have also updated System Properties Wrapper with the GUI nice! 5 stars for both scripts!
  20. Wow this is amazing! My Dad thinks this is great! Did you people know you can use a different windows handle like Notepad? ACE!
  21. Thanks James but I need to be able to look through all files and folders, sort of like neoSearch.
  22. Hiya, For sometime now I have been trying to make a program to search through files/folders and display them in a listbox. Here is my GUI: #include <GUIConstants.au3> Global $Index = @ScriptDir & '\index.ini' ; Index file $GUI = GUICreate("GUI", 378, 249, -1, -1) GUICtrlCreateLabel("Query:", 8, 8, 35, 17) $Cast = GUICtrlCreateCombo("", 48, 8, 321, 25) $Files = GUICtrlCreateList("", 8, 40, 361, 201) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd But that's as far as I can get. From the AutoIt I understand I will need to, put all the files and folders in an array and then as the search query is typed, select the files/folders and list them. However I do not know how to go about it. I really would like to do this. Thanks, Touch.
  23. Hello, I was looking to see if it is possible to read a "snippet" of text from a website. I need to read a word from dictionary.com. You enter a word and it will search Dictionary.com if the page says "No results found" then it won't do anything. Possible? Touch
×
×
  • Create New...