Jump to content

Search the Community

Showing results for tags 'autoit'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


WWW


Interests

Found 658 results

  1. I have an AutoIT script It monitors 2 websites for content that applys to me and the services that I provide. One site is : www.Freelancer.com The other: www.PeoplePerHour.com Both sites publish new jobs on their site hourly or so. My AutoIT app, will view those sites and present new jobs to me in a grid that pops up on my screen. Lately, the app has stopped showing me any jobs from PeoplePerHour. For freelancer.com, Inetget is giving full html but for peopleperhour, now its not coming. Func _CheckPPH() Local Static $hTimer = 0 Local Static $hDownload = 0 Local $aTitlesandUrls = 0 Local Static $sTempFile = "" If $hTimer = 0 Then $hTimer = TimerInit() If $hDownload = 0 Then $sTempFile = _WinAPI_GetTempFileName(@TempDir) ConsoleWrite("Checking PPH..." & @CRLF) ConsoleWrite(">Downloading..." & @CRLF) ;~ $hDownload = InetGet("http://www.peopleperhour.com/freelance-jobs", $sTempFile, $INET_FORCERELOAD, $INET_DOWNLOADBACKGROUND) $hDownload = InetGet("http://www.peopleperhour.com/freelance-jobs", $sTempFile, $INET_FORCERELOAD) ;~ Return 0 EndIf ;~ Sleep(30) ;~ Local $isCompleted = InetGetInfo($hDownload, $INET_DOWNLOADCOMPLETE) ;~ Local $isError = InetGetInfo($hDownload, $INET_DOWNLOADERROR) ;~ Sleep(30) ;~ If TimerDiff($hTimer) > 3000 And $isError Then ;~ ConsoleWrite("!PPH Fail" & @CRLF) ;~ InetClose($hDownload) ;~ $hDownload = 0 ;~ Return 0 ;~ EndIf ;~ Sleep(30) Local $Show = 0 ;~ If TimerDiff($hTimer) > 3000 And $isCompleted Then If $hDownload > 0 Then ConsoleWrite("+Downloaded..." & @CRLF) Local $sPPHHtml = FileRead($sTempFile) $aTitlesandUrls = _StringBetween($sPPHHtml, '"title">' & @LF, 'time>') ;~ _ArrayDisplay($aTitlesandUrls) Local $aPPH[0][4] Local $sTitle = "" Local $sUrl = "" Local $sID = "" Local $sDate = "" Local $iRet=0 Sleep(30) For $i = 0 To UBound($aTitlesandUrls) - 1 $sTitle = _StringBetween($aTitlesandUrls[$i], '<a title="', '" class') $sUrl = _StringBetween($aTitlesandUrls[$i], 'href="', '">') $sDate = _GetDate($aTitlesandUrls[$i]) If IsArray($sTitle) And IsArray($sUrl) Then $sID = _GetID($sUrl[0]) ;~ _ArrayAdd($aPPH, $sDate & "|" & $sTitle[0] & "|" & $sUrl[0] & "|" & $sID) $iRet = _BuildPopupsPPH($sID, $sDate, "PPH: " & $sTitle[0], $sUrl[0]) If $iRet Then $Show+=1 EndIf Next Sleep(30) ;~ If $Show > 0 Then ShowLatestJobs() ;~ _ArrayDisplay($aPPH) FileDelete($sTempFile) InetClose($hDownload) $hDownload = 0 $hTimer = 0 Return $Show EndIf Sleep(30) EndFunc ;==>_CheckPPH
  2. Hello! I have a question , about Mac and Autoit3. I want to convert my script to Mac App,but Aut2Exe just convert to EXE! So I asked if there was a way to convert scripts to MAC App My English isn't very good,so don't laugh please😃
  3. Hello everyone, it has been a while since I have been involved in a serious AutoIt-related project discussion in the forums here, so it feels good to be back at it First a little backstory, a few months back (or a year ago) I made the switch to Linux from Windows... there were several reasons as to why I was motivated to do it, but the main things was Windows 10 was getting out of hand, it didn't offer enough freedom out of the box (restrictive settings, greedy defaults etc.) and had several issues with all kinds of software, many of them mysteriously hard to fix. I did have Linux installed as my secondary operating system for few years at that point and I began to see me regularly use it more than Windows, so one day I went ahead and said "fork it", I have stuck to Linux from that point on as my primary operating system. Windows is still installed in my computer and I also have a virtual machine with the latest version of Windows 10 on it, primarily because I still use Windows to write software using AutoIt as part of my job (freelance). I was pretty sad about the fact that I could no longer use AutoIt to make stuff for myself (since it doesn't run on Linux), I missed sharing code with the community here, this was a great hobby for me as AutoIt is what got me start with programming (even though I had tried several times to get into other languages before, those attempts were never as successful as what I have done in AutoIt). In Linux there is no language which is similar to AutoIt unfortunately, there are a few things which come close but are not on par with AutoIt's ease of use. As some of you may know, I have recently started working on other projects using the C language, it is a great step I have taken and I am learning a lot... but it is still not easy to create quick scripts or programs in C, due to the amount of configuration and dedication it takes to make a C program, also it is not ideal for sharing as multiple source files are involved. And on top of that you still have to deal with platform-specific APIs since C is a low-level language. (Getting back to core of this topic's subject) To solve this issue and to sharpen my programming skills, I could start working on an alternate cross-platform implementation of the AutoIt language which should be backwards compatible with the current AutoIt v3 on C The primary aim in the beginning is to implement all the basic functions (File, String, Numbers etc.) in AutoIt so that it is possible to make basic and fundamental scripts which would work in both Windows and Linux The main features would be: Cross-platform (Linux and Windows with the possibility supporting of Mac) Backward compatible with AutoIt 3 Byte-code based interpreter instead of source interpreter Easy to use (just like the current AutoIt) The advantage of having a byte-code based interpreter is that it makes the interpreter lighter and faster since it doesn't have to deal with parsing the source code, this would also open the door for some compile time optimizations... another bonus thing for those who don't like their source code present inside the compiler binaries is that it should be impossible to get hands on the original source code, this of course does not mean that decompilation can be stopped... it merely means that anyone decompiling would have to reconstruct the code from the byte-code. We can later on implement GUI related functions and maybe even automation related functions if the project gets enough traction I am adding a poll to keep track of people who are willing to invest in this project or would like to see it come into existence. Welcome any comments, suggestions etc. Obviously I will have a lot to learn and my work might interfere with this at times, but with enough interest I can see myself working on this to deliver a very basic prototype which could be used with basic scripts.
  4. back when I was still doing autohotkey you could write (in code) spanisha::á and whenever you were in google docs or notepad you could type (in the document) spanisha and it instantly turns it into á I tried doing this in autoit, here's what I have so far (my entire code so if this language requires a main function or a return/exit to function properly please let me know): ;is this a proper comment? HotKeySet ( "spanisha" , "SendAltered" ) Func SendAltered() Send("á", flag = 0); EndFunc I assume that autoit follows a sort of contemporary hotkey pressing model where you have to hold all keys at the same time? which makes this impossible. So I'm wondering if anyone has a workaround for this? or maybe an alternative to HotKeySet() I have a vague memory of someone saying that doing something like spanisha:á would work. I don't know if I'm slightly off syntax but this doesn't work. Also I tried doing ;is this a proper comment? ;HotKeySet ( "a" , "SendAltered" ) ;spanisha::á Func SendAltered() Send("á"); EndFunc just to try and debug, I'm also wondering if my approach is fundamentally wrong since HotKeySet() was made for something like !^A. Or if Send() is syntactically wrong. I'm also noticing on these forums that specifying installation is important so to whom it may concern I downloaded both installers, editor and main files. Although I'm about to be real mad if the editor installation makes a difference.
  5. I have to press tab to reach a selected button then double click on that Here's my script but its not working: WinActivate("Policy Decisions -- Webpage Dialog","") Sleep(3000) Send("{TAB}") Send("{TAB}") Send("{TAB}") // at this point its working according to my need but double click is not working Mouseclick("Left",510, 320, 2, 0)
  6. TheDcoder

    EasyCodeIt

    Version 0.0.0.1

    28 downloads

    See this thread for info:
  7. Why can I not click on either of my input fields? #Region ### START Koda GUI section ### Form= Global $Form1 = GUICreate("Form1", 730, 437, 192, 124) ;GUISetFont(14, 800, 0, "MS Sans Serif") GUISetBkColor(0xC0DCC0) Global $Label1 = GUICtrlCreateLabel("Enter your Password. UserName is auto filled", 62, 40, 604, 41, $SS_CENTER) GUICtrlSetFont(-1, 26, 800, 0, "MS Sans Serif") Global $Label2 = GUICtrlCreateLabel("User Name:", 120, 130, 604, 31, $SS_LEFT) GUICtrlSetFont(-1, 20, 800, 0, "MS Sans Serif") Global $Label3 = GUICtrlCreateLabel("Password:", 135, 210, 604, 31, $SS_LEFT) GUICtrlSetFont(-1, 20, 800, 0, "MS Sans Serif") Global $Input1 = GUICtrlCreateInput(@UserName, 274, 130, 185, 32) GUICtrlSetFont(-1, 14, 800, 1, "MS Sans Serif") Global $Input2 = GUICtrlCreateInput("Password", 274, 210, 185, 32, $ES_PASSWORD) GUICtrlSetFont(-1, 14, 800, 0, "MS Sans Serif") Global $OK = GUICtrlCreateButton("OK", 274, 270, 185, 57) GUICtrlSetFont(-1, 20, 800, 0, "MS Sans Serif") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $OK Global $UserName = GUICtrlRead($Input1) Global $PassWord = GUICtrlRead($Input2) ExitLoop EndSwitch WEnd ; Delete the GUI window GUIDelete()
  8. Hello Again! I previously stumbled upon a topic asking for maps datatype's instructions... I too wasn't sure what a map is until I tried it... So I am making this topic to help other newbies (and some oldbies) better understand the Maps datatype of AutoIt! Lets start! A Note for Readers The maps datatype is still in development and is currently in Alpha Stage (More Risky than Beta) and its unstable, so AutoIt can crash indefinably while using Maps! I can't guarantee if this will be implemented in stable versions, this is a fairly new thing to AutoIt coders & in my honest opinion I don't see any use for it Maps are the best datatype in AutoIt, Very Useful ... Not hurting anyone though . Also the maps datatype is DISABLED IN STABLE VERSIONS, So you need to install the latest beta version of AutoIt to make maps work . If you find any bugs while using a map, please report it in the Official Bug Tracker Introduction To Maps Maps are just like arrays, instead they use "keys" to access elements inside them... A key can be either a string or an integer (Other datatypes work too but they are converted to a integer [Equivalent to Int($vKey)] before assignment [Source]). Although Integers don't represent the order of elements in a map unlike in an array... Declaring Maps Its similar to declaring an Array: ; This is the only way to declare a map ; You must have a declarative keyword like Dim/Global/Local before the declaration unless the map is assigned a value from a functions return Local $mMap[] ; Don't insert any numbers or strings it! Simple, Isn't it? Using Maps Using maps is similar to arrays (again!): Local $mMap[] ; Lets declare our map first! ; Adding data to maps is easy... ; This is our key ; | ; v $mMap["Key"] = "Value" ; <--- And our value! ; A key is Case-Sensitive meaning "Key" is not same as "key"! $mMap["key"] = "value" ; Not the same as $mMap["Key"]! ; There are 2 different ways to access an element in a map $mMap["Key"] ; 1st Method $mMap.Key ; 2nd Method Enumerating Maps Its quite easy to enumerate through arrays but what about maps? how can I enumerate through them!? #include <MsgBoxConstants.au3> ; Lets create our map first Local $mMap[] ; Lets add some information to the map, feel free to modify & add new elements $mMap["Name"] = "Damon Harris" $mMap["Alias"] = "TheDcoder" $mMap["Gender"] = "Male" $mMap["Age"] = 14 $mMap["Location"] = "India" $aMapKeys = MapKeys($mMap) ; MapKeys function returns all the keys in the format of an array Local $sProfile = "Profile of " & $mMap["Name"] & ':' & @CRLF ; We will use this string later For $vKey In $aMapKeys ; We use this to get the keys in a map :) $sProfile &= @CRLF & $vKey & ': ' & $mMap[$vKey] ; Add some details to the profile string using our map! Next MsgBox($MB_ICONINFORMATION + $MB_OK, "Profile", $sProfile) ; Finally display the profile :) It is easy as always Multi-Dimensional Maps Now now... I know that you are a little confused that how can an multi-dimensional maps exist... Although I am not 100% sure if its called that but lets continue: #include <MsgBoxConstants.au3> ; Multi-Dimensional maps are just maps in a map Local $mMapOfMapsvilla[] ; This map will store an other map Local $mParkMap[] ; This Park map will be inserted in the Mapsvilla's map :P $mMapOfMapsvilla["Map Item 1"] = "Town Hall" $mMapOfMapsvilla["Map Item 2"] = "Police Station" $mMapOfMapsvilla["Map Item 3"] = "Shopping Mall" $mMapOfMapsvilla["Map Item 4"] = "Residential Area" $mMapOfMapsvilla["Map Item 5"] = "Park" $mParkMap["Map Item 1"] = "Cottan Candy Stand" $mParkMap["Map Item 2"] = "Public Toilet" $mParkMap["Map Item 3"] = "Woods" $mMapOfMapsvilla.Park = $mParkMap MsgBox($MB_OK, "Map Location", $mMapOfMapsvilla["Map Item 1"]) ; Will display Town Hall MsgBox($MB_OK, "Map Location", $mMapOfMapsvilla.Park["Map Item 1"]) ; Will display Cottan Candy Stand I am sure its easy for you to understand now Frequently Asked Questions (FAQs) & Their answers Q #1. Help! My code does not respond to anything (or) I get an "Variable subscript badly formatted" error on the line of declaration... A. DONT USE F5 or Go, Instead use Alt + F5 or Tools -> Beta Run in SciTE (Make sure that you have Beta installed) Q #2. Why are you using "m" in-front of every map variable? A. Best coding Practices: Names of Variables Q #3. What are "Elements" which you mention frequently??? A. This is a newbie question (I have no intention of insulting you ), so I guess you are new to programming. "Elements" are data slots inside a Map (or an Array), you can imagine elements as individual variable which are stored in a Map. You can access them using "keys", Please refer to "Introduction to Maps" section at the starting of this post Q #4. Are Maps faster than Arrays? A. You need to understand that Maps have different purpose than Arrays. Maps are designed to store data dynamically (like storing information for certain controlIDs of GUI) and Arrays are designed to store data in a order (for instance, Storing every character of a string in an element for easy access). If you still want to know then if Maps are faster, then the answer is maybe... Maps are *supposed* (I am not sure ) to be faster in addition of elements (while Arrays are painfully slow while adding or removing elements). Here (Post #24) is a benchmark (Thanks kealper! ) More FAQs coming soon! Feel free to ask a question in the mean while
  9. Hello All, I am new to auto It and coding. Have only tried few automated logging for different websites. The login pages of the websites which I have worked on were having form name with input type as text and it seems straight forward to automate their login using "_IEFormElementSetValue". I have got a url, it does not have any form in the source page. On further analyzing I found that It does call some login page separately as below. function showLogin(arg) { Global.pollingDialogDoc = null; var fresh = jQuery.isValidString(arg) && "fresh" == arg ? !0 : !1, appFrame = $("#appFrame"); if ($("#modalFrame").show(), $("iframe").hide(), fresh || !appFrame.attr('src').match("html/login.html")) appFrame.attr('src', baseURL + 'html/login.html'), appFrame.on('load', function() { setTimeout(function() { $("#modalFrame").hide(), appFrame.show(); }, 1); }); else try { window.frames.appFrame.updatePageFromIndex(); } catch (e) {} } I can simply use "send" and "mouse click" Method to automate the login but that doesn't seems very reliable. Is there any separate way to fill the user ID and password to the respective fields by having reference by frames or something. Appreciate if any one can point me to correct document or help in any way...!
  10. Hi, I have a string like this : Global $Msga = "urrent directory is /send. (Submission of file with log number 29381077284 is confirmed)"; I want to extract the number 29381077284 from the string. I did StringSplit to split based on "(" and then use space to reach there, But it's not a good choice. Can anyone help me with regular expression to find the number from String using AutoIT. TIA
  11. I want wanting to run multiple tests on my company website. Sadly the process I want to automate requires opening a File Explorer to add an attachment. Is there a way in to automate a Chrome opened File Explorer? (I am using webdriver to automate the other 99% of the process just fine. But when I have it click on attach file and chrome opens a file explorer I do not know how to handle it.) Any help would be greatly appreciated.
  12. Hi There ! I have a script here : ;Launch CMD Run("C:\Windows\System32\cmd.exe") sleep(2000) $cmdHandle = WinActivate("C:\Windows\System32\cmd.exe") Sleep(2000) ;Sending document ControlSend($cmdHandle, "", "", "ftp" & @CRLF) ControlSend($cmdHandle, "", "", "open" & @CRLF) Sleep(2000) ControlSend($cmdHandle, "", "", "first command" & @CRLF) Sleep(2000) ControlSend($cmdHandle, "", "", "second-coomand" & @CRLF) first-command and second-command I can't provide cause it's internal. I have complied this .au3 file into an exe and it does the work. But I need to invoke this with Java. Java code I have tried is : ProcessBuilder pb = new ProcessBuilder("C:\\Users\\username\\eclipse-workspace\\Examples\\src\\com\\own\\examples\\etc.exe"); pb.start(); Thread.sleep(5000); Through java it just launches the cmd and nothing happens after that. Please help !!
  13. Hi there, I'm new in AutoIt forms and using AutoIt to automate desktop application (able to automate the application normally but facing issue when I've to re-run the application twice within the same script...so need help in this please) here is the steps then followed by the issue in a brief : 1- run application . 2- do some actions (click menus,activate windows,set texts..) 3- close the application. 4- run the application again & access the same controls. 5- open the same windows again (like step 2) 6- perform some validations (by getting texts from some text boxes) 7- close the application again (and repeat 1-7 for 15 times in average ) The issue * all controls are accessible in the first run and actions done successfully on controls (for steps 1-3) BUT from the second run of the application from step-4 it's able to set focus only the main application window. Note: only unique properties used to while mapping the controls. Error that appear in the console : UIAWrappers.au3" (1673) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: $x = Int($t[1] + ($t[3] / 2)) $x = Int($t[1] + (^ ERROR Simple spy code of one of the controls that has this strange issue(menubar&view menu Item): ;~ *** Standard code maintainable *** #include "UIAWrappers.au3" AutoItSetOption("MustDeclareVars", 1) _UIA_setVar("oP1","Title:=XXX;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app") ;main app form xxx _UIA_setVar("oP2","Title:=menuStrip1;controltype:=UIA_MenuBarControlTypeId;class:=WindowsForms10.Window.8.app") ;menuStrip1 ;~ $oUIElement=_UIA_getObjectByFindAll("View.mainwindow", "title:=View;ControlType:=UIA_MenuItemControlTypeId", $treescope_subtree) _UIA_setVar("oUIElement","Title:=View;controltype:=UIA_MenuItemControlTypeId;class:=") ;ControlType:=UIA_MenuItemControlTypeId;classname:=") ;~ Actions split away from logical/technical definition above can come from configfiles ;~_UIA_Action("oP1","highlight") _UIA_Action("oP1","setfocus") ;~_UIA_Action("oP2","highlight") _UIA_Action("oP2","setfocus") _UIA_action("oUIElement","highlight") ;~_UIA_action("oUIElement","click")
  14. hello please i need help i need to open link in default browser only one windows without duplicate if i try to open the same link thanks
  15. We need to automate Silverlight Application. Can we use AutoIT for the same? If yes then how?
  16. Hello All! i suggest to set default encoding in Scite4 for Autoit 3 to UTF 8 with Bom encoding, format recommended also in Autoit Help. In last editor version, when i open new script, for example Czech characters (č, ř, ž) aren't correct. So when i change Encoding to UTF 8 with Bom from Default Code page property state, everithing seems to be OK. Thank you and sorry for potentialy duplicated content. Fenzik
  17. Hi, I am new to AutoIT scripting and I am still learning. I am trying to communicate with a Labview application that acts like a server. it basically takes commands from the client. But for some commands, it also send back some data. When i am sending commands from my script, i can see that the labview is getting them. But i am not able to get anything back. I tried different code pieces that are available online in the forum. This is the working piece of code which i been using to send data. #cs This module is used to establish tcp connection with lab view #ce #include <File.au3> Func SendCmd($cmd) TCPStartup() Local $IpAddress="192.168.10.101" Local $Port="5353" $Labview = TCPConnect($IpAddress,$Port) If @error Then ConsoleWrite('!--> TCPConnect error number ( ' & @error & ' ).' & @CRLF) TCPCloseSocket($Labview) TCPShutdown() Exit EndIf TCPSend($Labview, $cmd & @CRLF) TCPCloseSocket($Labview) TCPShutdown() EndFunc SendCmd("wt42d") This is slightly modified code to send and receive data, which is not working. I am not getting any response back SendCmd("galil") Func SendCmd($cmd) TCPStartup() Local $IpAddress="192.168.10.101" Local $Port="5353" $Labview = TCPConnect($IpAddress,$Port) If @error Then ConsoleWrite('!--> TCPConnect error number ( ' & @error & ' ).' & @CRLF) TCPCloseSocket($Labview) TCPShutdown() Exit EndIf TCPSend($Labview, $cmd & @CRLF) $ip = @IPAddress1 ;create listening socket $Listensocket = TCPListen($ip, $Port) ConsoleWrite("Listening to Socket - " & $Listensocket & @CRLF) If $Listensocket = -1 Then ConsoleWrite("Exiting..." & @CRLF) Exit EndIf ;Accept incoming clients and recieve info While 1 $connectedsocket = TCPAccept($Listensocket) ConsoleWrite("Connecting to Socket - " & $connectedsocket & "Error -" & @error & @CRLF) If $ConnectedSocket >= 0 Then $ip2 = TCPRecv($connectedsocket,1000000) EndIf WEnd TCPCloseSocket($connectedsocket) TCPCloseSocket($Labview) TCPShutdown() EndFunc I am not getting anything back. I am getting the following output in the console +>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+BREAK to Stop. Listening to Socket - 544 Connecting to Socket - -1Error -0 Connecting to Socket - -1Error -0 Connecting to Socket - -1Error -0 Connecting to Socket - -1Error -0 Connecting to Socket - -1Error -0 Connecting to Socket - -1Error -0 Connecting to Socket - -1Error -0 Connecting to Socket - -1Error -0 Connecting to Socket - -1Error -0 its going through that loop forever. i need to force stop it. But when i open putty and send the same command, i am getting response right away. Can someone please help me with that. Thanks in advance Regards Yogendra
  18. I need to mute an ongoing call on Microsoft teams without activating the window. Teams allows us to mute using shortcut key Ctrl+Shift+m but only when the window is active. # Used set option as ongoing call can be with any person which leads to change in Title Name. AutoItSetOption ( "WinTitleMatchMode", 2 ) # I am not clear with the control ID which will be good to use here and also the key combination of ^M ControlSend ( "Microsoft Teams", "", "[CLASS:Intermediate D3D Window; INSTANCE:1]", "{ctrl down}") Can anyone help...!!!
  19. Good evening I am new to programming with AutoIt however I have proposed many projects in this case I already have my code completed and it works correctly but I cannot find a way to assign a password and I try various options but it does not work could you help me please #include <GUIConstantsEx.au3> #include <ButtonConstants.au3> #include <EditConstants.au3> #include <StaticConstants.au3> #include <GUIConstants.au3> #include <WindowsConstants.au3> ; Botones Dim $Cban, $Cei, $Fav, $Sent, $Cabe, $Dirtv, $Bonu, $TM, $Pass, $OK, $Exit ;Ventanas Dim $VPinc, $VCban, $VCei, $VFav, $VSent, $VCaribe, $VDirectv, $Vbonus, $VTM, $Vcont ;Boton Atras Dim $Atras, $Atras1, $Atras2, $Atras3, $Atras4, $Atras5,$Atras6,$Atras7 ;Botones Copiar Dim $copi, $copi1, $copi2, $copi3, $copi4, $copi5, $copi6, $copi7, $copi8, $copi9, $copi10, $copi11, $copi12 Dim $copi12, $copi13, $copi14, $copi15, $copi16, $copi17, $copi18, $copi19, $copi20,$copi21,$copi22,$copi23 Dim $Imf = "00000000000" Dim $Imf1 = "00000000000" Dim $Imf2 = "00000000000" Dim $Imf3 = "00000000000" Dim $Imf4 = "00000000000" Dim $imf11= "00000000000" Dim $imf12= "00000000000" Dim $Imf17= "00000000000" Dim $Imf18= "00000000000" Dim $Imf19= "00000000000" Dim $Imf20= "00000000000 " Dim $Imf21= "00000000000" Dim $Imf22= "00000000000" ;Imformacion Dim $Imf5 = "00000000000" Dim $Imf6 = "00000000000" ;Imformacion Dim $Imf7 = "00000000000" Dim $Imf8 = "00000000000" ;Imformacion Dim $Imf9 = "00000000000" Dim $Imf10 = "00000000000" ;Imformacion Dim $imf13 = "00000000000" Dim $imf14 = "00000000000" Dim $imf15 = "00000000000" Dim $imf16 = "00000000000" Dim $imf23 = "00000000000" ;Funciones Principales Prin () Cuentas () Correo () Seniat () Faov () Bancaribe () Bonus () AirTm () Directv () GUISetState(@SW_HIDE,$VCban) GUISetState(@SW_HIDE,$VCei) GUISetState(@SW_HIDE,$VFav) GUISetState(@SW_HIDE,$VSent) GUISetState(@SW_HIDE,$VCaribe) GUISetState(@SW_HIDE,$VBonus) GUISetState(@SW_HIDE,$VTM) GUISetState(@SW_HIDE,$VDirectv) Selec () Func Selec () while 1 $msg=GUIGetMsg() Select Case $msg=$GUI_EVENT_CLOSE $x = 1 if WinActive($VPinc) and $x = 1 then ExitLoop endif if WinActive($VCban) then GUISetState(@SW_HIDE,$VCban) GUISetState(@SW_SHOW,$VPinc) $x = 0 endif if WinActive($VCei) then GUISetState(@SW_HIDE,$VCei) GUISetState(@SW_SHOW,$VPinc) $x = 0 endif if WinActive($VFav) then GUISetState(@SW_HIDE,$VFav) GUISetState(@SW_SHOW,$VPinc) $x = 0 endif if WinActive($VSent) then GUISetState(@SW_HIDE,$VSent) GUISetState(@SW_SHOW,$VPinc) $x = 0 endif if WinActive($VBonus) then GUISetState(@SW_HIDE,$VBonus) GUISetState(@SW_SHOW,$VCban) $x = 0 endif if WinActive($VTM) then GUISetState(@SW_HIDE,$VTM) GUISetState(@SW_SHOW,$VCban) $x = 0 endif if WinActive($VCaribe) then GUISetState(@SW_HIDE,$VCaribe) GUISetState(@SW_SHOW,$VCban) $x = 0 endif if WinActive($VDirectv) then GUISetState(@SW_HIDE,$VDirectv) GUISetState(@SW_SHOW,$VPinc) $x = 0 endif Case $msg = $Cban IniWrite("Data\OPT.INI", "GENERAL", "BUTTON", "1") GUISetState(@SW_HIDE,$VPinc) Cuentas() Case $msg = $Cei IniWrite("Data\OPT.INI", "GENERAL", "BUTTON", "2") GUISetState(@SW_HIDE,$VPinc) Correo() Case $msg = $Fav IniWrite("Data\OPT.INI", "GENERAL", "BUTTON", "3") GUISetState(@SW_HIDE,$VPinc) Faov() Case $msg = $Sent IniWrite("Data\OPT.INI", "GENERAL", "BUTTON", "4") GUISetState(@SW_HIDE,$VPinc) Seniat() Case $msg = $Cabe IniWrite("Data\OPT.INI", "GENERAL", "BUTTON", "5") GUISetState(@SW_HIDE,$VCban) Bancaribe() Case $msg = $Bonu IniWrite("Data\OPT.INI", "GENERAL", "BUTTON", "6") GUISetState(@SW_HIDE,$VCban) Bonus() Case $msg = $TM IniWrite("Data\OPT.INI", "GENERAL", "BUTTON", "7") GUISetState(@SW_HIDE,$VCban) AirTm() Case $msg = $Dirtv IniWrite("Data\OPT.INI", "GENERAL", "BUTTON", "8") GUISetState(@SW_HIDE,$VPinc) Directv() Case $msg=$Atras GUISetState(@SW_HIDE,$VCban) GUISetState(@SW_SHOW,$VPinc) Case $msg=$Atras1 GUISetState(@SW_HIDE,$VCaribe) GUISetState(@SW_SHOW,$VCban) Case $msg=$Atras2 GUISetState(@SW_HIDE,$VCei) GUISetState(@SW_SHOW,$VPinc) Case $msg=$Atras3 GUISetState(@SW_HIDE,$VFav) GUISetState(@SW_SHOW,$VPinc) Case $msg=$Atras4 GUISetState(@SW_HIDE,$VSent) GUISetState(@SW_SHOW,$VPinc) Case $msg=$Atras5 GUISetState(@SW_HIDE,$VDirectv) GUISetState(@SW_SHOW,$VPinc) Case $msg=$Atras6 GUISetState(@SW_HIDE,$VBonus) GUISetState(@SW_SHOW,$VCban) Case $msg=$Atras7 GUISetState(@SW_HIDE,$VTM) GUISetState(@SW_SHOW,$VCban) Case $msg=$Copi ClipPut ($Imf) Case $msg=$Copi1 ClipPut ($Imf1) Case $msg=$Copi2 ClipPut ($Imf2) Case $msg=$Copi3 ClipPut ($Imf3) Case $msg=$Copi4 ClipPut ($Imf4) Case $msg=$Copi5 ClipPut ($Imf5) Case $msg=$Copi6 ClipPut ($Imf6) Case $msg=$Copi7 ClipPut ($Imf7) Case $msg=$Copi8 ClipPut ($Imf8) Case $msg=$Copi9 ClipPut ($Imf9) Case $msg=$Copi10 ClipPut ($Imf10) Case $msg=$Copi11 ClipPut ($Imf11) Case $msg=$Copi12 ClipPut ($Imf12) Case $msg=$Copi13 ClipPut ($Imf13) Case $msg=$Copi14 ClipPut ($Imf14) Case $msg=$Copi15 ClipPut ($Imf15) Case $msg=$Copi16 ClipPut ($Imf16) Case $msg=$Copi17 ClipPut ($Imf17) Case $msg=$Copi18 ClipPut ($Imf18) Case $msg=$Copi19 ClipPut ($Imf19) Case $msg=$Copi20 ClipPut ($Imf20) Case $msg=$Copi21 ClipPut ($Imf21) Case $msg=$Copi22 ClipPut ($Imf22) Case $msg=$Copi23 ClipPut ($Imf23) EndSelect WEnd EndFunc Func Prin () ;ventana Principal $VPinc = GUICreate("Imformacion de Cuentas", 490, 122, -1, -1, $WS_POPUP) ;Selecciones del menu $Cban = GUICtrlCreateButton("Cuentas Bancarias", 16, 30, 73, 60, $BS_MULTILINE) GUICtrlSetFont(-1, 10, 500, 2, "Times New Roman") GUICtrlSetCursor (-1, 0) $Cei = GUICtrlCreateButton("Correo elctronico", 112, 30, 73, 60, $BS_MULTILINE) GUICtrlSetFont(-1, 10, 500, 2, "Times New Roman") GUICtrlSetCursor (-1, 0) $Fav = GUICtrlCreateButton("Faov", 208, 30, 73, 60, $BS_MULTILINE) GUICtrlSetFont(-1, 10, 500, 2, "Times New Roman") GUICtrlSetCursor (-1, 0) $Sent = GUICtrlCreateButton("Seniat ", 304, 30, 73, 60, $BS_MULTILINE) GUICtrlSetFont(-1, 10, 500, 2, "Times New Roman") GUICtrlSetCursor (-1, 0) $Dirtv = GUICtrlCreateButton("Directv ", 400, 30, 73, 60, $BS_MULTILINE) GUICtrlSetFont(-1, 10, 500, 2, "Times New Roman") GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW,$VPinc) EndFunc Func Cuentas() $VCban = GUICreate("Cuentas Bancarias", 150, 500, -1, -1, $WS_POPUP) $Cabe = GUICtrlCreateButton("Bancaribe", 37, 30, 80, 60, $BS_MULTILINE) GUICtrlSetFont(-1, 12, 500, 2, "Times New Roman") $Bonu = GUICtrlCreateButton("Bonus", 37, 100, 80, 60, $BS_MULTILINE) GUICtrlSetFont(-1, 12, 500, 2, "Times New Roman") $TM = GUICtrlCreateButton("AirTm", 37, 170, 80, 60, $BS_MULTILINE) GUICtrlSetFont(-1, 12, 500, 2, "Times New Roman") $Atras= GUICtrlCreateButton("Atras", 35, 450, 90, 30) GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW,$VCban) EndFunc Func Bancaribe() $VCaribe = GUICreate("Bancaribe", 500, 700, -1, -1, $WS_SYSMENU) GUICtrlCreateLabel("Numero de Cuenta:", 10, 20, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 170, 22, 200, 30) GUICtrlSetFont(-1, 10, 700, 0, "MS Sans Serif") $copi = GUICtrlCreateButton("Copiar", 390, 21, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Numero de Tarjeta:", 10, 50, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 170, 52, 200, 30) GUICtrlSetFont(-1, 10, 700, 0, "MS Sans Serif") $copi1 = GUICtrlCreateButton("Copiar", 390, 51, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Pin de tres digitos:", 10, 80, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 170, 82, 100, 30) GUICtrlSetFont(-1, 10, 700, 0, "MS Sans Serif") $copi2 = GUICtrlCreateButton("Copiar", 390, 81, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Valid from:0000", 70, 120, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("Valid Thru:000", 300, 120, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("Conexion Bancaribe", 180, 180, 200, 30) GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("Usuario:", 10, 240, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 170, 240, 200, 30) GUICtrlSetFont(-1, 10, 700, 0, "MS Sans Serif") $copi3 = GUICtrlCreateButton("Copiar", 390, 241, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Contraseña:", 10, 270, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 170, 270, 200, 30) GUICtrlSetFont(-1, 10, 700, 0, "MS Sans Serif") $copi4 = GUICtrlCreateButton("Copiar", 390, 271, 80, 20) GUICtrlSetCursor (-1, 0) $Atras1 = GUICtrlCreateButton("Atras", 215, 620, 90, 30) GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW,$VCaribe) EndFunc Func Bonus() $VBonus = GUICreate("Bonus", 500, 300, -1, -1, $WS_SYSMENU) GUICtrlCreateLabel("Numero de Tarjeta:", 10, 50, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 170, 52, 200, 30) GUICtrlSetFont(-1, 10, 700, 0, "MS Sans Serif") $copi17 = GUICtrlCreateButton("Copiar", 390, 51, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Pin de siete digitos:", 10, 80, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 170, 82, 100, 30) GUICtrlSetFont(-1, 10, 700, 0, "MS Sans Serif") $copi18 = GUICtrlCreateButton("Copiar", 390, 81, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Conexion Bonus", 175, 110, 200, 30) GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("Usuario:", 10, 140, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 170, 142, 200, 30) GUICtrlSetFont(-1, 10, 700, 0, "MS Sans Serif") $copi19 = GUICtrlCreateButton("Copiar", 390, 141, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Contraseña:", 10, 170, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 170, 172, 200, 30) GUICtrlSetFont(-1, 10, 700, 0, "MS Sans Serif") $copi20 = GUICtrlCreateButton("Copiar", 390, 171, 80, 20) GUICtrlSetCursor (-1, 0) $Atras6 = GUICtrlCreateButton("Atras", 215, 230, 90, 30) GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW,$VBonus) EndFunc Func AirTm() $VTM = GUICreate("AirTm", 400, 190, -1, -1, $WS_SYSMENU) GUICtrlCreateLabel("Usuario AirTm", 130, 15, 300, 30) GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("Usuario:", 10, 50, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 100, 50, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $copi21 = GUICtrlCreateButton("Copiar", 310, 51, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Contraseña:", 10, 80, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 100, 80, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $copi22 = GUICtrlCreateButton("Copiar", 310, 81, 80, 20) GUICtrlSetCursor (-1, 0) $Atras7 = GUICtrlCreateButton("Atras", 150, 120, 90, 30) GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW,$VTM) EndFunc Func Correo() $VCei = GUICreate("Correo Electronico", 400, 150, -1, -1, $WS_POPUP) GUICtrlCreateLabel("Correo Electronico", 130, 15, 300, 30) GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("Usuario:", 10, 50, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 100, 50, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $copi5 = GUICtrlCreateButton("Copiar", 310, 51, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Contraseña:", 10, 80, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 100, 80, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $copi6 = GUICtrlCreateButton("Copiar", 310, 81, 80, 20) GUICtrlSetCursor (-1, 0) $Atras2 = GUICtrlCreateButton("Atras", 130, 110, 90, 30) GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW,$VCei) EndFunc Func Faov() $VFav = GUICreate("Faov", 300, 150, -1, -1, $WS_POPUP) GUICtrlCreateLabel("Usuario FAOV", 108, 15, 150, 30) GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("Usuario:", 10, 50, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 100, 50, 100, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $copi7 = GUICtrlCreateButton("Copiar", 210, 51, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Contraseña:", 10, 80, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 100, 80, 100, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $copi8 = GUICtrlCreateButton("Copiar", 210, 81, 80, 20) GUICtrlSetCursor (-1, 0) $Atras3 = GUICtrlCreateButton("Atras", 109, 110, 90, 30) GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW,$VFav) EndFunc Func Seniat() $VSent = GUICreate("Seniat", 300, 150, -1, -1, $WS_POPUP) GUICtrlCreateLabel("Usuario Seniat", 108, 15, 150, 30) GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("Usuario:", 10, 50, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 100, 50, 100, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $copi9 = GUICtrlCreateButton("Copiar", 210, 51, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Contraseña:", 10, 80, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 100, 80, 100, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $copi10 = GUICtrlCreateButton("Copiar", 210, 81, 80, 20) GUICtrlSetCursor (-1, 0) $Atras4 = GUICtrlCreateButton("Atras", 109, 110, 90, 30) GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW,$VSent) EndFunc Func Directv() $VDirectv = GUICreate("Directv", 500, 280, -1, -1, $WS_POPUP) GUICtrlCreateLabel("Usuario Directv", 190, 15, 150, 30) GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("Usuario:", 10, 50, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 150, 50, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $copi13 = GUICtrlCreateButton("Copiar", 400, 44, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Contraseña:", 10, 80, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 150, 80, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $copi14 = GUICtrlCreateButton("Copiar", 400, 74, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Numero de Tarjeta:", 10, 120, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 150, 120, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $copi15 = GUICtrlCreateButton("Copiar", 400, 115, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Numero de Cedula:", 10, 150, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 150, 150, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $copi16 = GUICtrlCreateButton("Copiar", 400, 145, 80, 20) GUICtrlSetCursor (-1, 0) GUICtrlCreateLabel("Numero de Cliente:", 10, 180, 150, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") GUICtrlCreateLabel("00000000000", 150, 180, 200, 30) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $copi23 = GUICtrlCreateButton("Copiar", 400, 180, 80, 20) GUICtrlSetCursor (-1, 0) $Atras5 = GUICtrlCreateButton("Atras", 200, 230, 90, 30) GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW,$VDirectv) EndFunc
  20. Hi all, I'm trying to write a script that connects with a VBA/COM API to get the status of a connected phone. I've been looking up and down this forum for tips or other user's experiences, but I can't seem to find anything (even remotely) similar. It shouldn't be so hard to do, however. Software I'm trying to connect to I'm trying to integrate CallCenter by using their API, which is documented over here : JustRemotePhone API Reference Things I've tried I've tried using ObjCreate but I don't get any result, it always returns the same (negative) error. #Version 1 tried ObjCreate("JustRemotePhone.RemotePhoneService") #Version 2 tried ObjCreate("JustRemotePhoneCOM.RemotePhoneService") #Version 3 tried ObjCreate("JustRemotePhoneCOM.RemotePhoneService.Application") None of the three versions I tried seem to deliver any result other than a negative error value which basically says that the given class is not valid. I am starting to get the hang of AutoIt by now, but unmanaged programming languages and object-oriented stuff is still quite a grey zone for me. If anyone could help me 'talk' to this application, I'd be immensely grateful! Thanks in advance and kind regards from Belgium! Jan
  21. This topic give you access to an AutoIt functions library I maintain which is called PAL, Peter's AutoIt Library. The latest version 1.20 contains 197 functions divided into these topics: window, desktop and monitor mouse and GUI GUI controls including graphical buttons (jpg, png) logics and mathematics include constants string, xml string and file string dialogues and progress bars data lists: lists, stacks, shift registers and key maps (a.ka. dictionaries) miscellaneous: logging/debugging, process and system info Change log and files section on the PAL website (SourceForge). A lot of these functions were created in the development of Peace, Peter's Equalizer APO Configuration Extension, which is a user interface for the system-wide audio driver called Equalizer APO.
  22. Hello this is the code maybe you can figure it out I placed some comments to try and explain what I want #include <Array.au3> AnyDeskOpen() Func AnyDeskOpen() Global $aWinList = WinList("[REGEXPTITLE:(?i)(.*Anydesks*)]") ;get window name and handle from windows and store into an array $asd = $aWinList $aExtract = _ArrayExtract($asd) ; beginner babble clean this Sh** up Global $default = _ArrayToString($aExtract, "", 0, 0) EndFunc StartWait() ; check in the array to see how many windows are opened Func StartWait() While 1 AnyDeskOpen() If $Default = 1 Then Sleep (3500) Else Exitloop EndIf WEnd EndFunc If $default = "2" Then ; If two windows are opened than someone is trying to connect to that computer and needs a click to accept connection try and click accept Button in the first window and the second one by activating diffrent window handle $extra = _ArrayToString($aWinList, "", 1, 1) $sString = StringReplace($extra, "AnyDesk", "") $hGUI = $sString WinActivate(HWnd($hGUI)) winmove (HWnd($hGUI), "", 50, 50) Mouseclick ("left", 100, 500) Sleep (1500) $extra = _ArrayToString($aWinList, "", 2, 2) $sString = StringReplace($extra, "AnyDesk", "") $hGUI = $sString WinActivate(HWnd($hGUI)) winmove (HWnd($hGUI), "", 50, 50) Mouseclick ("left", 100, 500) EndIf While 1 ;up to here everything seems to work AnyDeskOpen() ; while there is a connection there are two AnyDesk windows, if we close the connection than only one window remains opened and we check the array to see how many values it has If $Default = 2 Then Sleep (3500) Else ; At this point the program exits code 0 instead of resseting to function above StartWait() Exitloop EndIf WEnd ; thank you the intent is to keep the program going so it clicks accept again when reconnecting
  23. Hello Im wondering if using this https://ohtejera.github.io/ImperiusAutoIt/#started UDF can i make that I can control my windows application with phone? like for example click button Start on android phone and then something would be done in my windows app?
  24. Hi, This is my very first post in this forum and am also new with Autoit programming so be easy on me. Below is the code that I am trying to get the index of the item selected. No problem getting the text. Case $listEdition   ; handle of the list             local $index=0             $item=GUICTRLRead($listEdition)    ; This will return the text in the list             ; ==============   The loop below always fails  ==================             ; Meaning _GUICtrlListView_GetItemSelected($listEdition, $i) always return FALSE. WHY ???????              For $i = 0 To $editionArray[0] - 1   ; The content of the list in an array where editionArray[0] contains total count of items                 If _GUICtrlListView_GetItemSelected($listEdition, $i) Then                     $index = $i                     exitloop                 EndIf              Next              ;===================================================             ConsoleWrite( "Select Edition:     " & $item & "  index: " & $index & @CR) ....... Please look at the comments in the code & the pix attached. _GUICtrlListView_GetItemSelected($listEdition, $i) always returns FALSE. Another problem is on the list. It also populate the total count of items from the Array. How can I skip this item from populating to the list ?. Please advise and thanks
  25. Hi everyone! I'm using AutoIt for several years now and I really get the hang of it! I'm quite the curious OCD perfectionist kind of guy, so I can't help wondering.. what would be the best way to program stuff for the compiler / interpreter / scripting engine? We're talking about the inner workings of the AutoIt's core here, and how to give it as less friction as possible but also take care of the machine running the script. For example, Imagine a script where we would constantly have to assign a Boolean value to a variable: ; A: local $bool = false $bool = true $bool = true $bool = false ; B: local $bool = false check(true) check(true) check(false) func check($b) if $bool = $b then return $bool = $b endfunc In this case, would it be better to just overwrite (A) the variable or first check if we really need to (B)? What would be best for the computers memory if it had to do this for a year non stop? Another example, imagine you're writing a function with an if statement. If you would look under the hood of AutoIt, what would be the best way to give your computer as less work / code nesting stack filling as possible: ; A: func decide($b_Input) if $b_Input then ;do something else ;do something else endif endfunc ; B: func decide($b_Input) if $b_Input then ;do something return endif ;do something else endfunc Last one for now: ; A: while 1 ; do stuff wend ; B: while true ; do stuff wend Isn't AutoIt taking an extra step in converting 1 to a Boolean in example (A)? Or is it the other way around and does the (B) way make AutoIt first convert a keyword (true or false) to a numerical value (0 or 1). I think this kinda detail stuff is quite interesting, makes me wonder how AutoIt converts and runs our code. What are your opinions on this topic? Any coders who know more about the inner workings of AutoIt? Any people like me who ask themselves similar questions (with examples)? Let me know! 😉
×
×
  • Create New...