Marlo Posted October 12, 2008 Posted October 12, 2008 Hello fellow scripters. So i've almost finished my app but i have a problem!! While Sleep(500) If $D = True Then If Not WinActive("Rapidshare Downloader") Then $OldWin = 1 EndIf If WinActive("Rapidshare Downloader") And $oldWin = 1 Then $WinList = WinList("RapidLoader") For $I = 1 To $WinList[0][0] WinActivate($WinList[$I][1]) Next WinActivate("Rapidshare Downloader") $OldWin = 0 EndIf EndIf WEnd So this is the loop on my GUI. When the gui is activated it will then activate 10 other windows and then finally activate itself again. Now this kind of works but its got some problems. 1) its slow 2) not instant Does anyone know of a better way to bring 10 windows to the foreground just behind the main window? And just so you know the 10 other windows are not in the script. Click here for the best AutoIt help possible.Currently Working on: Autoit RAT
PsaltyDS Posted October 13, 2008 Posted October 13, 2008 Hello fellow scripters. So i've almost finished my app but i have a problem!! While Sleep(500) If $D = True Then If Not WinActive("Rapidshare Downloader") Then $OldWin = 1 EndIf If WinActive("Rapidshare Downloader") And $oldWin = 1 Then $WinList = WinList("RapidLoader") For $I = 1 To $WinList[0][0] WinActivate($WinList[$I][1]) Next WinActivate("Rapidshare Downloader") $OldWin = 0 EndIf EndIf WEnd So this is the loop on my GUI. When the gui is activated it will then activate 10 other windows and then finally activate itself again. Now this kind of works but its got some problems. 1) its slow 2) not instant Does anyone know of a better way to bring 10 windows to the foreground just behind the main window? And just so you know the 10 other windows are not in the script. Use _WinAPI_SetWindowPos(), with the $hAfter parameter set to the window you want to set the position just UNDER in the Z-order. Red this topic for more information: Z-Order, how to restore a window's position? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
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