
DMEE
Active Members-
Posts
81 -
Joined
-
Last visited
Everything posted by DMEE
-
What is it that you use the array for? I use these matrices of these sizes, but intentionally didn't program them in autoit. Especially not if you need to process the data and calculate with them
-
Waiting for the end of a window
DMEE replied to yougoudai's topic in AutoIt General Help and Support
First of all, your English is quite all right(if I as a dutch person can judge). On your question: It is quite dangerous to look only for the existence of a window in these kind of cases. It would probably be more safe to first get the process ID and watch that one. If you like to go on this way, I'd better investigate the problem if you show the important parts of your script. Note that the sleep command has milliseconds as input, this can result in the described behaviour. If the window pops-up, you can also use the winwaitactive command, where you can specify the timeout (in seconds). I hope this will help you, else please give some more information -
A quick search on google shows that there is a windows system method cursor.hide I guess that this method is called by the function I referred to. The system method is only for one window indeed. I don't have any experience with hiding the cursor from all windows, but I guess that a inquire of all windows and a do loop over all these windows should work. note that it is a known fact that not all programs handle this cursor.hide well. Powerpoint e.g. doesn't obey Private Sub myButton_MouseEnter(sender As Object, e As System.EventArgs) Handles myButton.MouseEnter ' Hide the cursor when the mouse pointer enters the button. Cursor.Hide() End Sub 'myButton_MouseEnter Private Sub myButton_MouseLeave(sender As Object, e As System.EventArgs) Handles myButton.MouseLeave ' Show the cursor when the mouse pointer leaves the button. Cursor.Show() End Sub 'myButton_MouseLeave
-
What actually is the problem is that the program starts, then processes the commands that it has to do (create the gui). Then it goes on with the next command, when all commands are processed, the program will exit, just as you described. What you want to achieve is that the program waits to find which function should be called, so after the creation of the gui, you should add something like: While 1 Sleep(100) WEndoÝ÷ Ù8^¢w¯z{f¡×°Yj붩®+jkhæ¶ÚëÞا¶ º,¨¹ÊÞj×jwZ~éܶ*'Â)eiËnjYrmçWº{bØ^~éܶ*'ªê-{ªê-ÇW"jezg§µçb*.Êy«¢+Ø¥¹±Õ±ÐíU% ½¹ÍѹÑ̹ÔÌÐì()=ÁÐ ÅÕ½ÐíU%=¹Ù¹Ñ5½ÅÕ½Ðì°Ä¤(I¥½¸MQIP-½U$ÍÑ¥½¸½É´õèÀäÈíÍÑÕÁÌÀäÈí%¹Íѱ±ÉÕ¤¹á(ÀÌØí½É´ÄôU% ÉÑ ÅÕ½ÐíÕѼ%¹Íѱ±ÈÅÕ½Ðì°ÈÔÈ°ÈÌà°ÌÌÈ°ÄÔФ(ÀÌØí ¡½àÄôU% Ñɱ ÉÑ ¡½à ÅÕ½Ðí=Á¸=¥ÅÕ½Ðì°ÈаÈаÄÀÔ°Äܤ(ÀÌØí ¡½àÈôU% Ñɱ ÉÑ ¡½à ÅÕ½Ðíµ%IÅÕ½Ðì°ÈаÐÀ°ÄÀÔ°Äܤ(ÀÌØí ¡½àÌôU% Ñɱ ÉÑ ¡½à ÅÕ½Ðí¥É½àÅÕ½Ðì°ÈаÔØ°ÄÀÔ°Äܤ(ÀÌØí ¡½àÐôU% Ñɱ ÉÑ ¡½à ÅÕ½Ðí¥Ù`ÅÕ½Ðì°ÈаÜÈ°ÄÀÔ°Äܤ(ÀÌØí ¡½àÔôU% Ñɱ ÉÑ ¡½à ÅÕ½ÐíaY¥ÅÕ½Ðì°Èаàà°ÄÀÔ°Äܤ(ÀÌØí ¡½àØôU% Ñɱ ÉÑ ¡½à ÅÕ½Ðíe¡½¼5Í͹ÈÅÕ½Ðì°ÈаÄÀаÄÀÔ°Äܤ(ÀÌØí ¡½àÜôU% Ñɱ ÉÑ ¡½à ÅÕ½Ðíµ½¸Q½½±ÌÅÕ½Ðì°ÈаÄÈÀ°ÄÀÔ°Äܤ(ÀÌØíAɽÉÍÌÄôU% Ñɱ ÉÑAɽÉÍÌ ÈаÄÐаÄäÌ°ÈÔ¤(ÀÌØí ¡½ààôU% Ñɱ ÉÑ ¡½à ÅÕ½Ðíɵ]ÙÈÅÕ½Ðì°ÄÌØ°ÈаÄÀÔ°Äܤ(ÀÌØí ¡½àäôU% Ñɱ ÉÑ ¡½à ÅÕ½Ðí¥±é¥±±ÅÕ½Ðì°ÄÌØ°ÐÀ°ÄÀÔ°Äܤ(ÀÌØí ¡½àÄÀôU% Ñɱ ÉÑ ¡½à ÅÕ½ÐíUѽÉɹÐÅÕ½Ðì°ÄÌØ°ÔØ°ÄÀÔ°Äܤ(ÀÌØí1°ÄôU% Ñɱ ÉÑ1° ÅÕ½Ðí]¡ÐÁɽɵ̼å½ÔÝ¥Í Ñ¼¥¹Íѱ°üÅÕ½Ðì°Èаà°ÄàÈ°Äܤ(ÀÌØí ¡½àÄÄôU% Ñɱ ÉÑ ¡½à ÅÕ½Ðí%5@ÅÕ½Ðì°ÄÌØ°ÜÈ°ÄÀÔ°Äܤ(ÀÌØí ÕÑѽ¸ÄôU% Ñɱ ÉÑ ÕÑѽ¸ ÅÕ½Ðí%¹Íѱ°ÅÕ½Ðì°ÈаÄàаÜÔ°ÈÔ°À¤(ÀÌØí ÕÑѽ¸ÈôU% Ñɱ ÉÑ ÕÑѽ¸ ÅÕ½Ðíá¥ÐÅÕ½Ðì°ÄÄÈ°ÄàаØÔ°ÈÔ°À¤)U% ÑɱMÑ=¹Ù¹Ð ÀÌØí ÕÑѽ¸Ä°ÅÕ½Ðí%¹Íѱ°ÅÕ½Ðì¤)U%MÑMÑÑ¡M]}M!=¤(¹I¥½¸9-½U$ÍÑ¥½¸()]¡¥±Ä(M±À ÄÀÀ¤)]¹()Õ¹%¹Íѱ° ¤)%U% ÑɱI ÀÌØí ¡ ½àĤôÀÌØíU%} ! -Q¡¸)IÕ¹]¥Ð ÅÕ½Ðí½Á¹½¥¹áÅÕ½Ðì¤)¹%)%U% ÑɱI ÀÌØí ¡ ½àȤôÀÌØíU%} ! -Q¡¸)IÕ¹]¥Ð ÅÕ½Ðíµ¥É¹áÅÕ½Ðì¤)¹%)%U% ÑɱI ÀÌØí ¡ ½à̤ôÀÌØíU%} ! -Q¡¸)IÕ¹]¥Ð ÅÕ½Ðí¥É½à¹áÅÕ½Ðì¤)¹%)%U% ÑɱI ÀÌØí ¡ ½àФôÀÌØíU%} ! -Q¡¸)IÕ¹]¥Ð ÅÕ½Ðí¥Ùà¹áÅÕ½Ðì¤)¹%)%U% ÑɱI ÀÌØí ¡ ½àÔ¤ôÀÌØíU%} ! -Q¡¸)IÕ¹]¥Ð ÅÕ½ÐíáÙ¥¹áÅÕ½Ðì¤)¹%)%U% ÑɱI ÀÌØí ¡ ½àؤôÀÌØíU%} ! -Q¡¸)IÕ¹]¥Ð ÅÕ½Ðí塽¼¹áÅÕ½Ðì¤)¹%)%U% ÑɱI ÀÌØí ¡ ½àܤôÀÌØíU%} ! -Q¡¸)IÕ¹]¥Ð ÅÕ½Ðíµ½¸¹áÅÕ½Ðì¤)¹%)%U% ÑɱI ÀÌØí ¡ ½àà¤ôÀÌØíU%} ! -Q¡¸)IÕ¹]¥Ð ÅÕ½ÐíɵÝÙȹáÅÕ½Ðì¤)¹%)%U% ÑɱI ÀÌØí ¡ ½àä¤ôÀÌØíU%} ! -Q¡¸)IÕ¹]¥Ð ÅÕ½Ðí¥±é¥±±¹áÅÕ½Ðì¤)¹%)%U% ÑɱI ÀÌØí ¡ ½àÄÀ¤ôÀÌØíU%} ! -Q¡¸)IÕ¹]¥Ð ÅÕ½ÐíÕѽÉɹйáÅÕ½Ðì¤)¹%)%U% ÑɱI ÀÌØí ¡ ½àÄĤôÀÌØíU%} ! -Q¡¸)IÕ¹]¥Ð ÅÕ½Ðí¥µÀ¹áÅÕ½Ðì¤)¹%)¹Õ¹
-
newbee question.ControlClick help
DMEE replied to sosimple's topic in AutoIt General Help and Support
You're welcome -> but not I am the God, but the person who wrote the help file... -
newbee question.ControlClick help
DMEE replied to sosimple's topic in AutoIt General Help and Support
try ControlClick("SetFSB 2.1.69.2","","[TEXT:Get FSB]","left",1) -
_WinAPI_ShowCursor($fShow)
-
first: _ProcessGetName ( $iPID ) Then: _WinAPI_FindExecutable($sFileName[, $sDirectory = ""])
-
You can put the send statements in a For loop
-
iGryc, what is it that you actually want to do with opening the file. The FileOpen creates a handle to file which is put in the memory. It is not actually visible to the user. If it is that what you try to do, you should use the FileRead command as well $file = FileOpen("test.txt", 0) ; Check if file opened for reading OK If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf $text = FileRead($file) MsgBox(0,"FileContent",$text) FileClose($file)
-
you can use the hotkeyset, create an infinite while loop (while 1 ... wend) call the function you want when ctrl-c is pressed (due to the hotkeyset)
-
you can use a batch script that is executed on autoitexit. Func OnAutoItExit ( ) ... EndFunc
-
The solution of Zorphnog will be nice, but if you like the structure I proposed earlier, you can use a second condition after the first If statement: If GUICtrlRead($a) = "?" Then If GUICtrlRead($B) = "?" Then $npath=(GUICtrlRead($c)) Else $npath=(GUICtrlRead($B) & "." & GUICtrlRead($c)) EndIf ElseIf GUICtrlRead($B) = "?" Then $npath=(GUICtrlRead($c)) Else $npath=(GUICtrlRead($a) & "." & GUICtrlRead($B) & "." & GUICtrlRead($c)) EndIf
-
Do I get it right that the user can only select one questionmark? In that case you can use an elseif statement like this (or a case select statement in a similar way): If GUICtrlRead($a) = "?" Then $npath=(GUICtrlRead($B) & "." & GUICtrlRead($c)) ElseIf GUICtrlRead($B) = "?" Then $npath=(GUICtrlRead($c)) Else $npath=(GUICtrlRead($a) & "." & GUICtrlRead($B) & "." & GUICtrlRead($c)) EndIf If the user can select more than one questionmark, you can use set it up for example this will not work
-
1. FileCopy (@Scriptdir & "\source", "dest" [, flag] ) 2. The file can be renamed by a filemove command: FileMove ( "source", "dest" [, flag] ) Just keep de source and destination directory the same.
-
Help please, can you see anything wrong with this?
DMEE replied to Wikipete's topic in AutoIt General Help and Support
There are a few errors in the script. 1. the operator to compare two values can be found in the help file; you probably need >= instead of => 2. the endif at the end of line 4 is not permitted, this will give a syntax error. 3. In general each if should have an accompanying endif and each else statement should be preceded by an if ... then statement, so don't use the endif before the else statement 4. an Endfunc should be preceded by a func funcname() statement. this will result in something like: Func funcname() #include <IE.au3> Dim $sAnswer = Msgbox (6+64, "Hello again!", "The latest version of Autoit will now be downloaded to your computer, If you do not wish to do this yet, please click cancel and this presentation will cancel and you will return to normal functionality of your computer. If you do wish to proceed, click continue.") If $sAnswer >= 9 then $oIE = _IECreate ("http://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe") MsgBox (6+64, "Please install the file to your system, I will give you 2 mins to do this, If you finish before this period is up, please click continue. I have included a free game, just incase you get bored.", 1279) Run ("C:\Documents and Settings\Admin\Desktop\MWR_Snake_5") Sleep (120000) Else Exit Endif EndFunc -
From the help file: ;Random letter If Random() < 0.5 Then ;Capitals $Letter = Chr(Random(Asc("A"), Asc("Z"), 1)) Else ;Lower case $Letter = Chr(Random(Asc("a"), Asc("z"), 1)) Endif
-
There are several ways to check if a program is running. One of the most common ways is to lock a file on startup. This is a way to prevent a double access, which can give access violations (to a pointer which is removed already e.g.). Even if it is possible to find a way to ensure the double run, it can very well be that the program itself is not capable of handling that, which can result in severe errors.
-
advise user wich point of script is running...
DMEE replied to myspacee's topic in AutoIt General Help and Support
Maybe you can use the function SplashTextOn() as there is no interaction with the user there. -
The quoted script is somewhat adapted; thanks for the start i542. It does not delete the lines in the first file, but writes the lines whenever these are the same in the second file.