Sign in to follow this  
Followers 0
Rex

move and resize folder

13 posts in this topic

Hi

I have a folder that contains shortcuts to the things i use mostly.

My problem is that when i opens the folder i has "standart" size, and possision but i want it to have an other size and pos.(200x686, placed at 1078,2)

So i tryed this command "WinMove("Shortcuts", "FolderView", 1078, 2 , 200 , 686 )" but but tyhat don't work :D can any of U tell me why

/Rex

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

this is the function form as you know

WinMove ( "title", "text", x, y [, width [, height[, speed]]])oÝ÷ ÚÊ"*.¦ëmì"Ú0ªê-+ez«¨µÊ+­ç-,¨¹Æ§æ¯zØ^Â)Ý£
®¢Û^²Ú®¢×¦¦Ü¬¢lvøzÚ2¢è¬¶h¹¹^^Â)Ý£b¶WºÚ"µÍÚ[[ÝH
    ][ÝÔÚÜÝ]É][ÝË   ][ÝÉ][ÝËL
Î

for the window title you can use the AutoIt Window Info tool

Edited by star2

[quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]

Share this post


Link to post
Share on other sites

this is the function form as you know

WinMove ( "title", "text", x, y [, width [, height[, speed]]])oÝ÷ ÚÊ"*.¦ëmì"Ú0ªê-+ez«¨µÊ+­ç-,¨¹Æ§æ¯zØ^Â)Ý£
®¢Û^²Ú®¢×¦¦Ü¬¢lvøzÚ2¢è¬¶h¹¹^^Â)Ý£b¶WºÚ"µÍÚ[[ÝH
    ][ÝÔÚÜÝ]É][ÝË   ][ÝÉ][ÝËL
Î

for the window title you can use the AutoIt Window Info tool

I'd do use the AutoIT Info, but still i can't get i to work, with or with out the "text" :D

/Rex

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I'd do use the AutoIT Info, but still i can't get i to work, with or with out the "text" :D

/Rex

Hi, does winactivate works for you on that name ? if so, can you send your whole code?

another thing, did you try to minimize and maximaize after the change took place did it worked then?

Edited by erezlevi

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I'd do use the AutoIT Info, but still i can't get i to work, with or with out the "text" :D

/Rex

The following code works fine on my machine, to move the opened folder called Wallpaper, completely off the screen of my monitor, which is only 1024 by 768:

WinMove("Wallpaper", "", 1078, 2, 200, 686)

Is your computer working okay? When is the last time you defragged and when is the last time you ever did a system recovery operation - I have to do a recovery about once a year.

I feel completely certain that the following code you posted, will not accomplish what you are trying to accomplish:

WinMove ( "title", "text", x, y [, width [, height[, speed]]])oÝ÷ ÚÊ"*.¦ëmì"Ú0ªê-¶+ez«¨µÊ+­ç-,¨¹Æ§æ¯zØ^Â)Ý£
®¢Û^²Ú®¢×¦¦Ü¬¢lvøzÚ2¢è¬¶h¹¹^rØ^Â)Ý£ b¶WºÚ"µÍÚ[[ÝH
    ][ÝÔÚÜÝ]É][ÝË  ][ÝÉ][ÝË L
Î

I'll bet that what your machine needs is cleaning the folder cache - put this in your script:

; Clear MRU folders and set Folder Cache size to 1024
RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\BagMRU")
RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\Bags")
ShellExecute("cleanmgr.exe", "c:")

Complete the Disk Cleaner utility and defrag.

Like Valik says, "Reflect, repent and reboot."

Edited by Squirrely1

Das Häschen benutzt Radar

Share this post


Link to post
Share on other sites

The following code works fine on my machine, to move the opened folder called Wallpaper, completely off the screen of my monitor, which is only 1024 by 768:

WinMove("Wallpaper", "", 1078, 2, 200, 686)

Is your computer working okay? When is the last time you defragged and when is the last time you ever did a system recovery operation - I have to do a recovery about once a year.

I feel completely certain that the following code you posted, will not accomplish what you are trying to accomplish:

WinMove ( "title", "text", x, y [, width [, height[, speed]]])oÝ÷ ÚÊ"*.¦ëmì"Ú0ªê-¶+ez«¨µÊ+­ç-,¨¹Æ§æ¯zØ^Â)Ý£
®¢Û^²Ú®¢×¦¦Ü¬¢lvøzÚ2¢è¬¶h¹¹^rØ^Â)Ý£ b¶WºÚ"µÍÚ[[ÝH
    ][ÝÔÚÜÝ]É][ÝË  ][ÝÉ][ÝË L
Î

I'll bet that what your machine needs is cleaning the folder cache - put this in your script:

; Clear MRU folders and set Folder Cache size to 1024
RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\BagMRU")
RegDelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\Bags")
ShellExecute("cleanmgr.exe", "c:")

Complete the Disk Cleaner utility and defrag.

Like Valik says, "Reflect, repent and reboot."

:P No i'm quite sure the code i posted don't work :P but how in the he.. ??!! Hmm must be FF that did fu..ed up the reply, yesterday.

To be honest, my computer runs lige sh..

I never defragt (takes to long)

I don,t use sys rec. one of the first things i deactivates when i installs Xp ;) how ever i do use Ghost :P

My shortcut folder is located on a Citrix server at work, and i have no acces to the registry (not even thru the script)

But but, i find out why the code did't work ;) the test folder i created had all small letters, but the script looked for a Capitaliced S, and thats why it'd work...

I'm realy realy sory to have taken up your time on this :D

/Rex

Share this post


Link to post
Share on other sites

Hi, does winactivate works for you on that name ? if so, can you send your whole code?

another thing, did you try to minimize and maximaize after the change took place did it worked then?

It was the whol code i posted :P

And winactivate did't work either, but as stated in my perv. post i findeout why :D

/Rex

Share this post


Link to post
Share on other sites

Rex - You absolutely must defrag at least 6 times a year !

I defrag at least twice a month.

If you have never run cleanmgr.exe on drive c: since you bought the computer, it is running very slowly.


Das Häschen benutzt Radar

Share this post


Link to post
Share on other sites

Rex - You absolutely must defrag at least 6 times a year !

I defrag at least twice a month.

If you have never run cleanmgr.exe on drive c: since you bought the computer, it is running very slowly.

The reason my pc is fu...d up is that i install lots of programs found on the www, so i can test them, see if the are usefull for my customors (or my self)

allso due to the tragedy that happent to my GfX it deade, so i had to buy a new one, so i did but i had to install a nother until the one i ordrer arryved so currently my sys has 3 difrent gfx drivers installed.

I have to tested 4 difrent Firewalls, one almost killede my sys totaly (OnlineAmor) had to boot on my PE disk to remove it :D

But still i never ever defragts, i don't have the time (takes 6-8 houers) i have over 600Gb data on my drives (4 hd's).

And the only reason you have to defragt is to "put" the data togeter alowing the sys to finde the data faster - but data only gets spread arown if you delete lots of files leaving empty spaces on the HD.

And yes defragting Drive C maby speeds up the sys, but there at many other ways to do that, fix the size of your pagefile, moving the page file to a difrent partition, add more pagefiles ans...

But thx for the suggestion :P

/Rex

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Oh, you must be a rich kid. You can just throw away computers that do not work right.

Maybe since you have all that drive space, just put all your data files on other drives, and have only the system files and all the folders that came with your machine on drive C: and then it will not take very long, only 30 minutes, to clean and defrag drive C:

If a system drive is never defragged, it becomes almost un-usable after a year, and here is where rich kids can just chunk it and buy a new computer. :D

Edited by Squirrely1

Das Häschen benutzt Radar

Share this post


Link to post
Share on other sites

Oh, you must be a rich kid. You can just throw away computers that do not work right.

Maybe since you have all that drive space, just put all your data files on other drives, and have only the system files and all the folders that came with your machine on drive C: and then it will not take very long, only 30 minutes, to clean and defrag drive C:

If a system drive is never defragged, it becomes almost un-usable after a year, and here is where rich kids can just chunk it and buy a new computer. :D

My sys newer lives a year, i think max lifetime for my sys is 3-4 month, then i reinstall xp (Ghost).

But the lifetime of a sys depends on theway it's being used... and how it is se up.

I only have system data on my C drive, programs ans. but this still gives me about 100 GB of data to defragt :P

As i wrote i have 4 Drives the are spilted into 8 diffrent partitions, and all my "other" data is spilted over the remaning 7 parts...

/Rex

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

Okay Rex, I was just trying to help. On my OEM edition of Windows XP, there are only few gigabytes of data to the whole system. I for my part, would most certainly not want to have to try to organize a terabyte of script data files.

Edited by Squirrely1

Das Häschen benutzt Radar

Share this post


Link to post
Share on other sites

Okay Rex, I was just trying to help. On my OEM edition of Windows XP, there are only few gigabytes of data to the whole system. I for my part, would most certainly not want to have to try to organize a terabyte of script data files.

Thrue :D

But some og the programs i have installed, are verry large.

But still thx

/Rex

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0