Jump to content

controlsend() with small and big letters


 Share

Recommended Posts

How do i make so controlsend can send passwords that is uppercase and lowercase?

When i send 123456ABCabc1234567 it comes out as, 123456abcabc1234567.

Why does it do that? what do i do wrong?

The code comes from a settings file and puts inside a variable that sends via controlsend.

Edited by bobbby
Link to comment
Share on other sites

  • Moderators

bobbby,

Use the final "flag" parameter of ControlSend to send the keys "raw" - that ususally works. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

bobbby,

Use the final "flag" parameter of ControlSend to send the keys "raw" - that ususally works. ;)

M23

I use raw, but it still not send it in uppercase :/

Maybe the textinput can't accept that, or check for caps and shift keys when they are pressed?

Link to comment
Share on other sites

Have you try with ControlSetText ? Posted Image

I tried, but its change only the titlebar instead of the text.

And it's flash too. So controlsend should be that method or send.

And i can't get it to work with uppercase and lowercase.

Link to comment
Share on other sites

bobbby,

Use the final "flag" parameter of ControlSend to send the keys "raw" - that ususally works. ;)

M23

In my experience ControlSend is not very reliable. I have a script that uses it with the raw flag for sending text like

"IAL.0=IAL.0 or 2^7".

Every now and then this will be received as something like

"IAL>0=IAL.) or 2^7"

as though the shift was pressed for '.' or '>'.

Changing the options for key delays hasn't helped me but it might help others. (SendKeyDownDelay, SendKeyDelay)

If the control is suitable perhaps ControlCommand will work better.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Do you use AutoIt Window Info for find the good ControlId ?

Yes i always use Autoit Window Info to find the controlID's.

But this is in flash. It's a code you need to write in.

It's a game you need to change the code inside.

I use this:

1. Download the swf-file.

2. Upload to swf-to-exe.com, and download the exe.

If i use embedded it's the same with controlsend.

But it's using IE and i want to run it through Chrome/Firefox/Opera.

Link to comment
Share on other sites

ControlSend($handle,"",$controlID,"123456+{abc}1234567

That looks easy, but now i have a code generator too.

func codegen($o)
    $h = ""
    for $i = 1 to 15
        $r = random(1,3,1)
        if $r = 1 Then
            $d = chr(random(48,57,1))
        elseif $r = 2 then
            $d = chr(random(65,90,1))
        elseif $r = 3 then
            $d = chr(random(97,122,1))
        EndIf
        $h = $h & $d
    Next
return $h
EndFunc

func chc($cc)
    $cc1 = ""
    $len = stringlen($cc)
    for $a = 1 to $len
        if stringisupper(stringmid($cc,$a,1)) Then
            $cc1 = $cc1 & stringreplace(stringmid($cc,$a,1),stringmid($cc,$a,1),"+{" & stringmid($cc,$a,1) & "}")
        Else
            $cc1 = $cc1 & stringmid($cc,$a,1)
        EndIf
    Next
    return $cc1
EndFunc

Edit:

I can send to the loginbox now. But it changes some chars to uppercase and some not.

Do i need to change it to send 1 and 1, instead of a whole line?

Here is the result:

Fixed Code: 33+{J}h+{Z}+{I}f+{X}o+{A}u+{X}+{Q}4d

Sent to the login: 33Jhzifxoauxq4d

Edit1:

Sent the code 1 and 1 and got this...

Lower: 3

Lower: 3

Upper: +{J}

Lower: h

Upper: +{Z}

Upper: +{I}

Lower: f

Upper: +{X}

Lower: o

Upper: +{A}

Lower: u

Upper: +{X}

Upper: +{Q}

Lower: 4

Lower: d

Should be: 33JhZIfXoAuXQ4d

Sent to login: 33jhzifxoauxq4d

Edited by bobbby
Link to comment
Share on other sites

  • 6 years later...

This post is nearly 7 years old, pretty sure they don't care at this point.

 

Necropost.png

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

  • Moderators

Love that one @BrewManNH. I used to use this one, but more and more folks are not old enough to get it

Necro.png

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...