| View previous topic :: View next topic |
| Author |
Message |
jonj99
Joined: 03 Jan 2009 Posts: 24
|
Posted: Sun Feb 21, 2010 4:55 am Post subject: How can clicking an ahk trigger a totally different ahk? |
|
|
i presented this problem a while back and nobody really could seem to answer so i just worked around it, but now i saw it again and it reminded me how much it bugs me. hopefully someone can shed light on what's happening.
here it is.
let's say i have
'test 1.ahk'
the script is --> msgbox this is ahk 1
then i compile it to 'test 1.exe'
then if i create 'test 1 something new.ahk'
script is --> msgbox this should be the new one
when i click on the latter, it always triggers the former exe.
its like my computer is looking to see if any 'exe' starts with the same file name pattern as the ahk i'm clicking and then runs that exe instead.
this is a problem because i many times will have a starting, main script in some area like music mangement or such, and then from there, i might have many side, minor scripts whose names are derivatives of the first name.
well, if i have compiled any of them, it can lead to all sorts of problems.
thanks for considering. |
|
| Back to top |
|
 |
None
Joined: 28 Nov 2009 Posts: 3086
|
Posted: Sun Feb 21, 2010 5:04 am Post subject: |
|
|
What operating System are you using?
What Version of Ahk?
How do you complie your scripts?
I just tried what you described and could not duplicate the problem
I use Xp Sp3
Ahk Version 1.0.48.05
And I compiled using the Right Click menu |
|
| Back to top |
|
 |
Leef_me
Joined: 08 Apr 2009 Posts: 5336 Location: San Diego, California
|
Posted: Sun Feb 21, 2010 5:49 am Post subject: |
|
|
@jonj99
Not discounting None's question, try this
Create (2) all new scripts with the msgbox of your choice.
Do not copy/paste from the previous scripts.
Double-click them separately and see if they provide the expected message or tf they provide the wrong message.
Compile the 2 scripts and run the again as EXE sand see if they provide the right message or if they provide the wrong message.
Post both scripts and the results of your tests.
The reason I request this is that "let's say i have" and other phrases like that are not scripts. We can test your script and see if we can repeat your problem, but the burden is on you to provide the scripts.
It seems doubtful that Ahk would respond in this way, but I am willing to test if your script causes the same error and give feedback.
BTW, if your new scripts _do not_ act as you describe, then post the orignal scripts in a separate reply,
with comments that these are the original problem scripts |
|
| Back to top |
|
 |
jonj99
Joined: 03 Jan 2009 Posts: 24
|
Posted: Mon Feb 22, 2010 8:05 pm Post subject: |
|
|
ok, im at work now and i can't duplicate this problem. at home i'm using xp sp3 with ahk 1.0.47.6.
sorry i didn'y put code into the special code box thing here. i've never done that before but it looks easy enough to do so i'll make sure i always do that instead of the way i did it.
but the way i presented it was pretty straight forward. the script was simply what i typed
script named 'test 1.ahk'
i compiled by right clicking it i don't know any other way.
then
script named 'test 1 new.ahk'
with these examples, for some reason, when i click 'test 1 new.ahk' it triggers then 'test 1.exe'
but i did notice this smoking gun (i think).
if i change the name of the new one to 'test 1_new.ahk'
then it triggers the correct one.
it seems to be a windows issue on my computer not an ahk problem at all.
strange |
|
| Back to top |
|
 |
a_h_k
Joined: 02 Feb 2008 Posts: 626
|
Posted: Tue Feb 23, 2010 12:39 pm Post subject: |
|
|
| None wrote: | What operating System are you using?
What Version of Ahk?
How do you complie your scripts?
I just tried what you described and could not duplicate the problem
I use Xp Sp3
Ahk Version 1.0.48.05
And I compiled using the Right Click menu | Ditto
Also what is the exact path to the folder you have these in? |
|
| Back to top |
|
 |
|