Quantcast
Channel: AutoIt v3 - General Help and Support
Browsing all 12506 articles
Browse latest View live

Sort files in dir by date and time in its names

Hello scripters! I need to write a simple app which sort files in a directory by its names and keep only last 50. Auto delete the oldest files when more than 50 copies. Here are some filenames: ......

View Article


Read ini File to Array

I am trying to write an app where a user saves a configuration to a file then loads it later to replay it. I will probably use iniwrite for this but I am trying to find the best way to read a file like...

View Article


[ASK] MySQL and String problem

I try to create a function that read MySQL record based on a criteria and return a particular field value, but can not find a way to pass a $sField parameter: Func ReadDatabaseMySQL($sSearchField,...

View Article

String

Hey, I have a problem to pick the strings in a file. I know that you have to use StringRegExp, but I can not figure out how. Here's an example: DOC;NO;BIG As you can see, the constant is a string...

View Article

Need help with console management

I'd like to make a small tool using the console. My only problem is the exit button. You can close it without any warning message or such a thing. Is it possible to get when the user presses the X...

View Article


slmgr.vbs problems

I have been trying to get slmgr.vbs to work from autoit but cant seem to get the darn thing to work here is my code $prodkey = "00000-00000-00000-00000-00000" Func _rekey($key) RunWait(@ComSpec & "...

View Article

Timer to Prevent Screensaver

I'm looking for a function that stands alone (not in a loop, etc.) and when a preset time elapses it moves the mouse to prevent the screensaver from coming on. I don't think I can get TimerInit and...

View Article

PixelSearch syntax error

Hi, I am making a very small widget that searches for a pure blue pixel (hex: 0000FF) on the screen, then gives you the coordinates of it. $pixcoor = PixelSearch(610, 53, 805, 245, 0000FF) MsgBox(0,...

View Article


INetGet is trolling me hard?

Hey So, as you know, I made an installer When I'm at the download part, everything is fine... For me But for others, the .rar archive is damaged/broken when they try to open it. I checked mediafire and...

View Article


I want to create an autoit script which use WinAPI to setText and click...

Hello, I have a following autoit script which works fine for me. $title = "Open" $file = "C:\temp\mylogfile.txt" If WinExists($title) Then ControlSetText($title,"","[CLASS:Edit;]",$file)...

View Article

How do I get the control ID of a omnibox so I can use it in coding

I have a little bit of code that opens my browser (chrome), I want to enter a string into the URL omnibox using ControlSend. Each time I launch the browser the control ID changes. I need to find a way...

View Article

Get Windows context menu entries??

Hello. This has been discussed several times here, but apparentely the solution is yet to be found. If i have this context menu example here: [ autoit ]        expandcollapse  popupif...

View Article

Submit not clicking,,,,,,,,not a link not a button but <iewc:>

Hi All, In my web aplication I am not able to click a link called Submit. I tried all the possible means like finding the list of links present in the page and then clicking it by _ClicklinkbyText,...

View Article


SAP System Messages causing issues with AutoIt

I have a set of scripts that basically log into SAP and run a transaction.  They normally work great, but around the end of the month, we typically have system messages posted (where someone sends a...

View Article

Problems with @ComSpec, 'net user' and DriveMapAdd

Can anyone tell me why this isn't working?  I've included the debug code also. #include <File.au3> ; Not necessary for the block in question, but the goal of the script is to create some...

View Article


if global variables should be avoided, what's the best alternative? (in the...

I've a general question about the best practice in programming with function in AutoIT or in general: supposing to have multiple unrelated variables that you set only inside a function and read outside...

View Article

Using HotKeySet() with imaginary key

Alright, so I found this tutorial the other day, that walks through remapping the capslock key to another key. I jumped on it, seeing how lapscock is probably the most useless key on the face fo the...

View Article


Help? On Fatal Error, Launch different script.

I have an autoit script named "script.exe" and when it gets a fatal error it stops running and opens a msgbox. The script makes use of "#include <IE.au3>" the fatal errors only occur when I am...

View Article

PixelSearch syntax

I need to have pixelsearch search an area of pixels that stretches across the screen and is one pixel tall. Would I use (I am trying to search the line of pixels at 144): pixelsearch(0 ,1050, 144, 144,...

View Article

MsgBox

I am a novice programmer MsgBox needs to explain MsgBox Function

View Article
Browsing all 12506 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>