Jump to content
Sign in to follow this  

Dllcall again

Recommended Posts


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 Boolean


what am i doing wrong please

i have

DllCall("user32.dll","int"," MoveWindow","hwnd",$gui,"int",200,"int",200,"int",400,"int",500,"int",true)

please assist.

Share this post

Link to post
Share on other sites

Just remove that space in " MoveWindow" :)

Broken link? PM me and I'll send you the file!

Share this post

Link to post
Share on other sites

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")

$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)

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.