Jump to content

AppTux

Active Members
  • Posts

    130
  • Joined

  • Last visited

Everything posted by AppTux

  1. First, look at the top of the page, above the first post on the page: This is not a general support forum! --------------------------------------------------------------------------------------------------------------------------------------------------- You mean the image is too small so it looks pixelated? Then you can't do anything else than make a image on your own. But I've seen the image is 128x128px, which is enough. Please explain your question more because I don't understand what you mean..
  2. Do you mean that you want to shellexecute the .xmcd file with the highest number??? Then you I think you need something like this: $manuf = "Pan" $Model = "NCR18650D" $highestvalue = 0 For $i = 0 To 99;I think 99 versions are enough??? If you need more just set another 9 after that, then can you use 900 versions more If FileExists("\\vette\database\" & $manuf & "\" & $Model & "\configs_check_rev" & $i & ".xmcd") Then;Checks if the file exists and if so, the $highestnumber is set to the $i value $highestnumber = $i;Set $highestnumber to $i EndIf Next ShellExecute("\\vette\database\" & $manuf & "\" & $Model & "\configs_check_rev" & $highestvalue & ".xmcd", "", "\\vette\database\" & $manuf & "\" & $Model, "open");ShellExecutes the .xmcd with the highest value, by example 34 This should work, I haven't tested, because I don't have that kind of hierarchy of my files.
  3. When I look quickly over your code, it even won't run!! On the 10th line you have a begin of a Do loop, but after that I never see any Until. You better set it in autoit brackets, that's easier to read.
  4. You could look for mouse movement with MouseGetPos() and look every second if the position is different. But I ever heard of a DllCall() function so Windows does everything for you. I really don't know again what it was.. I usually don't use the DllCall() function.
  5. Gedzy, I would recommend to make the window a bit less transparent: Something like a transparency of 240.
  6. Gedzy, Don't you have a Edit button in the right-bottom corner of your post? It's really, really pretty horribly annoying if you post almost the same post but with a bit difference. I don't know how much posts you need to have before you can edit and remove posts... I forgot that.
  7. Zulqarnain, There's nothing wrong with AdLibRegister(). I added a ConsoleWrite() function to the ErrorRemover() function and there is written something in my console. Your mistake is in the first line of your function. You look for a window called 'Error'. Your MsgBox() made doesn't have the name Error. Can you say 1=4??? No, you can't. This is the same. 'AutoIt3 Error: Error has occured! = Error'. Is that true?? No, I don't think so. You have to read the whole title of the window, not just a piece of it. Do you understand?? I think you must have enough with this information.
  8. Most times Run doesn't work, I use ShellExecute(). That's always working as far I know .
  9. saurabh When you use ShellExecute(), it all depends on the browser what's default on the PC. Then would I recommend your _IECreate() script. Then you always know what browser is used: Yep, Windows Internet Explorer. If you also know the title of the page you want to open (in this case Google) and you know how the title of IE is made, you can make with these things the title of the window. In this case it's: (title of page) - Windows Internet Explorer. Then simply use WinMove("Google - Windows Internet Explorer", "", xpos, ypos) and move it to the position you want.
  10. Melba23's script does... You also can do it like this: (almost the same as Melba32's) $Len = 10 $string = "" For $i = 1 To $Len $Case = Random(0, 1, 1) If $Case = 0 Then;lower-case $string &= Chr(Random(97, 122, 1)) ElseIf $Case = 1 Then;upper-case $string &= Chr(Random(65, 90, 1)) EndIf Next ConsoleWrite($string & @CR) Edit: whoa, didn't expected that much replies in a few moments
  11. I would recommend a Random function with about 10 digits, that are about 10*10*10*10*10*10*10*10*10*10=10.000.000.000 = 10 billion possibilities, I don't think there would be double numbers, and if so, make another function that reads a file with all names, and if there is a double one created, just create another one and write it in the file.
  12. sak, You really want to see a useless list of files?? Yeah right. For you, but not for everyone. The most people hates to wait long before the file is found. The method of searching file is good, but if you want that other people use this program, then will I adjust the sleep value to 10 or something like that . PS: Can't you speak a bit clearer English?? Your English looks like Google Translate.
  13. FastJMAN1, I would recommend the Graphical User Interface (GUI) Help and Support forum. Edit: Removed some includes of your code, now can I look at it. It's logical: The WinMove() Function is called. You ever seen a multifunctional script??? I haven't. It's running the WinMove() function. I'm not sure, but there must be a function which animates the image, but that can't run because the WinMove() function is already running. You understand??? PS: Please, please post working code without I have to download several includes. That's way easier for people who haven't.
  14. yorba, How do you mean to make it tranparent?? If you mean what I think, you have to use WinSetTrans($Locked, "", [transparency you want to have from 0-255, by example 240]) before GUISetState(@SW_SHOW, $Locked).
  15. FastJMAN1, Why you had to cut a hole in the GUI? You can just replace the Overlay Window with your space window... I think you used the older version with just a screen shot, the new version has a Overlay Window with transparency of 1... I think if you used the newer version, you hadn't that much work. But that's just after you made it.
  16. Nice program! I was trying to do the expert mode, but it was a bit... boring after a time. But that's just the kind of games I like.
  17. Skykaiwen, Explain your question better, and preferably in the General Help And Support forum. But do you mean a list of the files I have in the folder. You have to make that list on your own I think. Look in the helpfile for FileFindFirstFile() and FileFindNextFile(). And I thought Melba32 made a UDF you want, I think....
  18. Gedzy, Works good, but one remark: Why do you use in the For loop for 'unlocking' Step 2??? And if you also have Sleep(50), you get 50*50 = 2500 ms = 2,5 seconds for 'unlocking'. That's way too long I think...
  19. I don't know how to fix it, but I found it happens in this part: $hBitmap2 = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hBitmap1) $oldbmp = GUICtrlSendMsg($ctrl, 0x0172, 0, $hBitmap2) If $OldBmp Then _WinAPI_DeleteObject($OldBmp) I think you load a lot of bitmaps into the memory, I think you have to clean the memory of GDIPlus in the function. But I don't know how you have to do that . But I'm sure the problem is in that part. Edit: Add this line on the bottom of the _Tic() function and you don't have the memory problem anymore: _GDIPlus_ImageDispose($hBitmap1) But you don't see anything more...
  20. FastJMAN1, One remark: This is meant as a screen lock and not as a desktop replacement. If you want to make a desktop replacement I don't think it's that handy: How about the menu start, huh???? shanet, Thanks! PS: This is and will always be a screen lock.
  21. I would suggest to make it a child window of Program Manager (Class Progman). I'm not sure but it's just intuition. I think it should work... Edit: I used the AutoIt v3 Window Info
  22. @wraithdu, Never thought of that! Maybe can I just modify the default $show_flag to @SW_SHOW. I think that'll work better
  23. Like the space but one problem: When I hover the slider, the space pauses. It only resumes when you leave the slider. But I still prefer the transparent windows. I still want to make some options for password, and a option if you want to use the desktop view or a (animated) wallpaper. You have me interested in a animated wallpaper, and maybe am I going to use animated wallpapers. But nothing is for sure.
  24. Whoa, I didn't expected it could be so much shorter! I think the credits would go to you... Notepad.exe still doesn't work, but others works. You saved me a lot of work, because I'm working on a Run program, and I wanted a function you can run programs as another user, and this is helping me a lot I think.
  25. Thanks for your reply, Yes, it's poorly written, it has a lot of bugs and other, I haven't said it was a beta if it was working all. I just go off the list you wrote: 1) Error checking is not my strongest point. This is just my first UDF and I still have to learn a lot about it. I'll modify. 2) Almost same, I don't have skills enough to handle all errors. 3) I'll modify. 4) Same 5) Same I'll modify the code as fast I can. Edit: modified, look below: #include-once #include <File.au3> Func _ShellExecuteAs($torun, $username, $domain, $password, $logon_flag, $workingdir = @SystemDir, $show_flag = 0, $opt_flag = 0) Dim $szDrive, $szDir, $szFName, $szExt If $username = "" Then Return 0 ;No username given, return 0 If $domain = "" Then Return 0;No domain given, return 0 If $logon_flag = "" Then Return 0 ;No logon flag given, return 0 If $torun = "" Then Return 0 ;No run value given, return 0 $fileinfo = _PathSplit($torun, $szDrive, $szDir, $szFName, $szExt) $extension = $fileinfo[4] $Standard = RegRead("HKEY_CLASSES_ROOT\" & $extension, "") If $Standard = "" Then SetError(1) $ShellCommand = RegRead("HKEY_CLASSES_ROOT\" & $Standard & "\shell\open\command", "") If $ShellCommand = "" Then SetError(2) $ShellCommand = StringReplace($ShellCommand, "%1", $torun);Set parameters to $toRun $ShellCommand = StringReplace($ShellCommand, "%L", $torun);Set parameters to $toRun $ShellCommand = StringReplace($ShellCommand, "%SystemRoot%", @WindowsDir);Set the %SystemRoot% $runas = RunAs($username, $domain, $password, $logon_flag, $torun, $workingdir, $show_flag, $opt_flag) If @error Then Return SetError(@error, 0, 0) Return $runas ;Return Id of Process. EndFunc ;==>_ShellExecuteAs With your comments I modified the code.
×
×
  • Create New...