Jump to content

PlatinumHex

Members
  • Posts

    15
  • Joined

  • Last visited

About PlatinumHex

  • Birthday 06/17/1995

PlatinumHex's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks for the tip. Valuater is really amazing! I've tried it, however the trick didn't create a stable button, it messed up the Gui, also causing the Gui itself not-draggable. Is anyone a master at GDI +?
  2. I have seen another topic on Google searching with AutoIt http://www.autoitscript.com/forum/index....gle%20searcher&fromsearch=1&#entry285511 I have made one myself too: I also added as an attachment. However, that's not my intention. I'm new to AutoIt, so I'm really not that good with it (only started to learn last October) I'm a big fan of creating Gui's with GDI+, I reckon they look totally amazing. This script is heavily based on lod3n's launcher (as you can see in the picture above ) Thanks lod3n! What I need help with is the Gui Button creation, because it's not fancy enough. Any way to use images as button? Please reply me as soon as possible EDIT: Please use the download link below. The attachment is missing a file http://www.mediafire.com/?zqmikhd2nn2
  3. Hey guys! I'm not good at searching topics and posts. When I tried to add an attachment using the script, I get this.... +> File attachment added: C:\Users\Gavin\Documents\AutoItImage.jpg F:\AutoIt\ResearchDATA\SMTP_JOS\RC001.au3 (259) : ==> Object referenced outside a "With" statement.: .AddAttachment($S_Files2Attach[$x]) ^ ERROR ->16:31:09 AutoIT3.exe ended.rc:1 Any ideas? Regards,
  4. Hi! I kinda need a tutorial or explanation on how to use PNGs as GUI. I seen a lot of examples, but can't seem to quite get them. Here's what I learn so far..... I know about creating PNG Gui's with the UDF "_GUICreate_Alpha" What about SetBitmap()? Someone please tell me what is it for? Also, the hidden control container thingy... I assume that it is for managing the controls created that's intended for the PNG Gui. Please tell me more about that one as well. Yeah, I may sound really dumb. So please help me! Regards.
  5. @Danny35d, It make sense now, thanks. By the way, I notice that hot keys in AutoIT will always work even if your script is not active, any way to bypass that? It's kinda annoying though. @AdmiralAlkex, Hmm...It didn't show up. Only the "Open Command Prompt" Context. Thank you both for replying my post.
  6. Hi all! Please take a look at my problems. Thanks! Situation: Well, I sometimes need to use other accounts to manage their own files. Vista doesn't have the RunAs context menu like XP does, so I'd like to use Autoit to assit me. Script: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> HotKeySet("{ENTER}","LOGIN") Global $f_GUI = GUICreate("Local DOS System", 261, 166, 446, 437) GUISetFont(10, 400, 0, "Tahoma") Global $l_username = GUICtrlCreateLabel("Local Username:", 8, 16, 100, 20) Global $l_password = GUICtrlCreateLabel("Local Password:", 8, 48, 97, 20) Global $i_username = GUICtrlCreateInput("", 112, 16, 121, 24) Global $i_password = GUICtrlCreateInput("", 112, 48, 121, 24, BitOR($ES_PASSWORD,$ES_AUTOHSCROLL)) Global $b_launch = GUICtrlCreateButton("Launch Local DOS System", 8, 112, 243, 25, $WS_GROUP) Global $i_status = GUICtrlCreateInput("Please Login", 112, 80, 121, 24, BitOR($ES_AUTOHSCROLL,$ES_READONLY)) Global $l_status = GUICtrlCreateLabel("Login Status:", 8, 80, 79, 20) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $b_launch LOGIN() EndSwitch WEnd Func LOGIN() $sUserName = GUICtrlRead($i_username) $sPassword = GUICtrlRead($i_password) $runas = RunAs($sUserName, @ComputerName, $sPassword, 1, @ComSpec, @SystemDir) ;RunAs($sUserName, @ComputerName, $sPassword, 0, @ComSpec, @SystemDir) If $runas = 0 Then GUICtrlSetData($i_status,"Login Failed!") Else GUICtrlSetData($i_status,"Login Success!") EndIf EndFunc Problem: However, after successful launching the CMD window(Or Dos Window), I CAN'T EVEN ENTER ONE COMMAND. When I entered one command, a new CMD window pops up. What's the problem within my script? Regards, PlatinumHex
  7. Does anyone here know how to use 'Secure Desktop Mode' in your script? Maybe, through DLLCall or something? Note: What is 'Secure Desktop Mode' For those who don't know what 'Secure Desktop Mode' is. It occurs in Windows 7 or Vista, the screen goes dark when the User Account Control window comes up and you can't do a damn thing unless you type something. That's my aim, where the user can't anything else, unless input something into my script. Thanks!
  8. Thanks a lot Melba23! I'm definitely gonna save a copy of your tutorial to my HD. Just another question, How do you create an UDF with an optional parameter?
  9. I need some help with creating your own UDF. Please explain to me how a UDF works and such. I know the most common one is eg: MyFunc() I seen people using UDF with extra usage in the brackets. Now how do I do that? Please help me out, ok? A step-step tutorial would be nice. I know I'm the worst at searching, but I just could find any thing related to this. Regards, Thank you for reading anyway.
  10. Melba23, rajeshontheweb Thanks for replying my post. >"F:\Program Files\AutoIt\SciTe\SciTE4AutoIt3\AutoIt3Wrapper\AutoIt3Wrapper.exe" /ShowGui /in "C:\Users\Gavin\Desktop\Project_HM\Code_Source.au3" +>15:44:52 Starting AutoIt3Wrapper v.2.0.1.22 Environment(Language:0409 Keyboard:00000409 OS:WIN_VISTA/Service Pack 2 CPU:X64 OS:X86) -> 1 Change(s) made. >Running AU3Check (1.54.19.0) from:F:\Program Files\AutoIt +>15:45:07 AU3Check ended.rc:0 >Running:(3.3.4.0):F:\Program Files\AutoIt\aut2exe\aut2exe.exe /in "C:\Users\Gavin\Desktop\Project_HM\Code_Source.au3" /out "C:\Users\Gavin\Desktop\Project_HM\Code_Source.exe" /nopack /icon "C:\Users\Gavin\Desktop\Project_HM\AppIco.ico" /comp 2 +>15:45:09 Aut2exe.exe ended.rc:0 >15:45:09 Performing the Program Resource Update steps: ...>Updating Program Version information. +>15:45:11 Program Resource updating finished successfully.rc:0 >Running:(3.3.0.0):F:\Program Files\AutoIt\aut2exe\upx.exe" --best --compress-icons=0 -qq "C:\Users\Gavin\Desktop\Project_HM\Code_Source.exe" 835426 -> 500578 59.92% win32/pe Code_Source.exe +>15:45:15 UPX Ended: rc:0 +>15:45:15 Created program:C:\Users\Gavin\Desktop\Project_HM\Code_Source.exe ->15:45:15 Warning: This is an Unicode compiled script and will not run on Win9x/ME. >Exit code: 0 Time: 26.951 Above is the output results. To my surprise, this time it worked! I got my Au3 compiled into a nice EXE. Thanks for all your help. Still, why didn't it work last time I tried? I wonder if my anti-virus removed it. Yeah, Mcafee doesn't inform me when it removes stuff. I hate it! Or is it you can't have "space" in filename when compiling? eg: File Name.au3
  11. Thank you for the tip. And I thought I was using the full-version of SciTe all along! When I compile it, the exe didn't show. Where did it go?
  12. Could someone tell me how to edit a compiled Autoit script's properties? Like: File Description, File Version, File Comment, Copyright etc. Thanks!
  13. I'm facing the same problems as well. I tried what Yashield suggested, but only worked once. First I run the script, when I click the "About" Button it worked fine. The About Box showed up. After that, I closed the "About" Box. Then, I tried clicking the "About" Button again. Yet! Nothing showed up! What's wrong?
×
×
  • Create New...