Jump to content

spuuunit

Active Members
  • Posts

    101
  • Joined

  • Last visited

Profile Information

  • Location
    Sweden
  • WWW
    http://spunit.tk

Recent Profile Visitors

441 profile views

spuuunit's Achievements

Adventurer

Adventurer (3/7)

0

Reputation

  1. Thanks for the code, didn't realize it would be this in depth. I'll look into it. 🙂
  2. I tried your script. If i have a file copied it outputs the path. But when I have the track copied from my music application (foobar2000) it outputs "0". Is it possible that foobar2000 copies an array of things? If that is possible...
  3. When I copy a track in my music application, both text and the file are copied. For example: if i paste in a text file this text is pasted "Slowdive - Alison", and if I paste in a folder the mp3 is pasted. I know that in C# you can use Clipboard.GetFileDropList() to get the path of the file. But how do I do this in Autoit? Get the path. I have tried these two, both result in text like "Slowdive - Alison" #include <Clipboard.au3> MsgBox(0, "", ClipGet()) MsgBox(0, "", _ClipBoard_GetData())
  4. Oh wait I think I got it now! Thank you for your help! 😄
  5. Oh thanks. It says sets the @error flag to non-zero if the window is not found. What does non-zero mean?
  6. This is my code: While 1 While WinActive("PicTor - ") AND NOT WinActive("PicTor - Microsoft Visual Studio") ; PicTor $pos = WinGetPos("[ACTIVE]") $size = WinGetClientSize("[ACTIVE]") If $pos[0] = 0 AND $pos[1] = 0 AND $size[0] = 1920 AND $size[1] = 1080 Then ; do something EndIf Sleep(10) WEnd Sleep(10) WEnd I get this error message sometimes when loosing focus off the "PicTor" window. When minimizing "PicTor" for example. I don't understand why... Why can't the script access $size[0]? I just declared it.
  7. Yeah. But since it's not displayed I don't know if it's possible. Would be cool if it could be done with Larsj's UI Automation stuff. Those can do loads of stuff, I mean if you really know what you're doing.
  8. Thanks LarsJ! It's a shame this only works in folders with details view, obviously. If you have the time to write something that can handle any folder view, I'd be very grateful. Anyway, thanks for the code and time you put in to this! Your work is amazing. 🙂
  9. Thanks! I'll be checking that out.
  10. I don't fully understand what you mean... Do you mean that when I sort in a folder, that info is stored somewhere I can access? In that case where? I'm not after how to get files or sort. I'm after detecting when a folder changes sort order, and what sort is applied. Sorry if I wasn't clear.
  11. I want to detect what sorting order is applied to a given path / active window. Alternatively get an array of the files in that sort order. I only know how to get the files in the regular way: $folder = "C:\Test" $files = _FileListToArray($folder, "*", 1) $msg = "" For $i = 1 To Ubound($files) - 1 $msg = $msg & $files[$i] & @CRLF Next MsgBox(0, "", $msg) For example: The path C:\Test is sorted after lowest file size first. How do I detect that?
  12. That could be the case. But I hope not. 🤔
  13. Install? It only contain a bunch of includes. I put them together with the Spy includes, but still the same error.
  14. I don't know why, but when I try and run UIASpy.au3 I get an erro r. The code says: #include "Includes\GuiIncludes\UIASpy_Gui.au3" But the path is right...
  15. Do you know how I can test with UIAutomation?
×
×
  • Create New...