Jump to content

KB505

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by KB505

  1. Sorry for the late reply. Thank you junkew for your answer, i'm gonna study this. @Neutro : For example, on Windows 10, when I try to select the buttom chrome on the toolbar, here is what I have in the control section of Au3Info : Class : MSTaskListWXlass Instance : 1 ClassnameNN : MSTasklistWClass1 Name Advanced Mode : [CLASS : MSTaskListWClass; INSTANCE:1] ID Text Application in execution Position ... Size ... ControlClick Coords ... Style 0x... ExStyle ... Handle 0x... And I get that for any button on the toolbar (World, Outlook, ...). That's why it seems unefficient to me, am I wrong ? Is there an info here that could allow me to use ControlClick to select the Chrome button ? By the way, I know that I could do that with a simple Run. It is just for the exemple. I just discovered Control Viewer, I think I'm gonna try it. Maybe it will be easier to use than Au3Info.
  2. Hello, I'm starting a script in AutoIT to automize a task in a software. I need to click a several Controls. I'm just starting to learn AutoIT, and discovered that we can use the Window Info tool (au3info) to identify controls precisely and targetting safely a specific button. However, when I try it, I realize that most of the controls in my toolbar have the same Control Info (No ID, same class, same instance, ...). The only thing that changes is the ControlClicks Coord but I don't think that it's interesting, I don't see the difference with the Mouse Coordinates. Besides, I was aiming to write a stable script that would work even if the button changes a little bit of place for example. Should I use another tool that Window Info tool to detect this Controls ? Is there another way to identify a Control ? Thank you in advance for your help
  3. Hello, I would like to create a script to make automatic back up in an old software. I don't have the API of this software and there is no automatic back up feature. Therefore, the only solution is to make a script that only makes mouse movement and text sending to reproduce all the actions I manually do to save a file in this software. When you open the software, you have as usual a toolbar. The different actions to save are : 1) Click on the buttom "Folder" in the toolbar which open it with drop-down list 2) Click on the "Save and restaure" buttom in the drop-down list which opens another short drop-down list 3) Click on the "save" buttom is this last list which will open a new window 4) Write the destination folder in a bar of the window 5) Click on "save" buttom in the window 6) Wait until this file is well saved (it takes a few seconds) Then I restart the operation with another file that I open. So I must wait between the 2 operations by adding a "sleep". I know that scripts with MouseMove and MouseClick are not very stable. Is there a way to code this script so that it works properly ?
  4. I will have access to the software tomorrow, I will do it as soon as possible. May I ask you why ? Which info are you looking for ? Finally, is that possible to make such script according to you ? What are the conditions that would make this possible ? Thank you
  5. Yes I mean au3record. You're right, the software is named "Ciel". When you open it, you have as usual a toolbar. The different actions to save are : 1) Click on the buttom "Folder" in the toolbar which open it with drop-down list2) Click on the "Save and restaure" buttom in the drop-down list which opens another short drop-down list 3) Click on the "save" buttom is this last list which will open a new window 4) Write the destination folder in a bar of the window 5) Click on "save" buttom in the window 6) Wait until this file is well saved (it takes a few seconds) Then I restart the operation with another file that I open. So I must wait between the 2 operations by adding a "sleep". What do you mean by what I can see with the AutoIt Window Info Tool ? I see the same info than usually (Class, title, ...) Thank you
  6. Thank you for your answer. Actually, this Outlook script is just a test, I would like to create a script to make automatic back up in an old software. I don't have the API of this software and there is no automatic back up feature. Therefore, the only solution is to make a script that only makes mouse movement and text sending to reproduce all the actions I manually do to save a file in this software. Thus, I will use a lot of point and click method. There is no way to use it properly ? Thank you for your help.
  7. Hello, I'm trying to send an email automatically with Outlook. I got a script moving the mouse thanks to Script Writter tool and it worked well. However, after restarting my computer, the movement of the mouse doesn't click on the rght buttoms anymore although the desktop is exactly in the same conditions than before (item's positions, ...). I thought that the MousePosition was something absolute. Here is the script I use : #region --- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=0000040C) --- #region --- Internal functions Au3Recorder Start --- Func _Au3RecordSetup() Opt('WinWaitDelay',100) Opt('WinDetectHiddenText',1) Opt('MouseCoordMode',0) Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '') If $aResult[1] <> '0000040C' Then MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & @CRLF & '(0000040C->' & $aResult[1] & ')') EndIf EndFunc Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc _AU3RecordSetup() #endregion --- Internal functions Au3Recorder End --- MouseClick("left",599,1419,1) _WinWaitActivate("Boîte de réception - ################## - Outlook","Dernière modificatio") MouseClick("left",45,118,1) _WinWaitActivate("Sans titre - Message (HTML) ","&Revenir au message") Send("############{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{SHIFTDOWN};{SHIFTUP}####{ENTER}") MouseClick("left",216,244,1) Send("{SHIFTDOWN}t{SHIFTUP}est") MouseMove(31,268) MouseDown("left") MouseMove(71,284) MouseUp("left") _WinWaitActivate("Test - Message (HTML) ","&Revenir au message") Send("{SHIFTDOWN}l{SHIFTUP}e{SPACE}bot{SPACE}fonctionne{SPACE}toujours{SHIFTDOWN};{SHIFTUP}") MouseClick("left",45,212,1) #endregion --- Au3Recorder generated code End --- I really don't understand what's happenning. Thank you for your help.
  8. Right, thank you very much !
  9. Hello, I would like to use the ScriptWriter tool to automate some actions. I just installed Autoit, SciTE and Scite4Autoit3. I don' find the tool although I have installed all these packages. Is there another package to install ? I must miss something. Thank you in advance for your help.
×
×
  • Create New...