Mauszeiger auf einen markierten Eintrag bewegen

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Mauszeiger auf einen markierten Eintrag bewegen

Re: Mauszeiger auf einen markierten Eintrag bewegen

by WPLPHSS » 12 Jun 2023, 01:24

Vielen Dank für die Antwort und den Lösungsansatz. Ich schaue, ob ich es hinbekommen werde.

Re: Mauszeiger auf einen markierten Eintrag bewegen

by garry » 09 Jun 2023, 13:48

ein Beispiel mit Chrome-browser > search for a word and then rightclick

Code: Select all

;- example for chrome > search for a word and then rightclick
setworkingdir,%a_scriptdir%
setbatchlines -1
CoordMode,Pixel
Coordmode,mouse
rgb1:= 0xFF9632      ;-  orange color from founded marked word (ctrl+f) in browser chrome / check color with window spy
;-
word:="Ich kann nunmehr die markierte Zeile"
;-
xx:=100,WA:=A_screenwidth,HA:=A_screenheight
x1:=(WA*0)/xx,y1:=(HA*0)/xx,w1:=(WA*80)/xx,h1:=(HA*90)/xx      ;- example , search in this aera in percent > x1=0 y1=0 w1=80% h1=90%
run,https://www.autohotkey.com/boards/viewtopic.php?f=9&t=118372
return
;----------------------
$F8::
send,^f                           ;- search in browser chrome for "%word%"
send,%word%{enter}              
sleep,900
 PixelSearch,x,y,x1,y1,w1,h1, rgb1, 5, Fast RGB  ;- search for color rgb1
 If ErrorLevel=0
  {
  x2:=x+5,y2:=y+5
  mousemove,%x2%,%y2%,0
  sleep,500
  MouseClick right
  tooltip,Right-CLICKED %word%
  sleep,1900
  tooltip
  }
return
;-----------
esc::exitapp
;===========================================================
oder , klicke auf markierten Text

Code: Select all

;- click on marked text
setworkingdir,%a_scriptdir%
setbatchlines -1
CoordMode,Pixel
Coordmode,mouse
;rgb1:= 0xFF9632
rgb1:= 0x318EFD    ;- blue color for marked text
xx:=100,WA:=A_screenwidth,HA:=A_screenheight
x1:=(WA*0)/xx,y1:=(HA*0)/xx,w1:=(WA*80)/xx,h1:=(HA*90)/xx      ;- search in this aera
run,https://www.autohotkey.com/boards/viewtopic.php?f=9&t=118372
return
;----------------------
$F8::
clipboard= 
Send ^c
sleep,900
 PixelSearch,x,y,x1,y1,w1,h1, rgb1, 5, Fast RGB  ;- search for color rgb1
 If ErrorLevel=0
  {
  x2:=x+5,y2:=y+5
  ;mousemove,%x2%,%y2%,0
  ;sleep,500
  click,%x2% %y2%
  msgbox, 262208, ,CLICKED on > "%clipboard%"`n X2=%x2% and Y2=%y2%
  clipboard=
  }
return
;-----------
esc::exitapp
;===========================================================

Mauszeiger auf einen markierten Eintrag bewegen

by WPLPHSS » 09 Jun 2023, 01:49

Guten Morgen,

Der Softwareanbieter hat ein neues neues Update herausgebracht. Ich kann nunmehr die markierte Zeile mit der rechten Maustaste nur noch öffnen, wenn sich der Mauszeiger auf der Zeile befindet.

Hiermit klappt es nicht.

Code: Select all

Sleep, 300
MouseClick right, A_CaretX, A_CaretY
Wie bekomme ich den Mauszeiger ohne Koordinaten auf die markierte Zeile?

Top