sandin Posted March 17, 2009 Share Posted March 17, 2009 (edited) This script can be used to replace win's default alt+tab program, but the hotkey for this script is: ALT+` (the key above TAB)I still need your help on these issues:http://www.autoitscript.com/forum/index.ph...c=90979&hl= - to make the screen-shot window in real-timehttp://www.autoitscript.com/forum/index.ph...c=90764&hl= - doesn't detect alt-up allwaysScreen-Shot of this program hereEdit: fixed "_WinAPI_DestroyIcon: Cannot destroy object created by another thread." error.check here and help me decide which way for switching icons is the best out of those 2 and the one hereAlt_Tab.au3 Edited March 19, 2009 by sandin Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
Alek Posted March 17, 2009 Share Posted March 17, 2009 (edited) pretty good replacement. I had 1 problem, quick fix was to comment out _WinAPI_DestroyIcon($hIcon) in the _display_icon for it to work,error said "_Winapi_DestroyIcon: Cannot destroy object created by another thread." also would be cool if you could add blur background instead of a black one when on vista/7. Edit: Realtime update works great when aero is disabled, and if aero is enable there is a function for getting the window thumbnail. Edited March 18, 2009 by Alek [font="Impact"]Never fear, I is here.[/font] Link to comment Share on other sites More sharing options...
James Posted March 17, 2009 Share Posted March 17, 2009 (edited) That looks really good! Realtime update works fine on my dual core Sometimes I still get the original Alt+Tab window. Edited March 17, 2009 by JamesBrooks Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
youknowwho4eva Posted March 17, 2009 Share Posted March 17, 2009 Really awesome, Same issue as Alek though. As for your issues, I haven't gone through your code, and am probably no where near experianced enough to help but, is there a way to check to see if the image is blank, and if so than to repeat the print process? Giggity Link to comment Share on other sites More sharing options...
FireFox Posted March 17, 2009 Share Posted March 17, 2009 @sandin Prety nice ! Good job Keep it up Cheers, FireFox. Link to comment Share on other sites More sharing options...
WideBoyDixon Posted March 17, 2009 Share Posted March 17, 2009 I can't get this to work. The script just crashes when I press Alt+Tab: !>22:43:07 AutoIT3.exe ended.rc:-1073741819 Any ideas? WBD [center]Wide by name, Wide by nature and Wide by girth[u]Scripts[/u]{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}[u]UDFs[/u]{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~[/center] Link to comment Share on other sites More sharing options...
sandin Posted March 18, 2009 Author Share Posted March 18, 2009 @Alek: another thread? hum, maybe this could be fixed if I make $hIcon var as global, instead of local. And as for Vista, I'm not Vista's user, I still use WinXP SP3, I can't test any of those vista features. and tnx for feedback @JamesBrooks: Thank you And ya, HotKeySet("!{TAB}", "_nothing") should block win xp's default alt+tab, but if you are using other application or vista's alt+tab func: _KeyboardProc should block it, actually "Return -1" should block it's alt+tab, but before "return -1" there are lots of stuff, if those stuff aren't done quickly enough you still get default alt+tab and I can't make "return -1" and then write the action (I tried with adlibenable, but that was too slow) @youknowwho4eva: The problem is bigger then it seems, the picture doesn't get "blank" but only one single part of the window's screen shot get's blank, for example in Winamp it's playlist, in Firefox, it's main part where net content is displayed, for Total Commander are upper icons, etc... and I can't check that with pixels, cuz every window has different flaw in taking it's picture @FireFox: Tnx for positive feedback @WideBoyDixon: Are you using latest AutoIt? Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
ResNullius Posted March 18, 2009 Share Posted March 18, 2009 I get a crash too as soon as I try the first ALT-TAB:I see the dark GUI form with some icons at the bottom & the caption of the current window, but then but I get a message box with: _WinAPI_DestroyIcon: Cannot destroy object created by another thread. I'm on XP Pro with SP3 and AutoIt 3.3.0.0 Link to comment Share on other sites More sharing options...
gseller Posted March 18, 2009 Share Posted March 18, 2009 Very Nice! Thanks! It crashed on me but I opened in Scite and since then seems to work... Link to comment Share on other sites More sharing options...
BinaryBrother Posted March 18, 2009 Share Posted March 18, 2009 OS: Windows 7AutoIt: 3.3.0.0Works perfect... This is quite simply an awesome script... Job well done. SIGNATURE_0X800007D NOT FOUND Link to comment Share on other sites More sharing options...
WideBoyDixon Posted March 18, 2009 Share Posted March 18, 2009 @WideBoyDixon:Are you using latest AutoIt?Yes I am on both machines. I've just tried on my work machine and it works fine. Strange. It's a very nice script! I did notice, however, that the screenshot of my IE8 window didn't look right; is this because IE8 uses multiple iexplore threads to prevent one thread from crashing the whole application?WBD [center]Wide by name, Wide by nature and Wide by girth[u]Scripts[/u]{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}[u]UDFs[/u]{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~[/center] Link to comment Share on other sites More sharing options...
sandin Posted March 18, 2009 Author Share Posted March 18, 2009 (edited) update: fixed "_WinAPI_DestroyIcon: Cannot destroy object created by another thread" error. @JamesBrooks: enable 283 and 284 instead of 285 line in the script, that will eliminate picture's slide, and reduce time to send "return -1" to win's ALT+TAB, and won't detect win's ALT+TAB anymore, but it's not as pretty as with slider @WideBoyDixon I fixed that error you had before (exceeded array), and tested IE8, and ya, I noticed the same bug, it's cuz IE uses layered window with transparency, and therefore user32.dll "print window" function capture it as black square. Edited March 18, 2009 by sandin Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
James Posted March 18, 2009 Share Posted March 18, 2009 I like the slider, however I have noticed that there is a white line at the top, as the new picture overlays it. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
youknowwho4eva Posted March 18, 2009 Share Posted March 18, 2009 Right now I'm using your alt tab script with my windows transitions script. Looks almost like a futuristic OS. Only thing is my screenshots of my programs is just the title bar. I could fix it.... Damn hitting x closed my script.... but anyways. To work around the screenshot issue your having, I think it would look nice if it were like the mac task bar. Where the program you have selected has a large icon, and the to next to it are slightly larger then the others on the list. That way you don't have to worry about Microsofts built in blocks. Giggity Link to comment Share on other sites More sharing options...
jaenster Posted March 18, 2009 Share Posted March 18, 2009 I get a crash too as soon as I try the first ALT-TAB:I see the dark GUI form with some icons at the bottom & the caption of the current window, but then but I get a message box with: I'm on XP Pro with SP3 and AutoIt 3.3.0.0Exactly the same problem, XP sp2 here -jaenster Link to comment Share on other sites More sharing options...
ResNullius Posted March 18, 2009 Share Posted March 18, 2009 update: fixed "_WinAPI_DestroyIcon: Cannot destroy object created by another thread" error.Thanks sandin, works great now! Link to comment Share on other sites More sharing options...
sandin Posted March 18, 2009 Author Share Posted March 18, 2009 @JamesBrooks: update: The white line should be fixed now @youknowwho4eva Ya, the "printWindow" function can print window in it's current state, if it's resized to minimum size, then you'll get only Screen shot of a title bar, also if your window is minimized, you'll get only title bar. Btw, I like the idea about larger icons, but icon will not be so pretty if it's resized. @jaenster: Ernnnm, I could use extra info, how many windows you had running on your desktop? Cuz I noticed there was crash error with number of windows less then 4, but I fixed this in last update. @ResNullius: I'm glad it worked Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
James Posted March 18, 2009 Share Posted March 18, 2009 Still some bugs Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
sandin Posted March 18, 2009 Author Share Posted March 18, 2009 ok, I increased the label size, but the white line is really strange, does it occur when you press alt+tab first time (picture just appears)? or when the picture slide in? Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
water Posted March 18, 2009 Share Posted March 18, 2009 Still get the "_WinAPI_DestroyIcon: Cannot destroy object created by another thread" error. I'm running the german version of Windows XP SP2 with Autoit 3.3.0 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now