Jump to content

Scroll window


Recommended Posts

Hi people...

Maybe somebody can help me to resolve my issue...

I need to sets scroll bar in VNC window in some position, but i can't understand how can I do it... I tried to use API functions but don't know how...

If you don't know VNC this is the remote control program... And I open this window from my GUI, place it in some position on desktop, change size of it, but can't scoll this window... :-(

Please, help me...

Gui just run .vnc file and when open window of remote machine it change position of it and change size...

position and size meanings GUI save when user push the button and then restore its in future...

i would like to change not only position and size, i need change scroll bar position too...

there are a big resolution on remote machine, but i need to watch only one not so big spot...

i've tried to use following API function:

$han = ControlGetHandle ("ob2-1", "", "")
$SB_VERT = 1
$SB_HORZ = 0
DllCall("user32.dll", "int", "SetScrollPos", "hwnd", $han, "int", $SB_VERT, "int", 300, "int", 1)
DllCall("user32.dll", "int", "SetScrollPos", "hwnd", $han, "int", $SB_HORZ, "int", 100, "int", 1)
DllCall("user32.dll", "int", "UpdateWindow", "hwnd", $han)

I know that I do something wrong, but if someone can tell me where I can find examples for that or can help me to write this code correct... Oh, that will be nice...

Edited by wwwkostas
Link to comment
Share on other sites

$han = ControlGetHandle ("ob2-1", "", "")
$SB_VERT = 1
$SB_HORZ = 0
DllCall("user32.dll", "int", "SetScrollPos", "hwnd", $han, "int", $SB_VERT, "int", 300, "int", 1)
DllCall("user32.dll", "int", "SetScrollPos", "hwnd", $han, "int", $SB_HORZ, "int", 100, "int", 1)
DllCall("user32.dll", "int", "UpdateWindow", "hwnd", $han)

I know that I do something wrong, but if someone can tell me where I can find examples for that or can help me to write this code correct... Oh, that will be nice...

Are you sure $han is a handle to the scroll bar control after using ControlGetHandle() like that? How did you test it?

:)

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
Link to comment
Share on other sites

Are you sure $han is a handle to the scroll bar control after using ControlGetHandle() like that? How did you test it?

:)

No, I'm not sure...

It get handle of this window but I'm not sure that this is what I need...

Maybe you can give me advise how can I resolve my issue?

I wrote on this forum already 3 times... And still can't get answer...

Nobody can help me... All guys just asking me additional questions...

Very sad...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...