Jump to content



Photo

Glass CMD for Windows Vista/Seven


  • Please log in to reply
99 replies to this topic

#1 komalo

komalo

    Prodigy

  • Active Members
  • PipPipPip
  • 171 posts

Posted 10 May 2009 - 06:21 PM

I was posting the source on deviantArt but i thought it should be here since
it is considered as an example script for auto it , i hope any one find it useful :)

credits for the function Real Vista Aero Glass - Two functions, It's the real deal! by JamesBrooks

a screen shot added by JamesBrooks
Posted Image

Download & Reviews : http://komalo.deviantart.com/art/Glass-CMD...Vista-121457868
Current Exe Source :Attached File  Glass_CMD___Current_Exe__.au3   1.73K   5894 downloads
Update Source : Attached File  Glass_CMD___Updated__.au3   1.84K   6439 downloads

Edited by komalo, 27 May 2009 - 08:18 PM.






#2 monoceres

monoceres

    asdf

  • MVPs
  • 3,719 posts

Posted 10 May 2009 - 06:31 PM

Very nice. I'm going to add this to my startup folder since it looks surprisingly good :)
Posted ImageIs the link in my post broken? I do not longer own my domain, all the files are moved to my new domain.Example: http://monoceres.se/test.au3 -> http://andhen.mine.nu/monoceres.se/test.au3

#3 UEZ

UEZ

    Never say never

  • MVPs
  • 3,600 posts

Posted 10 May 2009 - 07:00 PM

Good job! My cmd backround was white and I wondered why I wasn't able to see the effect :)

UEZ

 
The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯


#4 MilesAhead

MilesAhead

    Eclectician

  • Active Members
  • PipPipPipPipPipPip
  • 531 posts

Posted 11 May 2009 - 01:32 AM

Looks really nice. I don't know how good Vista is about unhooking windows that have been destroyed. I added an autoexit and an icon to it and put it in my startup folder. Very cool.

Func OnAutoItExit()     If $hGui Then         ShellHookWindow($hGui, 0)     EndIf EndFunc  ;==>OnAutoItExit

"I don't want to belong to any club that would have me as a member."- Groucho Marx

#5 trancexx

trancexx

    Hm, I really shouldn't.

  • Active Members
  • PipPipPipPipPipPip
  • 5,187 posts

Posted 11 May 2009 - 10:05 AM

I just tried it on some other windows and looks like shit but for command prompt looks really interesting. Nice.

That ClearMemory() will not work on win7. Microsoft says that they changed the name and dll from which called function is exported. Maybe like this would be better to do it in AutoIt:
AutoIt         
Func ClearMemory()         Local $hProcess = -1         Local $aCall = DllCall("kernel32.dll", "hwnd", "GetCurrentProcess")     If Not @error Then         $hProcess = $aCall[0]     EndIf         $aCall = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'hwnd', $hProcess)     If @error Then         $aCall = DllCall("kernel32.dll", 'int', 'K32EmptyWorkingSet', 'hwnd', $hProcess)         If @error Then             Return SetError(1, 0, 0)         EndIf     EndIf     If $aCall[0] Then         Return SetError(0, 0, 1)     EndIf     Return SetError(0, 0, 0) ; redundant line EndFunc


edit: no -> not

Edited by trancexx, 11 May 2009 - 10:06 AM.

eMyvnE


#6 Xand3r

Xand3r

    Aka TheMadman

  • Active Members
  • PipPipPipPipPipPip
  • 454 posts

Posted 11 May 2009 - 12:07 PM

a definate keeper :) nice job!
Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro

#7 wraithdu

wraithdu

    I am less fun than a twisted ankle.

  • MVPs
  • 2,137 posts

Posted 11 May 2009 - 01:33 PM

EmptyWorkingSet still exists in psapi.dll in Windows 7. Use a DLL export viewer to see it. I know some functions moved around in Win7, but I think most of the original DLLs/functions are there and redirect to the new locations.

Edited by wraithdu, 11 May 2009 - 01:34 PM.


#8 RomanK

RomanK

    Adventurer

  • Active Members
  • PipPip
  • 124 posts

Posted 11 May 2009 - 01:47 PM

not useful, but very nice :)
Unfortunately I don't have any use for it, as I use the CMD barely.

#9 komalo

komalo

    Prodigy

  • Active Members
  • PipPipPip
  • 171 posts

Posted 11 May 2009 - 05:48 PM

Very nice. I'm going to add this to my startup folder since it looks surprisingly good :)

thanks , glad that you liked it

Good job! My cmd backround was white and I wondered why I wasn't able to see the effect :party:

UEZ

change the background to black

Looks really nice. I don't know how good Vista is about unhooking windows that have been destroyed. I added an autoexit and an icon to it and put it in my startup folder. Very cool.

Func OnAutoItExit()      If $hGui Then          ShellHookWindow($hGui, 0)      EndIf  EndFunc ;==>OnAutoItExit

thanks , i will add that now

#10 komalo

komalo

    Prodigy

  • Active Members
  • PipPipPip
  • 171 posts

Posted 11 May 2009 - 05:50 PM

I just tried it on some other windows and looks like shit but for command prompt looks really interesting. Nice.

That ClearMemory() will not work on win7. Microsoft says that they changed the name and dll from which called function is exported. Maybe like this would be better to do it in AutoIt:

AutoIt         
 Func ClearMemory()         Local $hProcess = -1         Local $aCall = DllCall("kernel32.dll", "hwnd", "GetCurrentProcess")     If Not @error Then         $hProcess = $aCall[0]     EndIf         $aCall = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'hwnd', $hProcess)     If @error Then         $aCall = DllCall("kernel32.dll", 'int', 'K32EmptyWorkingSet', 'hwnd', $hProcess)         If @error Then             Return SetError(1, 0, 0)         EndIf     EndIf     If $aCall[0] Then         Return SetError(0, 0, 1)     EndIf     Return SetError(0, 0, 0) ; redundant line EndFunc

edit: no -> not

that's because vista replace the black color with the blur :)

a definate keeper :party: nice job!

thanks :idea:

EmptyWorkingSet still exists in psapi.dll in Windows 7. Use a DLL export viewer to see it. I know some functions moved around in Win7, but I think most of the original DLLs/functions are there and redirect to the new locations.

yep
http://msdn.microsoft.com/en-us/library/ms682606(VS.85).aspx

Edited by komalo, 11 May 2009 - 05:52 PM.


#11 komalo

komalo

    Prodigy

  • Active Members
  • PipPipPip
  • 171 posts

Posted 11 May 2009 - 05:50 PM

not useful, but very nice :party:
Unfortunately I don't have any use for it, as I use the CMD barely.


i know , but there are some people who use cmd and love this :)

#12 MilesAhead

MilesAhead

    Eclectician

  • Active Members
  • PipPipPipPipPipPip
  • 531 posts

Posted 11 May 2009 - 06:13 PM

i know , but there are some people who use cmd and love this :)

I use a dialog with combo boxes in a couple of my apps to let the user
change the hotkey. After hours messing around with the blur enable
and changing the colors and text colors on button if OS >=Vista I just
about had it working. Unfortunately ComboBoxes don't let you set the
color. After a combo box selection is made you can't read it!! It's a
shame because it looks really cool.

Clipboard01.jpg

Edited by MilesAhead, 11 May 2009 - 06:14 PM.

"I don't want to belong to any club that would have me as a member."- Groucho Marx

#13 RomanK

RomanK

    Adventurer

  • Active Members
  • PipPip
  • 124 posts

Posted 11 May 2009 - 06:18 PM

as soon as you apply glass, the controls on it are like disabled. You can get around this by making a child window with disabled labels that are underlying the controls that shall be usable.

#14 torels

torels

    I Hacked 127.0.0.1! :D

  • Active Members
  • PipPipPipPipPipPip
  • 676 posts

Posted 11 May 2009 - 06:19 PM

this won't work in any way under XP right ? :)
Some Projects:indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

#15 Skrip

Skrip

    Psychonaut

  • Active Members
  • PipPipPipPipPipPip
  • 2,340 posts

Posted 11 May 2009 - 06:31 PM

this won't work in any way under XP right ? :)


Exactly.

We're trapped in the belly of this horrible machine.And the machine is bleeding to death...


#16 MilesAhead

MilesAhead

    Eclectician

  • Active Members
  • PipPipPipPipPipPip
  • 531 posts

Posted 11 May 2009 - 06:41 PM

as soon as you apply glass, the controls on it are like disabled. You can get around this by making a child window with disabled labels that are underlying the controls that shall be usable.


Wouldn't I have to do user drawn combo box? afaik in AutoIt you can't set the color of combo boxes. The buttons looked washed out too but by changing the colors I could at least make them usable.
"I don't want to belong to any club that would have me as a member."- Groucho Marx

#17 trancexx

trancexx

    Hm, I really shouldn't.

  • Active Members
  • PipPipPipPipPipPip
  • 5,187 posts

Posted 11 May 2009 - 07:23 PM

EmptyWorkingSet still exists in psapi.dll in Windows 7. Use a DLL export viewer to see it. I know some functions moved around in Win7, but I think most of the original DLLs/functions are there and redirect to the new locations.

I'm interested... is new psapi.dll just calling K32EmptyWorkingSet from kernel32 or is there a real function left? Could you check that (see imports maybe)? I don't have Windows 7.

One more thing. If you write some code (e.g. c++) with EmptyWorkingSet and follow instructions given by Microsoft on that link that komalo is "yep"-ing, what funtion gets called?

edit:
@komalo, hope you don't mind me being a bit off-topic now. it's just interesting to see the differences with systems.

Edited by trancexx, 11 May 2009 - 07:32 PM.

eMyvnE


#18 MilesAhead

MilesAhead

    Eclectician

  • Active Members
  • PipPipPipPipPipPip
  • 531 posts

Posted 11 May 2009 - 08:14 PM

Wouldn't I have to do user drawn combo box? afaik in AutoIt you can't set the color of combo boxes. The buttons looked washed out too but by changing the colors I could at least make them usable.

I used VistaGlass.au3. Looks almost as cool.

Clipboard01.jpg
"I don't want to belong to any club that would have me as a member."- Groucho Marx

#19 torels

torels

    I Hacked 127.0.0.1! :D

  • Active Members
  • PipPipPipPipPipPip
  • 676 posts

Posted 11 May 2009 - 08:25 PM

I used VistaGlass.au3. Looks almost as cool.

Clipboard01.jpg

Link Please :)
Some Projects:indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

#20 AdmiralAlkex

AdmiralAlkex

    I'm on a boat

  • MVPs
  • 4,490 posts

Posted 11 May 2009 - 08:41 PM

Link Please :)

Looks like THIS by JamesBrooks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users