chercher le positionnement d un texte et clicker

Poser vos questions de programmation en AutoHotkey
simo311
Posts: 10
Joined: 11 Sep 2019, 10:50

chercher le positionnement d un texte et clicker

16 Sep 2019, 08:29

Bonjour,

j ai besoin de votre aide et expertise d urgence SVP,

j ai besoin d un script Ahk, ou dans une fenêtre il cherche un texte spécifie et le Click

merci d avance de votre aide, j ai bien chercher mais je n arrivai pas à une solution

merci encore
keke

Re: chercher le positionnement d un texte et clicker

16 Sep 2019, 08:43

Je ne m'y connais pas beaucoup en AHK, et comme le forum semble peu réactif, je ne peux te conseiller que de faire un script qui fait CTRL + F (recherche) et CTRL + C (copier) si c'est ce que tu veux faire.
Si le texte est sur une image, il te faudra un script qui fait OCR par exemple...
simo311
Posts: 10
Joined: 11 Sep 2019, 10:50

Re: chercher le positionnement d un texte et clicker

16 Sep 2019, 09:00

ohhh keke ,j aurai aimé que ce soit si simple qu un CTRL F
mais il me fut un code comme recherche V dans une fenêtre Windows !
et t as raison le forum et peu reacif en ce moment
User avatar
joedf
Posts: 8960
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: chercher le positionnement d un texte et clicker

16 Sep 2019, 13:15

Allo!
Je recommende d'essayer la commande ControlClick, voici des examples:

Code: Select all

ControlClick, OK, Titre de la fenêtre windows  ; Clicker the OK button
ControlClick, x55 y77, WinTitle  ; Clicker à une position spécifique
Mais sinon on a pas assez d'info pour t'aider... Sais-tu comment utiliser le Window Spy?
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
simo311
Posts: 10
Joined: 11 Sep 2019, 10:50

Re: chercher le positionnement d un texte et clicker

17 Sep 2019, 07:45

Salut,

merci énormément de votre reactivité,
oui je sais comment utiliser Windows Spy
et concernant mon problème, c est que le texte change de ligne dans ma fenêtre
ce qui veut dire il faut le positionner après lui cliquer.
j aurais aimer un script comme une rechercheV ou quelque chose comme ca

merci
User avatar
joedf
Posts: 8960
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: chercher le positionnement d un texte et clicker

17 Sep 2019, 08:41

Est-ce qu'il est possible d'avoir une capture d'écran?
Si c'est une application Windows, cette méthode est indépendante de la position :+1:

Code: Select all

ControlClick, OK, Titre de la fenêtre windows
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
simo311
Posts: 10
Joined: 11 Sep 2019, 10:50

Re: chercher le positionnement d un texte et clicker

17 Sep 2019, 15:04

oui je vous joins ici une capture
cette méthode que tu m envoi, c est quand il y a un bouton OK je pense
alors que moi c est un texte qui change de position :(
Attachments
Capture.PNG
Capture.PNG (149.22 KiB) Viewed 5840 times
User avatar
joedf
Posts: 8960
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: chercher le positionnement d un texte et clicker

17 Sep 2019, 16:01

I'll me semble que c'est un élément dans une liste (SysListView321? vérifie avec le WindowSpy) que vous voulez clicker...
Il est possible d'obtenir de l’information d'une liste de cette façon.

Code: Select all

ControlGet, ListeAvecMonTexte, List, , , Titre de la fenêtre windows
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
simo311
Posts: 10
Joined: 11 Sep 2019, 10:50

Re: chercher le positionnement d un texte et clicker

18 Sep 2019, 13:34

Merci même avec ca, ne marche pas :roll:
mais j ai trouvé une autre methode pour contourner la prob
j ai besoin de votre aide encore une fois,
comment comparer la valeur d une cellule excel a une autre value !!
meerci
User avatar
joedf
Posts: 8960
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: chercher le positionnement d un texte et clicker

18 Sep 2019, 16:53

Voici une grande liste de ce qu'on peut faire avec Excel :+1:
https://www.autohotkey.com/boards/viewtopic.php?t=63032

C'est en anglais, mais je peux t'aider avec ça :)
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
simo311
Posts: 10
Joined: 11 Sep 2019, 10:50

Re: chercher le positionnement d un texte et clicker

19 Sep 2019, 15:21

Merci beaucoup
mais pour une débutant comme moi, c est du chinois
hihih
User avatar
joedf
Posts: 8960
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: chercher le positionnement d un texte et clicker

25 Sep 2019, 09:33

Bonjour!, désolé! je pensais avoir répondu :P

Voici un exemple que j'ai copier d'ici:
https://www.autohotkey.com/boards/viewtopic.php?p=138734#p138734

Code: Select all

oExcel := ComObjCreate("Excel.Application")
oExcel.Workbooks.Open(A_Desktop "\Test\Test.xlsx") 
oExcel.DisplayAlerts := False
oExcel.ActiveWorkbook.SaveAs(A_Desktop "\Test\Test.csv", 6)
oExcel.Quit()
Ça ouvre un ficher excel et le sauvegarde en tant que ficher texte CSV. :thumbup:
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]

Return to “J'ai besoin d'aide”

Who is online

Users browsing this forum: No registered users and 46 guests