AutoHotkey Community

It is currently May 27th, 2012, 6:58 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: February 6th, 2012, 6:29 pm 
Offline

Joined: September 1st, 2011, 9:24 am
Posts: 31
Hi, I've created a script which includes lots of different hotstrings. I've compiled that script and I am running it from a shared network folder along with other workmates.
The weird thing that happens is that all of these hotstrings work perfectly for me but not for the rest of my mates.

Example:

#Hotstring R0 C1 B O
::add::
sendplay,
{
this is everyone's address
}
return

returns "this is everyone's address" for me, just like it should but for everyone else it returns "add this is everyone's addr".Note that the hotstring's name is not auto-deleted and the last three characters are missing.

I can't for the life of me figure out what's wrong. We all use exactly the same compiled script in identical computers but it only works correctly for me.

Any ideas of what might be wrong?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 7:49 pm 
Perhaps you are the only one who runs it as http://www.autohotkey.com/wiki/index.ph ... inistrator ?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 7:56 pm 
Offline

Joined: September 1st, 2011, 9:24 am
Posts: 31
mmm... I don't think that's the problem because everything else works fine and at least one more person is running the script as admin.
I am the only one with Autohotkey installed, though, but that shouldnt be the reason either as the script we're all using is compiled.
we're using Wiindows XP, by the way.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 8:02 pm 
How about pasting it (my standard reply when things go wrong), I could recommend Clip() http://www.autohotkey.com/wiki/index.ph ... #Clipboard


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 8:12 pm 
Offline

Joined: September 1st, 2011, 9:24 am
Posts: 31
that's one of the problems, the application we use at work (which is a piece of rubbish) does not allow to use the clipboard. Ctrl+V has no effect at all.
Sendplay works very well when I use hotstrings, it is extremely fast in this application but that problem in other people's computers is driving me nuts.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 8:16 pm 
Another one my standard tips/questions is: do you have any other "hotkey" or clipboard manager programs running as they could interfere. Sometimes AV or FireWall software tries to "intercept" text. Does in run in a VPN, virtualbox "something"?

Other options:
- ControlSend
- SetKeyDelay (so it types a bit slower)?

Just tossing out some ideas here...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 8:21 pm 
Offline

Joined: September 1st, 2011, 9:24 am
Posts: 31
I haven't tried controlsend or changing setkeydelay to a different value, it might be a good idea, I'll try it out tomorrow to see if that works though I still can't understand why it works for me and not for the others.
Thanks for your help, much appreciated.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 8:24 pm 
Offline

Joined: August 7th, 2011, 1:23 pm
Posts: 754
Could this HotString option be involved ?
Hotsring Options wrote:
B0 (B followed by a zero): Automatic backspacing is not done to erase the abbreviation you type. Use a plain B to turn backspacing back on after it was previously turned off. A script may also do its own backspacing via {bs 5}, which sends 5 backspaces. Similarly, it may send left-arrow keystrokes via {left 5}

_________________
Win7 - Firefox 10.0.2 - AHK_L 1.1.07.00
Please bear with me and my English which is so bad at times that even I don't understand myself


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 8:29 pm 
Offline

Joined: September 1st, 2011, 9:24 am
Posts: 31
no, it's not actually B0 but B and O, two different options.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 8:53 pm 
Offline

Joined: August 7th, 2011, 1:23 pm
Posts: 754
oooops! too many beers I guess.

_________________
Win7 - Firefox 10.0.2 - AHK_L 1.1.07.00
Please bear with me and my English which is so bad at times that even I don't understand myself


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 10:32 pm 
Offline

Joined: August 25th, 2011, 8:41 pm
Posts: 460
Maybe different OS are causing this?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2012, 10:39 pm 
Code:
#Hotstring R0 C1 B O SP
::add::
(
this is everyone's address
)
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2012, 6:25 pm 
Offline

Joined: September 1st, 2011, 9:24 am
Posts: 31
Anonymous wrote:
Code:
#Hotstring R0 C1 B O SP
::add::
(
this is everyone's address
)
return


that was it!!! it solved the problem, I still don't know why it worked for me and not the others but now it works for everyone. Thanks a lot!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 10th, 2012, 2:47 am 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3330
Location: Simi Valley, CA
You probably have more than one AHK script using the keyboard hook. By default, hotstrings use SendInput unless another script has a keyboard hook installed, in which case they use SendPlay.

When you have a SendInput followed immediately by SendPlay, the latter will usually appear first. In the case of your coworkers, the backspaces done when the hotstring began came after the hotstring payload because they were send via SendInput.

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 10th, 2012, 4:15 pm 
Offline

Joined: September 1st, 2011, 9:24 am
Posts: 31
sorry about my ignorance, but how can that happen if we're all running the exact same script?
the .exe file is located in a network folder and we all run that same script from our computer, I think it should behave the same for everyone. One thing I noticed is that sometimes when they use Reload the old script remains active (despite the autoexec section containing singleinstance force) which might perhaps cause the problem, I don't know.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: migz99, sjc1000 and 73 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