Jump to content

Recommended Posts

  • Moderators
Posted (edited)

NO sir mouseclickdrag("left",768,548,0,0) almost works...it never loses focus also help me copy 75% of document...I dont think its impossible to select the whole content...

Alos by decreasing the mouse speed i was able to copy almost 85-90%....

mouseclickdrag("left",768,548,0,0,90)

my idea is somehow get the coordinates when we press END key and Home key...pass this coordiantes to mouseclickdrag....

mouseclickdrag("left',X-end,Y-end,X-Home,Y-home)

Anyone can implement this???

And FYI,u can even give negative co-ordiantes for x & y!!!

Like mouseclickdrag("left',768,546,-1,-1)

Look, just explain why you need it to be mouseclickdrag... it seems so inefficient.

Another issue, you say "we"... now you've gone from being a handicapped individual to more than one?

Here's a suggestion... And the only one I will give, to show you why I think MouseClickDrag is inefficient for what you are doing.

Run this code below by itself:

ShellExecute(@ProgramFilesDir & '\AutoIt3\AutoIt3.chm')
ShellExecute(@ProgramFilesDir & '\Microsoft Office\OFFICE11\WINWORD.EXE')
$sCHMTitle = 'AutoIt Help'
$sCHMCtrlID = 'Internet Explorer_Server1'
$sDocTitle = 'Document1 - Microsoft Word'
$sDocCtrlID = '_WwG1'
WinWait($sCHMTitle)
WinWait($sDocTitle)

_ControlSendSleep($sCHMTitle, '', $sCHMCtrlID, '^a')
_ControlSendSleep($sCHMTitle, '', $sCHMCtrlID, '^c')
_ControlSendSleep($sDocTitle, '', $sDocCtrlID, '^v')

Func _ControlSendSleep($sTitle, $sText, $sCtrlID, $sSend, $iMode = 0)
    ControlFocus($sTitle, $sText, $sCtrlID)
    ControlClick($sTitle, $sText, $sCtrlID)
    ControlSend($sTitle, $sText, $sCtrlID, $sSend, $iMode)
    Return Sleep(100)
EndFunc

Although, if this was for my lively hood, I'd take BigDod's advice.

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted (edited)

YAh BEERMAN,right click is so simple...i HAVE implemented it...

MouseClick("right",220,80)
;Find the position of the select all in the popup menu
mouseClick("left",250,130)

AND MR.BIGDOG U R WORSE THAN ME...DONT EVEN KNOW HOW TO IMPLEMENT RIGHT CLICK HUH???

Edited by PARRYHOTTER
Posted

YAh BEERMAN,right click is so simple...i HAVE implemented it...

MouseClick("right",220,80)
;Find the position of the select all in the popup menu
mouseClick("left",250,130)

AND MR.BIGDOG U R WORSE THAN ME...DONT EVEN KNOW HOW TO IMPLEMENT RIGHT CLICK HUH???

I am in tears of laughter.... :whistle:
Posted

YAh BEERMAN,right click is so simple...i HAVE implemented it...

MouseClick("right",220,80)
;Find the position of the select all in the popup menu
mouseClick("left",250,130)

AND MR.BIGDOG U R WORSE THAN ME...DONT EVEN KNOW HOW TO IMPLEMENT RIGHT CLICK HUH???

If you are going to SHOUT at me at least get my name right. Now you have got what you think you need parhaps you will dissapear.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Posted (edited)

Mr.Smoke ,the Code u sent is absolutely Fantastic,Majestic,Superb....

but but just a small problem..

...Its not Working....

For god sake test it in ur system before typing such crap codes...

Edited by PARRYHOTTER
  • Moderators
Posted (edited)

Mr.Smoke ,the Code u sent is absolutely Fantastic,Majestic,Superb....

but but just a small problem..

...Its not Working....

For god sake test it in ur system before typing such crap codes...

You're a moron... You don't think I did test it? ... pfft ... sure as hell hope you don't need any real help dip shit. <<< Report that! Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

Mr.Smoke ,the Code u sent is absolutely Fantastic,Majestic,Superb....

but but just a small problem..

...Its not Working....

For god sake test it in ur system before typing such crap codes...

Seeing as you have now gotten so clever I dont think you will need to come back for anymore help.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Guest
This topic is now closed to further replies.
×
×
  • Create New...