Forums list
New topics
Topics list
Search
Help
Login
Register


Topic: «Position and resize a window with a single hotkey » on forum: Technical Support   Views: 5741
 
Surf Rat
Registered user
 
Posts: 4
Joined: 02/14/2011
Posted: 02/14/2011 08:51:00
 
 
Hi,

I can position or resize a window with a hotkey but not both together. I tried to create two seperate hot keys (they worked individualy) and then use a macro to fire them in sequence but this did not work. I tried this on notepad and all it did was paste the key combination into notepad as text.

I also noticed that the resize hotkey when repeatedly pressed would cause the window to jump between two sizes and not remain the preset size as I expected.

Thanks

SurfRat.
 
Top
Vasiliy Ivachev
Administrator
-retired-
 
Posts: 2073
Joined: 11/09/2010
Posted: 02/14/2011 23:02:54
 
 
Hello Surf,

Thanks for the post.

What hotkeys do you want to use (what combinations of keys)?

How did you write them in the "Run keyboard macro" action?

Best regards.
 
Top
Surf Rat
Registered user
 
Posts: 4
Joined: 02/14/2011
Posted: 02/15/2011 04:06:46
 
 
Hi Vasiliy,

I created two shortcuts as follows:

1. Align middle-center Ctrl Q
2. Resize 96%m x96%m Ctrl 2

These work seperately but not always. I sometimes have to press a key combo more than once to get the desired result.

I then created a macro Ctrl w, called it Center 96 x96 and added the following key combo:
<Ctrl+><Q><Ctrl+><2>

I then tested it on notepad and <Ctrl+><Q><Ctrl+><2> was pasted into the window with no window position change.

Thanks

SurfRat.
 
Top
Vasiliy Ivachev
Administrator
-retired-
 
Posts: 2073
Joined: 11/09/2010
Posted: 02/15/2011 23:21:53
 
 
Hello SurfRat,

You should use the following key combo in your keyboard macro:
<Ctrl+Q><Ctrl+2>.

Please, inform me about your results.

Best regards.
 
Top
Surf Rat
Registered user
 
Posts: 4
Joined: 02/14/2011
Posted: 02/15/2011 23:37:06
 
 
Hi Vasiliy,

Thanks for the feedback. Your fixed keyboard macro fired now. I think you need to look at the code for generating the macro string as it was not quite right as I originally had it.

The macro did not work as intended (single keypress, 96x96% size, center of screen)  and I think the problem lies in the original hot keys. They don't always fire correctly.

Thanks

SurfRat.
 
Top
Vasiliy Ivachev
Administrator
-retired-
 
Posts: 2073
Joined: 11/09/2010
Posted: 02/16/2011 00:49:45
 
 
Hello SurfRat,

What windows does it problem occur with?
How often?

What conditions does this problem occur with?

Best regards.
 
Top
Surf Rat
Registered user
 
Posts: 4
Joined: 02/14/2011
Posted: 02/17/2011 08:39:39
 
 
Hi,

All windows. If I fire my macro the behaviour is as I have described. Have you tested this? Are you results different to mine?
 
Top
Vasiliy Ivachev
Administrator
-retired-
 
Posts: 2073
Joined: 11/09/2010
Posted: 02/17/2011 22:43:53
 
 
Hello SurfRat,

Please, turn off the "Keep window within the desktop boundaries after resizing" option (Options -> Actions -> Resize) and try to use your hotkey running keyboard macro (Ctrl +W).

Please inform me about your results.

Best regards.
 
Top


User(s) reading this topic
Number of guests: 1, registered members: 0, in total hidden: 0


Forums list
New topics
Topics list
Search
Help
Login
Register