AutoHotkey Community

It is currently May 26th, 2012, 5:34 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 337 posts ]  Go to page Previous  1 ... 10, 11, 12, 13, 14, 15, 16 ... 23  Next
Author Message
 Post subject:
PostPosted: April 18th, 2009, 11:46 am 
Lexikos,

I noticed that the windowpad script doesn't work in a remote desktop session. What could be the reason? Can you reproduce it on your system?

I have various other scripts, but they work fine.

Thanks!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 18th, 2009, 11:57 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7502
Location: Australia
WindowPad interacts directly with windows. Windows within the remote desktop session (i.e. on the remote computer) do not technically exist locally - only the remote desktop client window.

Please clarify - is the script running on the remote computer or locally? Do the hotkeys have any effect? Which hotkeys are you using?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 18th, 2009, 12:52 pm 
The script is running remotely. So I expected that the remote script would move the remote windows within the RDP screen. I used for example: CAPSLOCK-S. Does this make sense?

Thanks!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 18th, 2009, 12:54 pm 
Forgot to mention. None of the Windowpad have any effect.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 18th, 2009, 1:22 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7502
Location: Australia
Try another hotkey, like #Numpad2. I recall CapsLock has issues with that sort of application. (I'm not sure if it was RDP, VNC, VirtualBox, etc.)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 19th, 2009, 12:01 am 
You are, There is a CAPS (or win) key problem. That's unfortunate because my netbook doesn't have many key :-(

Is this a not resolvable restriction?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 21st, 2009, 5:20 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7502
Location: Australia
After some testing, it seems the problems I had seen with CapsLock were caused by WindowPad running on my local system (and the remote system). After uncommenting the following line in the [Exclude Windows] section of my local WindowPad.ini, the remote WindowPad works:
Code:
Window=Remote Desktop


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 21st, 2009, 9:05 am 
Yes, that seems to work. Thanks!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 20th, 2009, 9:37 pm 
Offline

Joined: May 20th, 2009, 9:35 pm
Posts: 3
Registered just to say I've been using WindowPad for about a month now, and it has been immensely helpful. I feel sad for all the time I've spent lining up windows in the past, and now your program comes along and solves all my problems. Thanks!


Report this post
Top
 Profile  
Reply with quote  
PostPosted: May 22nd, 2009, 12:50 pm 
Offline

Joined: May 16th, 2009, 4:15 pm
Posts: 18
Location: TW
some people (include me) would like to do WindowScreenMove(P) with original window size. Below is my modificarion on that

find below in WindowScreenMove(P)

Code:
    if (IsResizable()) {
        w *= (mdw/msw)
        h *= (mdh/msh)
    }
   
    ; Move window, using resolution difference to scale co-ordinates.
    WinMove,,, mdLeft + (x-msLeft)*(mdw/msw), mdTop + (y-msTop)*(mdh/msh), w, h


replace with below

After that, give a 3rd parameter as "true"

WindowScreenMove, Monitor, WinTitle, FixedSize

Code:
    if (IsResizable() && !P3) {
        wd := w*(mdw/msw)
        hd := h*(mdh/msh)
    } else {
        wd := w
        hd := h
    }
   
    x1 := mdLeft + (x-msLeft)*(mdw/msw)
    y1 := mdTop + (y-msTop)*(mdh/msh)

    if (x1 < mdLeft) OR (x1 > mdRight-40)
   x1 := mdLeft
    if (y1 < mdTop) OR (y1 > mdBottom-40)
   y1 := mdTop

    ; Move window, using resolution difference to scale co-ordinates.
    WinMove,,, x1, y1, wd, hd

_________________
Eucaly61's DIY World (Mainly in Chinese)
http://eucaly61.blogspot.com/search/label/AutoHotKey


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 3rd, 2009, 3:38 am 
Offline

Joined: February 5th, 2009, 9:12 am
Posts: 59
Hi everyone!

Nice tool, is very useful in vista and multi monitor.

I'm adding a new function to Toggle muting the Mic In and the Line In (not messing with volume functions), it's just a test, I want to improve it as much as I can (took the code from an example script).

Code:
MicVolMute(P)
{
VA_SetMute(!VA_GetMute("7"),"7")
if VA_GetMute("7")
{
   CustomColor = EEAA99  ; Can be any RGB color (it will be made transparent below).
   Gui +LastFound +AlwaysOnTop -Caption +ToolWindow  ; +ToolWindow avoids a taskbar button and an alt-tab menu item.
   Gui, Color, %CustomColor%
   Gui, Font, s25  ; Set a large font size (32-point).
   ; Make all pixels of this color transparent and make the text itself translucent (150):
   WinSet, TransColor, %CustomColor% 200
   Gui, Add, Text, cLime, Mic Mute ; XX & YY serve to auto-size the window.
   Gui, Show, x850 y720 NoActivate
}
else
{
   Gui, Destroy
}
}


Is there a way to autoexecute this at the program start???
Code:
if VA_GetMute("7")


Of course, I'm gonna put the window (OSD) in another place on the main screen

Any help will be highly appreciated.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 3rd, 2009, 3:53 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7502
Location: Australia
What does it have to do with WindowPad? :?

For the answer to your question, see auto-execute section.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 3rd, 2009, 6:37 am 
Offline

Joined: February 5th, 2009, 9:12 am
Posts: 59
Lexikos wrote:
What does it have to do with WindowPad? :?


Sorry, and thanks...

Well, I'm using WindowPad as my main script to control all of my Hotkeys, and I'm thinking in using it as library, but I'm trying my main attempts in every single (and useful) script, so in a near future, I can use them as functions...

Thanks for your directions!


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Nice utility!
PostPosted: June 4th, 2009, 6:16 am 
Thank you, i got my option window back! Nice work!


Report this post
Top
  
Reply with quote  
PostPosted: June 15th, 2009, 5:12 pm 
Offline

Joined: May 20th, 2009, 9:35 pm
Posts: 3
Hey all. I'm getting a weird behavior, and I don't know if it's WindowPad or AHK, but as WindowPad is all I use AHK for, I thought I'd start here.

WindowPad works as expected, however, when I am typing on the numberpad, if I press the 0 followed by another number too quickly, WindowPad will fire.

For example, if I type 210351 on the numberpad, my window will resize into the lower-right corner (as if I pressed Win + 3).

Any idea why that is? This behavior is a bit frustrating. Thanks!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 337 posts ]  Go to page Previous  1 ... 10, 11, 12, 13, 14, 15, 16 ... 23  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, XX0, Yahoo [Bot] and 14 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