Jump to content

Recommended Posts

Posted

One of the things that was really poplur with teachers is my last school was the fact that they could customize the childs desktop (via the ergo grid menu) based on the lesson they are delivering.

 

This is very similar to putting desktop icons on on a restricted, but shared (student)desktop, except desktop icons on shared desktop is better in that its realtime, you don't have to log out and log back to get the new icons.

 

Anyway, I tried to replicate this but also trying to avoid it being too clicky/fiddly (for teachers) etc, I have had partial success and need a bit of help.

 

Basically what I' m trying to do is write a script that will open two windows ('programs bank' and 'class shared desktop'), then snap 1 to the left and the other to the right (all the clients are windows 7 pro)

 

The keyboard keys to snap is 'Windows key' and left arrow key (for left snap) and right arrow key (for right snap). There doesn't appear to be a script key code for the 'windows key' so I tried to use CTRL, ESC which is "^{ESC}". but this has not worked.

 

Does anyone have any suggestions suggestions? Here's my script. the script opens both windows, but does not snap.

 

set WshShell = WScript.CreateObject("WScript.Shell")

 

'Open the first Windows

wshShell.Run("C:\WINDOWS")

WshShell.SendKeys "^{ESC}{LEFT}"

 

'open the second window

wshShell.Run("C:\newfolder")

WshShell.SendKeys "^{ESC}{RIGHT}"

 

'set wshshell = nothing

Posted

ok ditched the shell script method and used auto it instead. Basically compiled the following code into an .exe with AutoIT AutoItScript - AutoItScript Website

 

Run("explorer.exe " & "c:\drivers")

WinWaitActive("drivers")

Send("#{LEFT}",0)

 

Run("explorer.exe " & "c:\")

WinWaitActive("OS (C:)")

Send("#{RIGHT}",0)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...