Jump to content

Recommended Posts

Posted

Hello i am trying to make a script to enter sites from firefox but i dont know how to make it to open in tabs.

so questions are

1)how to write at autoit to open a site in a new tab?

2)also how i can make a script ask for password before i enter main gui?

can anyone help me a bit at those. what are the command i need and maybe a small example if u can

Posted

thanks

anyone know how to password a script so it will ask me a password before it enters main gui?

Posted

You can make a CRC32 or MD5, etc.. key of your hard disk serial number and preform a check to see if the string key match the MD5 key of the hard disk. It'd be wiser to drop some false functions to and crappy code to despair the novice reverser though I believe most won't go this way on your computer, but it's always better to put as many fast crap as possible. The rest is clear I think.

Posted

can u plz make it a bit more clear what is CRC32 or MD5 and how exactly i find hard disk key and what exactly u mean perform a check and how u do it?

Posted (edited)

You could use something like this:

#include <editconstants.au3>
#include <guiconstants.au3>

Opt ("guioneventmode", 1)

$gui = GUICreate ("Password", 200, 33)
$input = GUICtrlCreateInput ("", 5, 5, 130, 23, $es_password)
GUICtrlCreateButton ("Enter", 140, 5, 55, 23)
GUICtrlSetOnEvent (-1, "password")
GUISetOnEvent ($gui_event_close, "close")
GUISetState (@SW_SHOW)

While WinExists ("Password")
    Sleep (100)
WEnd

;~ rest of script here

Func password ()
    If GUICtrlRead ($input) = "put password here" Then
        GUIDelete ($gui)
    Else
        GUICtrlSetData ($input, "")
    EndIf
EndFunc


Func close ()
    Exit
EndFunc
Edited by pigeek

The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...