Jump to content

autoit_shai

Members
  • Posts

    8
  • Joined

  • Last visited

autoit_shai's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi, I'm using AutoitX component (autoit version 3.3.6) in VB6 on windows 7 64bit version (with 64bit library AutoItX3_x64.dll). While executing the program, I get error message "activex component can't create object" during statement "Set cAutoit = New AutoItX3Lib.AutoItX3". Does anyone know what is the reason for this? Thanks in advance, Shai
  2. Hi there, How can I get the style of a specific control? (I have found out the following code, but it doesn't seem to work: $Style = DllCall("user32.dll", "long", "GetClassLong ", "hwnd", $hwnd, "int", -26))
  3. Thanks for the quick answer. However, I have already fixed the source code (and therefore didn't even mention this problem), but the script does not seem to work... weird , I have tried the script once again just now and it works great... Ignore my message (and thanks once again).
  4. Hi, I need to click (double-click) a system tray icon of specific program (not created by Autoit). I have searched the whole forum for a solution, but didn't find any (none of the many suggested source codes really work). The most relevant code I found was the following, but it also doesn't work: #include<Systray.au3> #include<Array.au3> Global $title = "Volume" Global $prcoess = "volume.exe" ;clickSysTrayByTitle($title, "right") clickSysTrayByProcess($prcoess, "right") Func clickSysTrayByTitle($winTitle, $click = "left", $times = 1) Local $a = _SysTrayIconTitles () Local $p = MouseGetPos() For $i = 0 To UBound($a) - 1 If $a[$i] = $winTitle Then $pos = _SysTrayIconPos($i) MouseClick($click, $pos[0], $pos[1], $times, 1) ExitLoop EndIf Next MouseMove($p[0], $p[1], 1) EndFunc ;==>clickSysTray Func clickSysTrayByProcess($winProcess, $click = "left", $times = 1) Local $a = _SysTrayIconProcesses() ;_ArrayDisplay($a, "") Local $p = MouseGetPos() For $i = 0 To UBound($a) - 1 If $a[$i] = $winProcess Then $pos = _SysTrayIconPos($i) MouseClick($click, $pos[0], $pos[1], $times, 1) ExitLoop EndIf Next MouseMove($p[0], $p[1], 1) EndFunc Does anyone have any working example/any suggestion? Do I miss anything?
  5. Thanks, but I think i misunderstood you. As I said, I am using AutoItX3 via VB. Therefore, that is the corresponding program syntax. Despite The difference between native Autoit script and VB syntax, I didn't see any further difference... Any suggestion?
  6. Hi, First, I must congratulate you for this wonderful program (Which I had found out only week ago...) However, I am having problem working with ListBox functions: any one of the following commands didn't return a desired result (aka real value...) AutoIt.ControlCommand "Form1", "", "ThunderRT6ListBox1", "AddString", "string" MsgBox AutoIt.ControlCommand("Form1", "", "ThunderRT6ListBox1", "GetCurrentSelection", "") MsgBox AutoIt.ControlCommand("Form1", "", "ThunderRT6ListBox1", "GetSelected", "") What am I doing wrong? (I Am using AutoItX3 via VB)
×
×
  • Create New...