 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Feb 20, 2005 9:01 am Post subject: Help me test please |
|
|
Can several ppl run this code and let me know if it covers all of the screen? That is the desired effect. Please attempt to move this GUI with the mouse by reaching to all edges of the screen, I am hoping that you shouldnt be able too. Please let me know what your resolution is should you help me test this. Note: END is a hot key to exit should there be any problems Thanks in advance | Code: | User_BackGround = C:\Documents and Settings\Owner\My Documents\My Pictures\fake.bmp
Sys_Width = %A_ScreenWidth%
Sys_Height = %A_ScreenHeight%
Sys_Width -= 4
Sys_Height -= 10
;-----------------------------
Menu, FileMenu, Add, Open, OpenFile
Menu, FileMenu, Add, Search, SearchFile
Menu, FileMenu, Add, E&xit/LogOff, Exit
Menu, FileMenu, Add, Run, RunFile
Menu, CommonFiles, Add, My Documents, MyDocuments
Menu, CommonFiles, Add, My Pictures, MyPictures
Menu, CommonFiles, Add, My Computer, MyComputer
Menu, CommonFiles, Add, My Network, MyNetwork
Menu, CommonFiles, Add, Program Files, ProgramFiles
Menu, SysMenu, Add, All Programs, AllPrograms
Menu, SysMenu, Add, Control Panel, CtrlPanel
Menu, HelpMenu, Add, &About, Help
Menu, MyMenuBar, Add, &File, :FileMenu ; Attach the two sub-menus that were created above.
Menu, MyMenuBar, Add, Common Dir, :CommonFiles
Menu, MyMenuBar, Add, &Help, :HelpMenu
Menu, MyMenuBar, Add, Programs, :SysMenu
Gui, Menu, MyMenuBar
Gui, Add, Picture, x-5 , %User_BackGround%
gui, Show, x0 y-25 w%Sys_Width% h%Sys_Height%, Windows Run Over
Return
CtrlPanel:
AllPrograms:
OpenFile:
SearchFile:
RunFile:
Help:
MyDocuments:
MyPictures:
MyComputer:
MyNetwork:
ProgramFiles:
Return
END::
Exit:
ExitApp |
_________________ my lame sig  |
|
| Back to top |
|
 |
procyon
Joined: 10 Feb 2005 Posts: 14 Location: Tallinn, Estonia
|
Posted: Sun Feb 20, 2005 9:25 am Post subject: |
|
|
1024 x 768 resolution, and it covered all of the screen.
Of course if I really wanted to move the window, then there are two approaches:
1) I pressed the windows key, and selected move from the taskbar icon right-click menu
2) Alt+Space menu, and same move command |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Sun Feb 20, 2005 9:30 am Post subject: |
|
|
it works!
but as procyon said, there r ways... u'll have to disable some keys!
edit : 1024*768 _________________
 |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Feb 20, 2005 9:36 am Post subject: |
|
|
Yes I thought about those problems and these too while attemping to build an "OS Look Alike"
1 How do I keep a user from moving the window via all hot key attempts
2 How do I keep this over the task bar at all times while still making all Icons there accessible
3 How can I keep the Gui on the Bottom of the windows stack at all times so that its always a Back ground item, even when its the active window
4 Alt+ Tab brings the taskbar back in view
those are the 4 main ones that came to mind at first. _________________ my lame sig  |
|
| Back to top |
|
 |
Yordan
Joined: 06 Feb 2005 Posts: 8
|
Posted: Sun Feb 20, 2005 11:55 am Post subject: |
|
|
works with 1600x1200 too
Yordan |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Feb 20, 2005 12:16 pm Post subject: |
|
|
1600x1200? Gimme gimme!!! _________________ my lame sig  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sun Feb 20, 2005 1:15 pm Post subject: |
|
|
| Invalid User wrote: | | 1 How do I keep a user from moving the window via all hot key attempts | You could start by doing one or more or more of the following options prior to the first "Gui Add": "Gui -SysMenu -MinimizeBox".
| Quote: | | 2 How do I keep this over the task bar at all times while still making all Icons there accessible | You might consider making your script the shell instead of Explorer. I think this can be done via the registry somehow.
| Quote: | | 3 How can I keep the Gui on the Bottom of the windows stack at all times so that its always a Back ground item, even when its the active window | Experiment with "Gui +Disabled +AlwaysOnTop". However, that might prevent clicks on the window's icons from working. You could also use "WinSet Bottom" repeatedly via SetTimer.
| Quote: | | 4 Alt+ Tab brings the taskbar back in view | You could try hiding the taskbar via "WinHide ahk_class Shell_TrayWnd". |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Feb 20, 2005 1:23 pm Post subject: |
|
|
Great ideas I just wish I knew somthing about Shells and windows, and where the F*&# is the any key.... _________________ my lame sig  |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Sun Feb 20, 2005 4:57 pm Post subject: |
|
|
| Chris wrote: | | You might consider making your script the shell instead of Explorer. I think this can be done via the registry somehow. |
This is possible, but I think it's done in one of the system config files. Also, you can't switch shells without a full reboot for some reason. That said, you can use anything as a shell, even an AHK script. I've tried it before, but I've never been able to find tray icon software that actually works by itself. Anyway, Litestep's good enough for me. |
|
| Back to top |
|
 |
Serenity
Joined: 08 Nov 2004 Posts: 892
|
Posted: Sun Feb 20, 2005 7:35 pm Post subject: |
|
|
| Quote: | | You might consider making your script the shell instead of Explorer. |
You can do this by editing the SYSTEM.INI file in c:/windows or c:/winnt with a text editor.
Under the section [boot] change the line
shell=explorer.exe
to
shell=c:/shell/shell.exe
Though I don't know what will happen if you don't point it at an actual shell replacement. | Quote: | | You might consider making your script the shell instead of Explorer. |
You can do this by editing the SYSTEM.INI file in c:/windows or c:/winnt with a text editor.
Under the section [boot] change the line
shell=explorer.exe
to
shell=c:/shell/shell.exe
Though I don't know what will happen if you don't point it at an actual shell replacement. Its worth having something like Knoppix handy, just in case windows doesn't like it and won't load properly. You can use it to open and edit the SYSTEM.INI file back again. _________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2393
|
Posted: Sun Feb 20, 2005 9:29 pm Post subject: Re: Help me test please |
|
|
| Invalid User wrote: | | Can several ppl run this code and let me know if it covers all of the screen? That is the desired effect. Please attempt to move this GUI with the mouse by reaching to all edges of the screen, I am hoping that you shouldnt be able too. Please let me know what your resolution is should you help me test this. Note: END is a hot key to exit should there be any problems Thanks in advance | Easily movable with mouse (titlebar visible at top of screen) in 1280 * 1024 for me... |
|
| Back to top |
|
 |
Invalid User
Joined: 14 Feb 2005 Posts: 442 Location: Texas, Usa
|
Posted: Sun Feb 20, 2005 10:09 pm Post subject: |
|
|
Currupt May you do a pixel count from the visible edge of the title bar of window to the top egde then Add one. _________________ my lame sig  |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2393
|
Posted: Sun Feb 20, 2005 10:35 pm Post subject: |
|
|
| I didn't check height of titlebar but 3 of titlebar at top showing... |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Sun Feb 20, 2005 11:49 pm Post subject: |
|
|
Note that if you change the shell to anything other than explorer.exe, you will lose access to the taskbar, system tray, desktop icons, and many more of the built-in features (usually the ones that rely on Internet Explorer). It is only suggested for use with an actual shell replacement like Litestep or Talisman and you should know what you're doing. Also, be comfortable with working in DOS mode in case something goes wrong.
Just my two cents for anyone who's thinking of trying that. |
|
| Back to top |
|
 |
Watcher
Joined: 28 Dec 2004 Posts: 60
|
Posted: Mon Feb 21, 2005 11:05 pm Post subject: |
|
|
| I was also able to right click the top bar of this window, about 2 or 3 pixels were showing. 1024x768 XP |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|