AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help me test please

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Feb 20, 2005 9:01 am    Post subject: Help me test please Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
procyon



Joined: 10 Feb 2005
Posts: 14
Location: Tallinn, Estonia

PostPosted: Sun Feb 20, 2005 9:25 am    Post subject: Reply with quote

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
View user's profile Send private message
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Sun Feb 20, 2005 9:30 am    Post subject: Reply with quote

it works!
but as procyon said, there r ways... u'll have to disable some keys!
edit : 1024*768
_________________
Back to top
View user's profile Send private message
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Feb 20, 2005 9:36 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Yordan



Joined: 06 Feb 2005
Posts: 8

PostPosted: Sun Feb 20, 2005 11:55 am    Post subject: Reply with quote

works with 1600x1200 too

Yordan
Back to top
View user's profile Send private message Visit poster's website AIM Address
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Feb 20, 2005 12:16 pm    Post subject: Reply with quote

1600x1200? Gimme gimme!!!
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sun Feb 20, 2005 1:15 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Feb 20, 2005 1:23 pm    Post subject: Reply with quote

Great ideas I just wish I knew somthing about Shells and windows, and where the F*&# is the any key....
_________________
my lame sig Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Sun Feb 20, 2005 4:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Serenity



Joined: 08 Nov 2004
Posts: 892

PostPosted: Sun Feb 20, 2005 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2393

PostPosted: Sun Feb 20, 2005 9:29 pm    Post subject: Re: Help me test please Reply with quote

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
View user's profile Send private message Visit poster's website
Invalid User



Joined: 14 Feb 2005
Posts: 442
Location: Texas, Usa

PostPosted: Sun Feb 20, 2005 10:09 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
corrupt



Joined: 29 Dec 2004
Posts: 2393

PostPosted: Sun Feb 20, 2005 10:35 pm    Post subject: Reply with quote

I didn't check height of titlebar but 3 of titlebar at top showing...
Back to top
View user's profile Send private message Visit poster's website
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Sun Feb 20, 2005 11:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Watcher



Joined: 28 Dec 2004
Posts: 60

PostPosted: Mon Feb 21, 2005 11:05 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group