Jump to content

EnCodeIt 2.0


SmOke_N
 Share

Recommended Posts

  • Replies 297
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Well im inclined. So the feature works. :-)

Im very into using COM objects since latest relaese.

You have a need for some test results on that matter or is there an other area of autoit scripting(encoding) that you want to see tested?

Creator

Link to comment
Share on other sites

The problem seems to be

Send("{DOWN "&$iadjdown&"}")

Send("{UP "&$iadjup&"}")

You can take it from there.

i'm not sure if the command is right

but i think it should be like this

Send("{DOWN & $iadjdown}")

Send("{UP & $iadjup}")

or maybe like this

Send("{DOWN}{$iadjdown}")

Send("{UP}{$iadjup}")

well it would depend on what $iadjdown ='s whether to use "$iadjdown" or {$iadjdown} i think

ok got it right from the help

I guess you need the spaces

Send("{DOWN " & $iadjdown & "}")

Send("{UP " & $iadjup & "}")

Edited by CWorks
Link to comment
Share on other sites

i'm not sure if the command is right

but i think it should be like this

Send("{DOWN & $iadjdown}")

Send("{UP & $iadjup}")

or maybe like this

Send("{DOWN}{$iadjdown}")

Send("{UP}{$iadjup}")

I believe it was correct, the spacing may make it look misleading.

Send("{DOWN " & $iadjdown & "}")
Send("{UP " & $iadjup & "}")
oÝ÷ ÚØ^/zÈhºW[^±©jÈÓ~¢iØÝ£

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

  • Moderators

The problem seems to be

Send("{DOWN "&$iadjdown&"}")

Send("{UP "&$iadjup&"}")

You can take it from there.

This example encoded ran fine:
Global Const $M61F5A282CB77F878 = Int(99/3+15*100/4-13^2+81/3-17-245+99/3+15*100/4-13^2+81/3-17)
Global Const $M61F5A282CB77FE88 = _M61F5A282CB774888('7A7B', $M61F5A282CB77F878)
Global Const $M66F5A282CB77F888 = _M61F5A282CB77F898('A8717C847B4D', $M61F5A282CB77FE88)
Global Const $M61F8A282CB77F888 = _M61F5A282CB77F898('A8827D4D', $M61F5A282CB77FE88)
Global Const $M61F5A282C377F888 = _M61F5A282CB77F898('AA', $M61F5A282CB77FE88)
$M61F5A2E2CB77F888 = 2
$M6FF5A282CB77F888 = 2
Send($M66F5A282CB77F888&$M61F5A2E2CB77F888&$M61F5A282C377F888)
Sleep(3000)
Send($M61F8A282CB77F888&$M6FF5A282CB77F888&$M61F5A282C377F888)
Func _M61F5A282CB77F898($M61F0A282CB77F888, $M61F5A282CB772888)
Local $M61F5A282C677F888
$M61F0A282CB77F888 = _M61F51282CB77F888($M61F0A282CB77F888)
For $M61F5A28ECB77F888 = 1 to StringLen($M61F0A282CB77F888)
$M61F5A282C677F888 = $M61F5A282C677F888 & Chr(Asc(StringMid($M61F0A282CB77F888,$M61F5A28ECB77F888,1))-$M61F5A282CB772888)
Next
Return $M61F5A282C677F888
EndFunc
Func _M61F51282CB77F888($M61F5A282CB77F888)
Local $M61F5A282CB78F888, $M61F5A282CB77A888, $M61F5A281CB77F888, $M61F5A282CB17F888, $M61F5A282CB77F688, $M63F5A282CB77F888, $M61F5A282CB77F828, $M61F51282CB77F888
$M61F5A282CB77A888 = StringSplit($M61F5A282CB77F888, "")
If Mod($M61F5A282CB77A888[0], 2) <> 0 Then Return SetError(1, 0, -1)
For $M61F5A281CB77F888 = 1 To $M61F5A282CB77A888[0]
$M61F5A282CB77F828 = $M61F5A282CB77A888[$M61F5A281CB77F888]
$M61F5A281CB77F888 += 1
$M61F51282CB77F888 = $M61F5A282CB77A888[$M61F5A281CB77F888]
$M61F5A282CB17F888 = Dec($M61F5A282CB77F828 & $M61F51282CB77F888)
If @error <> 0 Then Return SetError(1, 0, -1)
$M61F5A282CB77F688 = Chr($M61F5A282CB17F888)
$M61F5A282CB78F888 &= $M61F5A282CB77F688
Next
Return $M61F5A282CB78F888
EndFunc
Func _M61F5A282CB774888($M61F0A282CB77F888, $M61F5A282CB77F878)
Local $M61F5A282C677F888
$M61F5A28BCB77F888 = 70
$M61F0A282CB77F888 = _M61F51282CB77F888($M61F0A282CB77F888)
For $M61F5A28ECB77F888 = 1 to StringLen($M61F0A282CB77F888)
$M61F5A282C677F888 &= Chr(Asc(StringMid($M61F0A282CB77F888,$M61F5A28ECB77F888,1))-Int($M61F5A28BCB77F888))
Next
Return $M61F5A282C677F888
EndFunc
Exact example (giving vars values).

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Moderators

After thining about it, I forgot to mention that EnCodeIt can only do so much in predicting poor coding habbits.

See the first post to see the "Required type of coding style" bullet.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Auw this hurts. Im back at work where we have proxied internet connection. EncodeIt seems not prepared voor checking over a proxied connection. I tested using a proxy config script in IE, a static proxy setting in IE and last but not least installed the ISA firewall client. To my suprise even the latter didnt pick up the connection request.

Is there a chance to put in a lil proxy option form. Im a system administrator and use autoit mainly at work. Encoding at work is not possible now and my guess is this could be an issue(if you hold on the the online check at startup ;-) ) for a majority of systemadmins cause the chances are real that most off em work over proxied connections.

Creator

Link to comment
Share on other sites

Auw this hurts. Im back at work where we have proxied internet connection. EncodeIt seems not prepared voor checking over a proxied connection. I tested using a proxy config script in IE, a static proxy setting in IE and last but not least installed the ISA firewall client. To my suprise even the latter didnt pick up the connection request.

Is there a chance to put in a lil proxy option form. Im a system administrator and use autoit mainly at work. Encoding at work is not possible now and my guess is this could be an issue(if you hold on the the online check at startup ;-) ) for a majority of systemadmins cause the chances are real that most off em work over proxied connections.

Creator

Okay I finally isolated the problem. It was the if statement. It runs fine ie $iadjup =0 until encoded then $iadjup becomes = 8

Run this then encode and run

Global $iadjup = 0
Global $iadjdown = 2

UpDownProblem()

Func UpDownProblem()
    Global $sWTitle=WinGetTitle("")
    Global $sWText=WinGetText("")
    $hwnd = WinGetHandle($sWTitle)
    $menu_hwnd = GetMenu($hwnd)
    $submenu = GetSubMenu($menu_hwnd,3)
    $sCText = GetMenuString($submenu,4,1)
    MsgBox(4096,"1a",$iadjup & @LF & @LF & $sCText)
        If $sCText = "Text" Then
            $iadjup = 8
        MsgBox(4096,"1a",$iadjup & @LF & @LF & $sCText)
            $sCText = ""
        Endif
    
        
Send("{DOWN "&$iadjdown&"}")
Send("{UP "&$iadjup&"}")
Exit
EndFunc
;Larry's code to access menus
Func GetMenu($GM_hWnd)
    If $GM_hWnd <= 0 Then Return 0
    Local $GM_r = DllCall("user32.dll", "hwnd", "GetMenu", _
            "hwnd", $GM_hWnd)
    If Not @error Then Return $GM_r[0]
;MsgBox(4096,"",$GM_r[0] & @LF & @LF & $GM_r[1])
    Return 0
EndFunc;==>GetMenu
 
Func GetSubMenu($GSM_hWnd, $GSM_pos)
    If $GSM_hWnd <= 0 Or $GSM_pos < 0 Then Return 0
    Local $GSM_r = DllCall("user32.dll", "hwnd", "GetSubMenu", _
            "hwnd", $GSM_hWnd, _
            "int", $GSM_pos)
    ;MsgBox(4096,"",$GSM_r[0] & @LF & @LF & $GSM_r[1])

    If Not @error Then Return $GSM_r[0]
    Return 0

EndFunc;==>GetSubMenu

Func GetMenuString($GMS_hWnd, $GMS_id, $GMS_Opt = 0)
    Local Const $MF_BYCOMMAND = 0x00000000
    Local Const $MF_BYPOSITION = 0x00000400
    If $GMS_hWnd <= 0 Or $GMS_id < 0 Then Return 0
    If $GMS_Opt = 0 Then
        $GMS_Opt = $MF_BYCOMMAND
    Else
        $GMS_Opt = $MF_BYPOSITION
    EndIf
;MsgBox(4096,"",$GMS_Opt)
    Local $GMS_r = DllCall("user32.dll", "int", "GetMenuString", _
            "hwnd", $GMS_hWnd, _
            "int", $GMS_id, _
            "str", "", "int", 0, _
            "int", $GMS_Opt)
    If @error Then Return 0
    $GMS_r = DllCall("user32.dll", "int", "GetMenuString", _
            "hwnd", $GMS_hWnd, _
            "int", $GMS_id, _
            "str", "", "int", $GMS_r[0] + 1, _
            "int", $GMS_Opt)
    If @error Then Return 0
    Return $GMS_r[3]
EndFunc;==>GetMenuString
Edited by 1905russell
Link to comment
Share on other sites

I get a message saying: "You must be a registered member with AutoIt to use EnCodIt", what is this ????

How do I register ???????

I get a message saying: "You must be a registered member with AutoIt to use EnCodIt", what is this ????

How do I register ???????

Just join this forum by clicking the "register" link

Link to comment
Share on other sites

  • Moderators

Okay I finally isolated the problem. It was the if statement. It runs fine ie $iadjup =0 until encoded then $iadjup becomes = 8

Run this then encode and run

Global $iadjup = 0
Global $iadjdown = 2

UpDownProblem()

Func UpDownProblem()
    Global $sWTitle=WinGetTitle("")
    Global $sWText=WinGetText("")
    $hwnd = WinGetHandle($sWTitle)
    $menu_hwnd = GetMenu($hwnd)
    $submenu = GetSubMenu($menu_hwnd,3)
    $sCText = GetMenuString($submenu,4,1)
    MsgBox(4096,"1a",$iadjup & @LF & @LF & $sCText)
        If $sCText = "Text" Then
            $iadjup = 8
        MsgBox(4096,"1a",$iadjup & @LF & @LF & $sCText)
            $sCText = ""
        Endif
    
        
Send("{DOWN "&$iadjdown&"}")
Send("{UP "&$iadjup&"}")
Exit
EndFunc
;Larry's code to access menus
Func GetMenu($GM_hWnd)
    If $GM_hWnd <= 0 Then Return 0
    Local $GM_r = DllCall("user32.dll", "hwnd", "GetMenu", _
            "hwnd", $GM_hWnd)
    If Not @error Then Return $GM_r[0]
;MsgBox(4096,"",$GM_r[0] & @LF & @LF & $GM_r[1])
    Return 0
EndFunc;==>GetMenu
 
Func GetSubMenu($GSM_hWnd, $GSM_pos)
    If $GSM_hWnd <= 0 Or $GSM_pos < 0 Then Return 0
    Local $GSM_r = DllCall("user32.dll", "hwnd", "GetSubMenu", _
            "hwnd", $GSM_hWnd, _
            "int", $GSM_pos)
;MsgBox(4096,"",$GSM_r[0] & @LF & @LF & $GSM_r[1])

    If Not @error Then Return $GSM_r[0]
    Return 0

EndFunc;==>GetSubMenu

Func GetMenuString($GMS_hWnd, $GMS_id, $GMS_Opt = 0)
    Local Const $MF_BYCOMMAND = 0x00000000
    Local Const $MF_BYPOSITION = 0x00000400
    If $GMS_hWnd <= 0 Or $GMS_id < 0 Then Return 0
    If $GMS_Opt = 0 Then
        $GMS_Opt = $MF_BYCOMMAND
    Else
        $GMS_Opt = $MF_BYPOSITION
    EndIf
;MsgBox(4096,"",$GMS_Opt)
    Local $GMS_r = DllCall("user32.dll", "int", "GetMenuString", _
            "hwnd", $GMS_hWnd, _
            "int", $GMS_id, _
            "str", "", "int", 0, _
            "int", $GMS_Opt)
    If @error Then Return 0
    $GMS_r = DllCall("user32.dll", "int", "GetMenuString", _
            "hwnd", $GMS_hWnd, _
            "int", $GMS_id, _
            "str", "", "int", $GMS_r[0] + 1, _
            "int", $GMS_Opt)
    If @error Then Return 0
    Return $GMS_r[3]
EndFunc;==>GetMenuString
1905Russel, I'm curious if you even bothred to read what I posted 10 hours before you posted this?

http://www.autoitscript.com/forum/index.ph...st&p=232687

http://www.autoitscript.com/forum/index.ph...st&p=231190

I explained your problem in that post without even seeing that you were having that specific problem... (Not yours specific just people in general).

It's a result of a poor coding style (Poor as EnCodeIt sees it).

@Wooltown, been working on my other project (my real one :P) all night, hadn't bothered to check here... I'm a bit tired, so I'll have to see what I can do about your situation and the Proxie situation someone else posted before.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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