Skip to content

Commit

Permalink
fixed desktop icon test 👍
Browse files Browse the repository at this point in the history
  • Loading branch information
ewerybody committed Apr 11, 2017
1 parent 02007b1 commit c59d689
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions SessionRestore/srtest.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,23 @@
;rearrange_session_restore()


;icons := new _DesktopIcons
;MsgBox % icons.list_all()
;icons._test_iconmove()
icons := new _DesktopIcons
MsgBox % icons.list_all()
icons._test_iconmove()

;rearrange_list := []
;rearrange_restore_all_windows := false
;rearrange_list.push(new _rearrange_procwin("notepad++.exe", "", "", 1563, -6, 1605, 1457))
;rearrange_list.push(new _rearrange_procwin("KeePass.exe", "", "", 0, 0, 0, 0, true))
;rearrange_session_restore()
;ExitApp
win_list := get_window_list(false)
i := win_list.maxindex()
MsgBox windows found: : %i%
ExitApp

txt := ""

this.proc_name := proc_name
this.title := win_title
this.class := win_class
this.x := x
this.y := y
this.w := w
this.h := h
this.id := id
this.index := index

loop, % win_list.maxindex()
{
win := win_list[A_Index]
txt := txt win.index " " win.proc_name " " win.title " " win.class " " win.x " " win.y " " win.w " " win.h " " win.id "`n"
}
Clipboard := txt


Return ;-----------------------------------
#include rearrange.ahk
;#include sessionrestore.ahk

#include ..\..\..\
#include lib\ahklib\functions.ahk
Expand Down

0 comments on commit c59d689

Please sign in to comment.