Jump to content

janci

Members
  • Posts

    13
  • Joined

  • Last visited

janci's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. No, no.. it's not that I whant! @InetGetActive is only for downloads from autoit scripts If FileExists() .. it is not the solution, beacause the file exists before the download is complete!
  2. Hello.. I have a problem I whant to determine if the file is already downloaded or the download is in progress.. when I use Opera as download manager.. it saves the downloaded files into the selected directory but files that are downloading are in the same folder and they are locked(I can rename or move it).(ex. IE it does anotherway : it saves the file into the temp directory and after the download is finished, it moves the file in the selected folder) How can I(ouch,, not me, my program ofcourse :-) ) know if the file is alrerady downloaded? Thanks sorry for bad english
  3. Hello.. me again :-) In NokiaPCSuite(and others programs to manage phones), there is, in settings, option to set the program with will be mobile synchronised, how to "write" there my own program? (there is only MS Outlook as PIM's manager) Wich "protocol" use this kind of sync.? Thanks (sorry for bad english)
  4. IT EXISTS????
  5. I have clicked your link(about delphi programming) and I have found, that they use SPI_GETWORKAREA to find the edge of the screen.. so I googled for SPI_SETWORKAREA and I have found that the function SystemParametersInfoA (in uder32.dll)can set that... after it was EASY and...... thakns for help
  6. Thanks Martin.. I did it earlier than you have posted it... but thanks my script: #include <GUIConstants.au3> $Gui = GUICreate("pokus", 100) GUISetState() DockIt($Gui, "right") Do Until GUIGetMsg() = $GUI_EVENT_CLOSE UnDockIt($Gui) Func UnDockIt($gui) $SPI_SETWORKAREA = 47 $SPI_GETWORKAREA = 48 $DINewRect = DllStructCreate("long;long;long;long") DllStructSetData($DINewRect, 1,0) DllStructSetData($DINewRect, 2,0) DllStructSetData($DINewRect, 3,1024) DllStructSetData($DINewRect, 4,730) DllCall("user32.dll", "uint", "SystemParametersInfoA", "uint", $SPI_SETWORKAREA, "uint", 0, "ptr", DllStructGetPtr($DINewRect), "uint", 0) $var = WinList() For $i = 1 To $var[0][0] If $var[$i][0] <> "" And BitAND(WinGetState($var[$i][1]), 2 + 32 + 8) Then WinMove($var[$i][1], "", DllStructGetData($DINewRect, 1), DllStructGetData($DINewRect, 2), DllStructGetData($DINewRect, 3), DllStructGetData($DINewRect, 4)) EndIf Next EndFunc ;==>UnDockIt Func DockIt($DIguiHwnd, $DIpos) $SPI_SETWORKAREA = 47 $SPI_GETWORKAREA = 48 $DIOrigRect = DllStructCreate("long left;long right;long top;long bottom") DllCall("user32.dll", "uint", "SystemParametersInfoA", "uint", $SPI_GETWORKAREA, "uint", 0, "ptr", DllStructGetPtr($DIOrigRect), "uint", 0) If $DIpos = "right" Then $DIGuiPos = WinGetPos($DIguiHwnd) $DINewRect = DllStructCreate("long;long;long;long") DllStructSetData($DINewRect, 1, DllStructGetData($DIOrigRect, 1)) DllStructSetData($DINewRect, 2, DllStructGetData($DIOrigRect, 2)) DllStructSetData($DINewRect, 3, DllStructGetData($DIOrigRect, 3) - $DIGuiPos[2]) DllStructSetData($DINewRect, 4, DllStructGetData($DIOrigRect, 4)) ElseIf $DIpos = "left" Then $DIGuiPos = WinGetPos($DIguiHwnd) $DINewRect = DllStructCreate("long;long;long;long") DllStructSetData($DINewRect, 1, DllStructGetData($DIOrigRect, 1) - $DIGuiPos[2]) DllStructSetData($DINewRect, 2, DllStructGetData($DIOrigRect, 2)) DllStructSetData($DINewRect, 3, DllStructGetData($DIOrigRect, 3)) DllStructSetData($DINewRect, 4, DllStructGetData($DIOrigRect, 4)) Else Return False EndIf DllCall("user32.dll", "uint", "SystemParametersInfoA", "uint", $SPI_SETWORKAREA, "uint", 0, "ptr", DllStructGetPtr($DINewRect), "uint", 0) $var = WinList() For $i = 1 To $var[0][0] If $var[$i][0] <> "" And BitAND(WinGetState($var[$i][1]), 2 + 32 + 8) Then WinMove($var[$i][1], "", DllStructGetData($DIOrigRect, 1), DllStructGetData($DIOrigRect, 2), DllStructGetData($DIOrigRect, 3), DllStructGetData($DIOrigRect, 4)) EndIf Next If $DIpos = "right" Then WinMove($DIGuiPos, "", DllStructGetData($DINewRect, 3), DllStructGetData($DINewRect, 2), $DIGuiPos[2], DllStructGetData($DIOrigRect, 4) - DllStructGetData($DIOrigRect, 2)) ElseIf $DIpos = "left" Then WinMove($DIGuiPos, "", DllStructGetData($DINewRect, 3) - $DIGuiPos[2], DllStructGetData($DINewRect, 2), $DIGuiPos[2], DllStructGetData($DIOrigRect, 4) - DllStructGetData($DIOrigRect, 2)) EndIf EndFunc ;==>DockIt Thanks Everybody
  7. Heureca... We have to use DllCall on user32.dll with SPI_SETWORKAREA, 0, rect, 0 rect=pointer to rect structure
  8. No, it isn“t that what I whant ... :-( I whant to do this: I whant to dock my GUI like google's
  9. Thanks Yes, one way is to resize and move windows.. but what about icons(on desktop)?! I was looking for a function in user32.dll wich can do that.. but no result..
  10. I dont whant to dock ICQ, I whant dock my own GUI like ICQ. Yes I read what you did wrote
  11. It is not what I whant.. when I run your script, I cannot see icons,texts etc. on the left side(under GUI), but when I dock ICQ then icons will move left and windows will resize...
  12. Yes, I can do that.. but when I will only move the GUI there then it will cover/will be covered by other windows
  13. Hello.., How can I dock the GUI to one side of screen (like TaskBar)?? Plz help Thanks
×
×
  • Create New...