AutoHotkey Community

It is currently May 26th, 2012, 3:18 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 292 posts ]  Go to page Previous  1 ... 11, 12, 13, 14, 15, 16, 17 ... 20  Next

Would you like to see this script rewritten and easy to understand ?
No, I dont care, i just use the executable
Yes, as this script is popular some may learn from it
You may select 1 option

View results
Author Message
 Post subject:
PostPosted: October 29th, 2007, 7:50 am 
Offline

Joined: October 27th, 2007, 8:30 am
Posts: 21
Location: Hawaii
Nice I Like It Its Awesome i love it i use it alot :lol: :lol: :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 29th, 2007, 7:57 am 
Offline

Joined: October 27th, 2007, 8:30 am
Posts: 21
Location: Hawaii
Woah ok srry im double posting but i just ran in to a glitch !!! :shock: :shock: i was on the internet and posted my last post (Above) and pressed the middle mouse button then it appeared but i couldnt move my mouse then it went up and down REALLY FAST like when you put an autoclicker on a program box in the bottom bar thing ( i just realized i dont know its name lol :lol: :roll: ) then it went away and i couldnt use it but the tray icon was there i went to rightclick on it and when my mouse went over it, it dissapeared soory if i miss spell some stuff :lol:

Does any1 think it could have to do with that im on a lap :?: :?:


Report this post
Top
 Profile  
Reply with quote  
 Post subject: real expose clone
PostPosted: February 22nd, 2008, 12:54 pm 
Offline

Joined: February 19th, 2008, 6:59 am
Posts: 2
Location: India
FANTABULOUS

i haven't worked with Mac or Linux. so this was my first experience with this feature... I am amazed.

I noticed some issues and i noticed those have been talked about in the thread... so nothing for me to add...

good work.

_________________
Cheers
Sajith


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2008, 4:49 pm 
Offline

Joined: February 25th, 2008, 4:13 pm
Posts: 37
Would there be a way to use this for MDI windows? Even if it only worked for MDI windows?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2008, 11:15 pm 
Offline

Joined: March 11th, 2006, 12:44 pm
Posts: 341
Location: Munich, Germany
airjrdn wrote:
Would there be a way to use this for MDI windows? Even if it only worked for MDI windows?


i am not sure if it works. the technique is to grab all windows which are visible and then display them in expose-view.

when mdi-windows are childwindows, it could only work if you can cycle through these subwindows. i dont know if ahk supports this.

which application do you have in mind to use it with ? the original expose on a real mac, also has the feature to only expose windows of one application (F10) which we did not implement here. (which could be done quite easy by filtering by window-title which normally contains the application-name) (eg. if you have several notepads open...)

if you want to use this with a browser, there are better ways with tabbed browsing or plugins.

if you talk about a multi-document-interface (like tabs in an code-editor) one could "tab through" the documents and capture each state as a new window.

if you want to use this with excel, you would need to open excel several times to get separate documents and not a combined window...

greetings
Daniel


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2008, 11:27 pm 
Offline

Joined: February 25th, 2008, 4:13 pm
Posts: 37
I'm wanting to use it in SQL Management Studio (I'm using MDI, not tabs, it supports both). It's not unheard of for me to have 10 or more query windows open, and this would be awesome within that tool.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 15th, 2008, 11:39 pm 
Offline

Joined: March 11th, 2006, 12:44 pm
Posts: 341
Location: Munich, Germany
airjrdn wrote:
I'm wanting to use it in SQL Management Studio (I'm using MDI, not tabs, it supports both). It's not unheard of for me to have 10 or more query windows open, and this would be awesome within that tool.


i need to test it with mdi programms, does it only show up as one single window, or do you want to filter out your "other" windows, so you only see the windows of sql-m-studio ?

the list of windows is generated here

Code:
Window_Info:
   WinGet ids, list,,,Program Manager      ; all active windows-tasks (processes)
   task_info =
   num_win = 0
   Loop %ids% {
      task_id := ids%A_Index%              ; id of this window
      WinGetClass class, ahk_id %task_id%
      WinGetTitle title, ahk_id %task_id%
      WinGetPos,,, w, h, ahk_id %task_id%


>> WinGet ids, list,,,Program Manager

reads all active "Programs" (which are listet in task-manager) perhaps somebody has an idea to read the MDI-Windows also...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2008, 2:10 am 
Offline

Joined: February 25th, 2008, 4:13 pm
Posts: 37
I'll try it out first thing tomorrow morning.

Filtering to just the child windows within the active MDI window would be great.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2008, 3:25 pm 
Offline

Joined: February 25th, 2008, 4:13 pm
Posts: 37
I tried changing this line:
Code:
WinGet ids, list,,,Program Manager      ; all active windows-tasks (processes)

to

Code:
WinGet ids, list,,,Microsoft SQL      ; all active windows-tasks (processes)


but it still thumbnails all normal windows, and makes them flash, along with the taskbar acting flaky. I tried both "Microsoft SQL Server Management Studio", and "Microsoft SQL" as indicated above, and the result was the same.
[/code]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2008, 9:49 pm 
Offline

Joined: March 11th, 2006, 12:44 pm
Posts: 341
Location: Munich, Germany
airjrdn wrote:
I tried changing this line:
Code:
WinGet ids, list,,,Program Manager      ; all active windows-tasks (processes)

to

Code:
WinGet ids, list,,,Microsoft SQL      ; all active windows-tasks (processes)


but it still thumbnails all normal windows, and makes them flash, along with the taskbar acting flaky. I tried both "Microsoft SQL Server Management Studio", and "Microsoft SQL" as indicated above, and the result was the same.


Hi i dont have this program, so i cant test it. One question would help me to help you.

Do you have each MDI-Window in expose already, and only want to get rid of the "others" ? That would be quite easy by filtering the list by class and title
Code:
      WinGetClass class, ahk_id %task_id%
      WinGetTitle title, ahk_id %task_id%
if %class% = xy ...


or do you only have a window where the "active" mdi-window is shown.
as i understand it, mdi-windows are normal windows, but they are bound to an application. Do your 10 SQL-Windows show up as one item in taskbar or as 10 items ?

you should analyze your windows with "autoit3 window spy" which you can find in your start-menu under autohotkey, if you have ahk installed.
or try this one:
http://www.autohotkey.com/forum/topic3351.html


the intesting part is:

Code:
>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
Eigene Dateien
ahk_class CabinetWClass


which tells you title and class of your window.
this can then be used to filter you opened windows.


Last edited by holomind on April 16th, 2008, 10:11 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject: Blank window..
PostPosted: April 16th, 2008, 9:51 pm 
Offline

Joined: March 19th, 2008, 9:50 pm
Posts: 116
Location: Euclid, Ohio
I just started messing around with this program...

GREAT JOB!!

The only thing is would it be possible to make the refresh adjustable? To save on CPU load.

When trying to minimize a game like Saga online I only get a black window. Is there anyway to make that work as well?

I am new to this, but would be willing to make the changes and see if they work if anyone can suggest anything.

_________________
StreetRider
Euclid. Ohio

"New and Loving it!"


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Blank window..
PostPosted: April 16th, 2008, 10:17 pm 
Offline

Joined: March 11th, 2006, 12:44 pm
Posts: 341
Location: Munich, Germany
StreetRider wrote:
I just started messing around with this program...

GREAT JOB!!

The only thing is would it be possible to make the refresh adjustable? To save on CPU load.

When trying to minimize a game like Saga online I only get a black window. Is there anyway to make that work as well?

I am new to this, but would be willing to make the changes and see if they work if anyone can suggest anything.


hi it is alredy adjustable in the config-section:
Code:
time_gap             = 50   ; ms, time left for others after each thumbnail draw
  thumb_border          = 1   ; 1 for gap between thumbnail  s
  animate_in_delay     = 5
  animate_in_steps       = 5
  animate_out_delay    = 5
  animate_out_steps    = 5
  show_taskbar          = 1
  ;fade_in_steps       = 5
  ;fade_in_delay       = 5
  ;fade_out_steps      = 5
  ;fade_out_delay      = 50
  quality_low          = 3 ; allowed: 1 (terrible) , 3 (accepatable) 4 (good = slow)
  quality_high         = 4 ; allowed: 1 (terrible) , 3 (accepatable) 4 (good = slow)
  BackGroundColor      = 004E98


just increase the timegap and it will refresh less often. there are several versions of the script (also look into the wiki) some with refresh others only paint once. i guess there is also one which buffers old windows so the show up faster next time...

the saga programm very proably uses directx or java and therefore will be black, as the "printwindow" function cannot grab the output of hardware-overlay windows. (you could disable hardware-accelearation in your saga-game, but i guess you dont want this, as it would be very slow..)

from minimum requirements of saga:
Code:
MINIMUM SYSTEM REQUIREMENTS:
OS: Windows XP
CPU: 1.6 GHz
RAM: 512 Mb (1-player), 1 Gb (multiplayer)
VIDEO: 128 Mb, pixel-shader 2.0 (or will not render trees and grass), must support OpenGL 1.4
Disk Space: 1.5 Gb
DirectX: 9.0c
Broadband internet connection required


DirectX is your problem, its hardware accellerated....


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2008, 10:56 pm 
Offline

Joined: February 25th, 2008, 4:13 pm
Posts: 37
holomind wrote:
airjrdn wrote:
I tried changing this line:
Code:
WinGet ids, list,,,Program Manager      ; all active windows-tasks (processes)

to

Code:
WinGet ids, list,,,Microsoft SQL      ; all active windows-tasks (processes)


but it still thumbnails all normal windows, and makes them flash, along with the taskbar acting flaky. I tried both "Microsoft SQL Server Management Studio", and "Microsoft SQL" as indicated above, and the result was the same.


Hi i dont have this program, so i cant test it. One question would help me to help you.

Do you have each MDI-Window in expose already, and only want to get rid of the "others" ? That would be quite easy by filtering the list by class and title
Code:
      WinGetClass class, ahk_id %task_id%
      WinGetTitle title, ahk_id %task_id%
if %class% = xy ...


or do you only have a window where the "active" mdi-window is shown.
as i understand it, mdi-windows are normal windows, but they are bound to an application. Do your 10 SQL-Windows show up as one item in taskbar or as 10 items ?

you should analyze your windows with "autoit3 window spy" which you can find in your start-menu under autohotkey, if you have ahk installed.
or try this one:
http://www.autohotkey.com/forum/topic3351.html


the intesting part is:

Code:
>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
Eigene Dateien
ahk_class CabinetWClass


which tells you title and class of your window.
this can then be used to filter you opened windows.


here's everything from Spy when mousing over SQL:
Code:
>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
Microsoft SQL Server Management Studio
ahk_class wndclass_desked_gsk

>>>>>>>>>>>>( Mouse Position )<<<<<<<<<<<<<
On Screen:   1278, 526  (less often used)
In Active Window:   1282, 530

>>>>>>>>>( Now Under Mouse Cursor )<<<<<<<<
ClassNN:   WindowsForms10.Window.8.app.0.378734a9
Text:   
Color:   0xEFF4F5  (Blue=EF Green=F4 Red=F5)

>>>>>>>>>>( Active Window Position )<<<<<<<<<<
left: -4     top: -4     width: 1448     height: 878

>>>>>>>>>>>( Status Bar Text )<<<<<<<<<<
(1):
(2):
(3):
(4):
(5):

>>>>>>>>>>>( Visible Window Text )<<<<<<<<<<<
MsoDockTop
Menubar
SQL Editor
Standard
MsoDockTop
Unified Find
Fi&nd what:
>
&Look in:
   
Find &options
&o
Match &case
Match &whole word
Search &up
Search &hidden text
Us&e:
&Find Next
&Bookmark All
Properties
Property Browser
PropertyGrid
Description Pane
Current Status
Current query execution status.
PropertyGridView
PropertyGridToolBar
ssas1.ACERecon - Executing... - SQLQuery8.sql*
ssas1.ACERecon - Executing... - SQLQuery8.sql*
Results
shellTextViewControl1
ssas1.ACERecon - C:\cache\Temporary Internet Files\OLK45\Partition.sql
ssas1.ACERecon - C:\cache\Temporary Internet Files\OLK45\Partition.sql
shellTextViewControl1
Execution plan
Solution Explorer
MsoDockTop
Output Window
Object Explorer
MsoDockTop
SQL Server Object Explorer

>>>>>>>>>>>( Hidden Window Text )<<<<<<<<<<<
MsoDockLeft
MsoDockRight
Text Editor
MsoDockBottom
Find and Replace
MsoDockLeft
MsoDockRight
MsoDockBottom
Re&place with:
>
Syntax:
&Replace
Replace &All
Scan an internal table of constants.
Messages
Messages
+
+
+
Solution Explorer
Output
MsoDockLeft
MsoDockRight
MsoDockBottom
MsoDockLeft
MsoDockRight
MsoDockBottom

>>>>( TitleMatchMode=slow Visible Text )<<<<
Ready       Ln 3 Col 1 Ch 1       INS
reload
reload
@strout
Current Document
Regular expressions
Current query window options:

>>>>( TitleMatchMode=slow Hidden Text )<<<<
@strout


Only one window shows up in the taskbar, regardless of the number of mdi child windows open within management studio.

Expose only shows the main window, none of the children.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 17th, 2008, 12:17 am 
Offline

Joined: March 11th, 2006, 12:44 pm
Posts: 341
Location: Munich, Germany
Quote:
here's everything from Spy when mousing over SQL:
Code:
>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
Microsoft SQL Server Management Studio
ahk_class wndclass_desked_gsk
...
>>>>>>>>>( Now Under Mouse Cursor )<<<<<<<<
ClassNN:   WindowsForms10.Window.8.app.0.378734a9
Text:   
Color:   0xEFF4F5  (Blue=EF Green=F4 Red=F5)
...


Only one window shows up in the taskbar, regardless of the number of mdi child windows open within management studio.

Expose only shows the main window, none of the children.


ok, now i understand it a bit better, the simple solution to filter only the windows does not work.

at least we now have the correct window-title and ahk_class which is not too bad. which means you can filter by these values later.

perhaps it works to set "detecthiddenwindows, on" which should also list the "other" MDI windows. perhaps this is only a kind of desktop-manager where the all mdi-windows are hidden (but existent) and only the active one is shown.

printwindow (which is used by the expose script) only works with visible windows and not with minimized. but it works with windows which are offscreen.

perhaps this helps to find the next step..
http://www.autohotkey.com/forum/topic22616.html

this might be usefull, as it lists all active processes (which might include the mdi subwindows)
http://de.autohotkey.com/docs/commands/ ... htm#ListEx

manual for detecthiddenwindows:
http://www.autohotkey.com/docs/commands ... indows.htm

and winget with lists might also be helpful: (section "List" )
http://www.autohotkey.com/docs/commands/WinGet.htm

one idea would be to list "all" windows. then filter by class_id, then loop through these windows. by (remember current position) unminimize, move offscreen so its invisible, capture printwindow, move back to position and minimize again. (or similar where you can capture the windows and let them be invisible offscreen at the same time).

you should try
Code:
DetectHiddenWindows, On

at the begin of the script. perhaps then the hidden windows appear (at least as black windows.) perhaps you get "lots" of black windows this way...

good luck


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Display of Saga
PostPosted: April 17th, 2008, 1:30 am 
Offline

Joined: March 19th, 2008, 9:50 pm
Posts: 116
Location: Euclid, Ohio
Question?

Could the screen be captured as a image and then presented in your program?

Maybe with a command line utility.

_________________
StreetRider
Euclid. Ohio

"New and Loving it!"


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 292 posts ]  Go to page Previous  1 ... 11, 12, 13, 14, 15, 16, 17 ... 20  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher, oldbrother and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group