Sign in to follow this  
Followers 0
Aceguy

Dllcall again

5 posts in this topic

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

http://www.pinvoke.net/default.aspx/user32/Movewindow.html

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

lol

That happens too sometimes.


♡♡♡

.

eMyvnE

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

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