AutoHotkey Community

It is currently May 25th, 2012, 5:19 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Help me test please
PostPosted: February 20th, 2005, 9:01 am 
Offline

Joined: February 14th, 2005, 10:54 am
Posts: 447
Location: Texas, Usa
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 :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2005, 9:25 am 
Offline

Joined: February 10th, 2005, 7:51 pm
Posts: 14
Location: Tallinn, Estonia
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2005, 9:30 am 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
it works!
but as procyon said, there r ways... u'll have to disable some keys!
edit : 1024*768

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2005, 9:36 am 
Offline

Joined: February 14th, 2005, 10:54 am
Posts: 447
Location: Texas, Usa
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 :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2005, 11:55 am 
Offline

Joined: February 6th, 2005, 11:33 pm
Posts: 8
works with 1600x1200 too

Yordan


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2005, 12:16 pm 
Offline

Joined: February 14th, 2005, 10:54 am
Posts: 447
Location: Texas, Usa
1600x1200? Gimme gimme!!!

_________________
my lame sig :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2005, 1:15 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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".


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2005, 1:23 pm 
Offline

Joined: February 14th, 2005, 10:54 am
Posts: 447
Location: Texas, Usa
Great ideas I just wish I knew somthing about Shells and windows, and where the F*&# is the any key....

_________________
my lame sig :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2005, 4:57 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2005, 7:35 pm 
Offline

Joined: November 8th, 2004, 12:46 am
Posts: 1271
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Help me test please
PostPosted: February 20th, 2005, 9:29 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
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...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2005, 10:09 pm 
Offline

Joined: February 14th, 2005, 10:54 am
Posts: 447
Location: Texas, Usa
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 :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2005, 10:35 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
I didn't check height of titlebar but 3 of titlebar at top showing...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2005, 11:49 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2005, 11:05 pm 
Offline

Joined: December 28th, 2004, 12:33 am
Posts: 60
I was also able to right click the top bar of this window, about 2 or 3 pixels were showing. 1024x768 XP


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Cephei1, SKAN, tomL, vinniel and 19 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