Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 15:21

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Implementing a ControlClickDrag in Autoit

Discussion on Implementing a ControlClickDrag in Autoit within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 20
Join Date: Apr 2014
Posts: 111
Received Thanks: 0
Implementing a ControlClickDrag in Autoit

I need help implementing a ControlClickDrag in Autoit. Basically a MouseClickDrag but without moving the users mouse.

If anybody knows how I could implement this in Autoit or with Windows API calls please contact me and I will compensate you for your time.

Add me on skype is preferable for contact: ohhungry
ohhungry is offline  
Old 02/15/2017, 17:33   #2



 
xShizoidx's Avatar
 
elite*gold: 0
The Black Market: 283/0/0
Join Date: Feb 2011
Posts: 1,351
Received Thanks: 410
Do you mean something like this ?

draggable.html
Code:
<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>jQuery UI Draggable + Sortable</title>
    <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">

    <style>
        ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            margin-bottom: 10px;
        }
        li {
            margin: 5px;
            padding: 5px;
            width: 150px;
            border: 2px solid black
        }
    </style>
    <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
    <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
    <script>
        $(function() {
            $("#sortable").sortable({
                revert: true
            });
            $("ul, li").disableSelection();
        });
    </script>
</head>

<body>



    <ul id="sortable">
        <li class="ui-state-default">Item 1</li>
        <li class="ui-state-default">Item 2</li>
        <li class="ui-state-default">Item 3</li>
        <li class="ui-state-default">Item 4</li>
        <li class="ui-state-default">Item 5</li>
    </ul>

</body>

</html>

main.au3
Code:
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <Array.au3>

_IEErrorHandlerRegister()
$oIE = _IECreateEmbedded()
$width = 200
$height = 270
$GUI = GUICreate("Test Drag", $width, 350, -1, -1, $WS_POPUP)
$GUIActiveX = GUICtrlCreateObj($oIE, 0, 0, $width, $height)
$weiter = GUICtrlCreateButton("weiter", 60, 304, 75, 25)
$pfad = StringReplace("file:///"& @ScriptDir &"/draggable.html","\","/")
_IENavigate($oIE, $pfad)
$oIE.document.body.scroll = "no"
$oIE.document.body.style.border = "0px"

GUISetState()

  While 1
	  sleep(1)
        $Msg = GUIGetMsg()
        Select
			Case $Msg = $weiter
				Local $liElements = _IETagNameGetCollection($oIE, "li")
				$counter = 0
				For $liElement In $liElements

					$counter = $counter + 1
					MsgBox(64,"Reihenfolge",$counter&" Element : "&$liElement.innerText)
				Next
        EndSelect
  WEnd
I used the JQuery UI example and load the .html file as embedded Webcontrol.
xShizoidx is offline  
Reply


Similar Threads Similar Threads
Need Help On Implementing The Intersection Function.
04/16/2013 - C/C++ - 0 Replies
I Made The Union Function For AUB But I've Been Having Trouble To Code The Function To Find Intersection A|B Base On The Union Function. Could Someone Help Please? This Is The Code To Find The Union From Two Sets A & B. #include <iostream> using namespace std; template<class T> class OLL {
Implementing blowfish cyphor.
03/03/2013 - CO2 Private Server - 3 Replies
Hey everyone! I've been sitting here for hours attempting to convert my 5017 to accept blowfish. Some guidance and or help would be muchly be appreciated. Anyone ever done this?
Problem implementing new maps.
02/16/2013 - Metin2 Private Server - 1 Replies
Hi epvp, I've problem implementing some new map, when I implement all good, I reboot and server like starts normally but.. when I try to enter.. error connecting. In my syserr of the ch nothing, just in db and auth. Auth SYSERR: Feb 14 21:15:57 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down. SYSERR: Feb 14 21:17:06 :: socket_connect: HOST localhost:15000, could not connect. DB SYSERR: Feb 14 21:17:05 :: Start: TABLE_POSTFIX not configured use default
implementing quests in sro
01/04/2012 - SRO Private Server - 2 Replies
I would like to make my own quests in sro, but i don't know whit what i should begin with. Got some big ideas with really cool feature's, that im probably willing to share them with you when they are ready. If i succeed in what i want to do, the first server that will have this new type of quests will be DuckRoad. Thank you.
Implementing Game Hacks
12/30/2006 - Conquer Online 2 - 9 Replies
Okay well don't im really new to this but what exactly do you do with the RAR file when you download it? thanks for your replies in advanced =D



All times are GMT +1. The time now is 15:22.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.