Aceguy Posted December 14, 2008 Posted December 14, 2008 i want to learn how to change.Shared Function MoveWindow(ByVal hWnd As IntPtr, ByVal x As Integer, ByVal y As Integer, ByVal nWidth As Integer, _ ByVal nHeight As Integer, ByVal bRepaint As Boolean) As Booleanhttp://www.pinvoke.net/default.aspx/user32/Movewindow.htmlwhat am i doing wrong pleasei haveDllCall("user32.dll","int"," MoveWindow","hwnd",$gui,"int",200,"int",200,"int",400,"int",500,"int",true)please assist. [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock
monoceres Posted December 14, 2008 Posted December 14, 2008 Just remove that space in " MoveWindow" Broken link? PM me and I'll send you the file!
trancexx Posted December 14, 2008 Posted December 14, 2008 lol That happens too sometimes. ♡♡♡ . eMyvnE
Aceguy Posted December 14, 2008 Author Posted December 14, 2008 so, i know there is a lot of sliding guis out there, but wanna make it simple for me.... is this the best way, (without flicker) $PID = Run("notepad.exe") WinWait("Untitled - Notepad") $hWin = WinGetHandle("Untitled - Notepad") Sleep(2000) $pos=WinGetPos("Untitled - Notepad") for $y=1 to 500 $Test = DllCall("user32.dll", "int", "MoveWindow", "hwnd", $hWin, "int",$pos[0], "int",$pos[1], "int", $pos[2]+$y, "int", $pos[3], "int", True) Next [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock
AdmiralAlkex Posted December 14, 2008 Posted December 14, 2008 depending on what "slide"-effect you are after you may want to use AnimateWindow which is a very cool (and cpu-friendly) effect .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
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