AutoHotkey Community

It is currently May 27th, 2012, 5:14 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 58 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Problem still?
PostPosted: April 29th, 2010, 12:33 am 
Offline

Joined: November 22nd, 2009, 1:54 am
Posts: 28
Many thanks for that however there is a problem that the F:\G_drive_backup does not move in to position 3, it is staying close to the Left Hand side and the D:\ directory is almost in position 2 on 3 occurrences except one which is aligned ok?

I tried changing
Code:
 WinMove, G_drive_backup\m,, A_ScreenWidth *2/4, 0


To

Code:
WinMove, F:\G_drive_backup\m,, A_ScreenWidth *2/4, 0


To no avail?

My slightly modified code that I tried to no avail -

Code:
Loop, 4 {
    Run, explorer.exe /n`,C:\m,,
    Sleep, 2000
    WinMove, m,,0, 0, A_ScreenWidth /4
    Run, explorer.exe /n`,D:\,,
    Sleep, 2000
    WinMove, D:\,,A_ScreenWidth /4, 0, A_ScreenWidth /4
    Run, explorer.exe /n`,F:\G_drive_backup\m,,
    Sleep, 2000
    WinMove, F:\G_drive_backup\m,, A_ScreenWidth *2/4, 0, A_ScreenWidth/4
    Run, explorer.exe /n`,G:\m,,
    Sleep, 2000
    WinMove, m,,% A_ScreenWidth *3/4, 0, A_ScreenWidth/4
}



IF I want less that 4 instances of explorer, say only 1, does the Loop command need to be there at the start and say Loop 1, or do I get rid of it?


Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Problem still?
PostPosted: April 29th, 2010, 1:33 am 
Online

Joined: April 8th, 2009, 7:49 pm
Posts: 6073
Location: San Diego, California
Composer wrote:
Many thanks for that however there is a problem that the F:\G_drive_backup does not move in to position 3, it is staying close to the Left Hand side and the D:\ directory is almost in position 2 on 3 occurrences except one which is aligned ok?

---8<---8<---8<---8<---8<---8<---8<---8<---8<

IF I want less that 4 instances of explorer, say only 1, does the Loop command need to be there at the start and say Loop 1, or do I get rid of it?


1. Sorry about the typo, it was in your original script.
2. The Winmove command may be "seeing" the other identically named windows, and so missing the new one.
3. changing the loop can be done either way, but if you only want the one set then deleting the "loop" command and the { } is better from readability.
4. If you reduce the set of windows to just one then all windows should obey the Winmove commands given.

If you don't mind my asking, why do you want 4 copies of explorer with the same path open at the same time?
This appears to inviting disaster and confusion.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Only 1 instance
PostPosted: April 29th, 2010, 1:41 am 
Offline

Joined: November 22nd, 2009, 1:54 am
Posts: 28
I actually only require the one instance of explorer for each drive on Computer 2.

C:\m, D:\, F:\G_drive_backup\m, G:\m.

So that Code would be?

Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Only 1 instance
PostPosted: April 29th, 2010, 1:57 am 
Online

Joined: April 8th, 2009, 7:49 pm
Posts: 6073
Location: San Diego, California
Composer wrote:
So that Code would be?

It would be found by reading point 3 that I posted.
And using that information to modify the script that you last posted.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Why this attitude?
PostPosted: April 29th, 2010, 2:09 am 
Offline

Joined: November 22nd, 2009, 1:54 am
Posts: 28
I greatly appreciate your help I really do.

I can not understand however why you are forcing me to work all this out without simply providing the Code I require?

I would virtually guarantee the next time I need a Code like this would be some time in the distant future?

For whatever reason I do not find working this out easy at all and that's probably because I have a lot more to contend with currently.

I have tried repeatedly and spent wasted hours already.

If you don't want to just give me the 2nd Code up front, then I thank you for the first Code and I'll go without the 2nd until such time I can have the wherewithall to spend hours again trying to figure it all out.

Cheers!


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Almost there
PostPosted: April 29th, 2010, 8:31 am 
Offline

Joined: November 22nd, 2009, 1:54 am
Posts: 28
I decided to give it one more concerted effort.

It is almost correct now -

Code:

Loop, 4 {
    Run, explorer.exe /n`,C:\m,,
    Sleep, 2000
    WinMove, m,,0, 0, A_ScreenWidth /4
    Run, explorer.exe /n`,D:\,,
    Sleep, 2000
    WinMove, D:\,,A_ScreenWidth *1/4, 0, A_ScreenWidth /4
    Run, explorer.exe /n`,F:\G_drive_backup\m,,
    Sleep, 2000
    WinMove, m,, A_ScreenWidth *2/4, 0, A_ScreenWidth/4
    Run, explorer.exe /n`,G:\m,,
    Sleep, 2000
    WinMove, m,,% A_ScreenWidth *3/4, 0, A_ScreenWidth/4
}


The only thing now wrong is that the D:\ windows are not perfectly set at the Top of the Screen but are sitting slightly below it, although all positioned horzontally in its correct position. (2 of 4)

For 1 instance of each directory I completely removed the Loop 4 command and all is fine except D:\ is sometimes correctly aligned and sometimes slightly off correct position?

Cheers!


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Script error?
PostPosted: December 23rd, 2010, 10:41 am 
Offline

Joined: November 22nd, 2009, 1:54 am
Posts: 28
Hello,

I recently had my computer stolen and eventually returned but I had to have it all changed and configurations are now different?

I have actually managed to get most modified fine except I am now getting 9 instances of the scriptural_data windows when I only need 3 i.e. 1 x C:\scriptural_data, 1 x E:\scriptural_data & 1 x F:\scriptural_data and each instance 1/3rd width across the screen?

What am I doing wrong?

Loop, 3 {
Run, iexplore.exe, ,Max
}
Sleep, 5000
Run, msimn.exe, ,Min
Run, C:\sm_bible\smw.exe,C:\sm_bible, ,Min
; Run, C:\program files\Commander\efcw.exe, ,Min
Run, C:\pod\pod.exe, C:\pod\,Min
Run, C:\Program Files\NET Bible First Edition\netbible.chm, ,Min
Run, C:\Documents and Settings\Robert\Application Data\Microsoft\Internet Explorer\Quick Launch, ,Min
Sleep, 5000
Loop, 3 {
Run, explorer.exe /n`,C:\scriptural_data,,
Sleep, 2000
WinMove, scriptural_data,,0, 0, A_ScreenWidth /3
Run, explorer.exe /n`,E:\scriptural_data,,
Sleep, 2000
WinMove, scriptural_data,, A_ScreenWidth /3, 0, A_ScreenWidth/3
Run, explorer.exe /n`,F:\scriptural_data,,
Sleep, 2000
WinMove, scriptural_data,,% A_ScreenWidth *2/3, 0, % A_ScreenWidth/3
}

Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2010, 12:15 pm 
Offline

Joined: October 15th, 2007, 3:10 pm
Posts: 790
Location: England
in the second half of your code, you are opening the 3 scriptural windows 3 times each in a loop (making a total of 9 windows):
Code:
Loop, 3 {
Run, explorer.exe /n`,C:\scriptural_data,,
Sleep, 2000
WinMove, scriptural_data,,0, 0, A_ScreenWidth /3
Run, explorer.exe /n`,E:\scriptural_data,,
Sleep, 2000
WinMove, scriptural_data,, A_ScreenWidth /3, 0, A_ScreenWidth/3
Run, explorer.exe /n`,F:\scriptural_data,,
Sleep, 2000
WinMove, scriptural_data,,% A_ScreenWidth *2/3, 0, % A_ScreenWidth/3
}


I suggest you remove the loop (in red).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2010, 1:03 pm 
Offline

Joined: November 22nd, 2009, 1:54 am
Posts: 28
That's great thanks,

Believe it or not after a bit of thought I actually experimented and got it to work but I didn't delete your red I changed Loop value to 1.

Was that poor programming?

One more thing please, in the ahk - exe compiler it says to type N/A in the two bottom fileds to avoid accidental decompiling however when I try to type in there I get vertical lines and not text?

Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2010, 1:37 pm 
Offline

Joined: October 15th, 2007, 3:10 pm
Posts: 790
Location: England
Quote:
Was that poor programming?


Well... a loop that only runs once is not a loop... you may as well remove it.

Quote:
One more thing please, in the ahk - exe compiler it says to type N/A in the two bottom fileds to avoid accidental decompiling however when I try to type in there I get vertical lines and not text?


Not sure why this isn't working for you. Are you using AHK Classic/Basic or AHK_L or something else? It won't prevent decompiling anyway, it will just make it slightly more difficult.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: December 24th, 2010, 12:12 am 
Offline

Joined: November 22nd, 2009, 1:54 am
Posts: 28
I am just using the standard AutoHotkey program I downloaded?

Many thanks for your help!


Report this post
Top
 Profile  
Reply with quote  
 Post subject: This Thread
PostPosted: August 27th, 2011, 6:45 pm 
Offline

Joined: August 14th, 2011, 8:31 pm
Posts: 69
Location: Nova Scotia, Canada
This thread is the perfect example of a jerk who dosen't wanna learn anything, asking for free hand outs.....

_________________
ImageImage


Twitter: http://twitter.com/NictraSavios
Tumblr: http://nictrasavios.tumblr.com


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: This Thread
PostPosted: August 28th, 2011, 6:57 am 
Offline

Joined: November 22nd, 2009, 1:54 am
Posts: 28
NictraSavios wrote:
This thread is the perfect example of a jerk who dosen't wanna learn anything, asking for free hand outs.....

Your being that jerk, what do you want to learn about not being a jerk any longer, ask us and we'll try to help you then again us trying to break your life long problems won't be easy unless you show you are prepared to really want to stop being a jerk.

Put it in writing for us in your next post and we'll know you are serious to at least try by your sincerely and humbly asking for our assistance -

e.g. I NickSavios the current jerk & jerkoff, wish to seriously get help from Composer and others here to help me NickSavios stop being a jerk / jerkoff and longer and am willing to make a genuine effort.

Signed NickSavios!

Off ya go jerkoff and I'll let you know IF I see any improvements in your attitude!

Best of luck!


Last edited by Composer on August 28th, 2011, 7:37 am, edited 1 time in total.

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

All times are UTC [ DST ]


Who is online

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