AutoHotkey Community

It is currently May 27th, 2012, 11:26 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: July 31st, 2005, 3:04 pm 
Offline

Joined: July 31st, 2005, 2:47 pm
Posts: 9
I'm running the following script in my file.manager url=www.ghisler.com]Total COmmander[/url] to move the divider of the two panels to 88.
Code:
1. ~^!P::
2. IfWinActive ahk_class TTOTAL_CMD
3. {
4. mousegetpos, merkx, merky,
5. Sleep, 100
6. MouseClick, left,  502,  536, 1, 0, D ,
7. Sleep, 100
8. MouseClick, left, 881,  536, 1, 0, U,
9. Sleep, 100
10.Mousemove, %merkx% , %merky%,
11. }
12.return

I use the resolution 768X1024 and the window of Total Commander is nearly as wide as the screen.

When I press [Altgr]+[p] it works fine.
When I press [Alt]+[Ctrl]+[p] the mouse does not stop at 88 percent but moves to the end of the screen.

Windows XP Pro SP2
Autohotkey 1.0.37.03

sheepdog


Last edited by sheepdog on July 31st, 2005, 4:53 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 31st, 2005, 3:48 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2545
Chris wrote:
If you happened to have downloaded today's release (1.0.37.03), it introduced some serious bugs affecting the Send command's ability to send modifier keys and other keystrokes.

Therefore, if you're running version 1.0.37.03, please upgrade to 1.0.37.04. If you have 1.0.37.02 or older, you don't have to upgrade unless you need any of the other recent fixes or improvements.

Sorry for the bad release.


It may not be related but please upgrade to the latest version and try again.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 31st, 2005, 4:55 pm 
Offline

Joined: July 31st, 2005, 2:47 pm
Posts: 9
I tried with 1.0.37.04 but it is the same.

When I increase line 7 sleep, 100 to sleep, 200 it works with [Ctrl]+[Alt] as well as with [Altgr].

Also if I decrease the mousespeed in line 8 at least to 2
( MouseClick, left, 881, 536, 1, 2, U, ). it works well too.

sheepdog


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2005, 5:54 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
This behavior is probably due to your use of the tilde in the hotkey definition (~^!P). Although I can't yet explain why it happens, you might try removing the tilde unless you need the Ctrl-Alt-P keystroke to "pass through" to the active window.

If you notice other problems similar to this, please post again here for further analysis.

Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2005, 7:04 pm 
I already tested it with and without tilde (because I had stumbled over another problem with '^!M' because in german keyboard layout you get 'ยต' wiht this key-combination - but this is another matter).
It acts the same.

But I found another thing. It depends on how long I press the [alt]+[Ctrl] key as well as the [AltGR] key. If I release them immedately it works as it should. And for [Altgr] this happens almost always. But for any reason I seem to press the [alt]+[Ctrl] a bit longer, and then the mouse cursor moves to the end of the screen.

So after all there isn't a difference between [AltGr] and [Alt]+[Ctrl].
It seems that the Control key affects the (virtual) mouse move just like it does with the keyboard mouse. Is there anything you can do?

BTW: It makes no difference if I change the settings for the keyboard mouse. And yes, it's disabled.

sheepdog


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2005, 11:45 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
To reproduce the problem, it would help to have a short test script that can be run in Notepad or Calculator rather than Total Commander. It would also be good to know the current language you're using on your system (in case it's a keyboard layout issue).

Thanks.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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