Nologic Posted October 12, 2005 Posted October 12, 2005 I'm currently working a script to adjust settings to the WinXP taskbar and start menu...over all I'm crusing along fine...how ever I've hit a sticky spot, and thats being able to drag the taskbar to different locations about the desktop...programmically. Thus far none of the code I've written seems to be doing the trick...at all...I'm probably missing some thing some where thats dead simple. Also to add to things I've noticed that @DesktopWidth & likely @DesktopHeight as well reports only the values for the current monitor and not the whole of the desktop....should one be running more than one monitor...so placement would have to work off the array of : $size = WinGetPos ( "Program Manager" ) $size[2] ; Width $size[3] ; Height Well if any one has some time to burn the help would be most welcome. I'll keep bashing my head in all the same. Well thanks to all that take the time to read\reply to this. _QuickLaunch_Start_Menu.txt
Valuater Posted October 12, 2005 Posted October 12, 2005 Sleep(5000) WinActivate("Windows Task Manager") WinMove("Windows Task Manager", "", 0, 0, 200, 200) 8)
Nologic Posted October 12, 2005 Author Posted October 12, 2005 hmm for some reason that code not doing the trick...maybe its my system.
Valuater Posted October 12, 2005 Posted October 12, 2005 you know you need to run the task manager first right?? im on Windows Xp 8)
Nologic Posted October 12, 2005 Author Posted October 12, 2005 Heh well I was expecting that to be some kind of weird hook into the taskbar. Moving general windows isn't the problem...its moving the taskbar that is.
Valuater Posted October 12, 2005 Posted October 12, 2005 this move my task"Bar" on win xp ;sleep(4000) ;$pos = MouseGetPos() ;MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1]) MouseMove(766,753); ($pos[0],$pos[1]); for testing MouseDown ( "left" ) MouseMove(0,0) MouseUp("Left") 8)
Nologic Posted October 12, 2005 Author Posted October 12, 2005 (edited) Well that works...I had code along those lines prior...but for some reason it didn't take. Well I guess I'll just have to see how far I can go now that I got a working starting point finally. Well thanks for your time and effort on this. hehe better test codeOpt ("WinTitleMatchMode", 4) $z = 0 $size = WinGetPos ( "classname=Shell_TrayWnd" , "Running Applications" ) $x = $size[0] + $size[2] / 2 $y = $size[1] + $size[3] / 2 If $size[1] = @DesktopHeight Then $z = 0 + $size[3] / 2 If $size[1] = 0 Then $z = @DesktopHeight - $size[3] / 2 MouseClickDrag ( "Left" , $x , $y , $x , $z , 2 ) Oh if you got some time...I got a odd hang in the orginal script when it goes to apply the changes...mainly when dealing with classic...maybe you'll spot the error...hehe another hiccup in this script. Edited October 12, 2005 by Nologic
Valuater Posted October 12, 2005 Posted October 12, 2005 Well that works...Well thanks for your time and effort on this. Oh if you got some time...I got a odd hang in the orginal script when it goes to apply the changes...mainly when dealing with classic...maybe you'll spot the error...hehe another hiccup in this script. Your Welcome.... glad i could helpI am not real sharp on the classic stuff... but i would suggest you make a new post that others will look at alsogood luck8)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now