Modify

Opened 16 years ago

Closed 15 years ago

#1751 closed Bug (No Bug)

Ctrl key stuck after send containing ^ if BlockInput is on

Reported by: mkaidor@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.6.0 Severity: None
Keywords: Cc:

Description (last modified by J-Paul Mesnage)

If BlockInput is on when a send function is called containing a carrot modifier, the Ctrl key will be stuck on. This was fixed by switching to send( "{ctrlup}foo{ctrldown}" ). Regardless, it really ought to work with send( "\carrot\foo" ). I used the word "carrot" since an actual carrot causes some of the text to superscript in the preview.

Cuplrit code:

Func CtrlSend9(  )
	Send( "\carrot\9" )
EndFunc

Func HatchGoIterate( $n )
	Send(  $n & $n & "x" )
	MouseClick( "Left" )
EndFunc

Func HatchStartAuto(  )

	;Start blocking input todai
	BlockInput( 1 )


	;Get Mouse Position
	$Pos = MouseGetPos(  )

	;Stop what I'm doing 
	MouseMove( 150 , 150 , 0 )
	Send( "{SHIFTDOWN}" )
	MouseClick( "LEFT" )
	Send( "{SHIFTUP}" )

;- THE PROBLEM IS HERE 
	;Remember camera position and selected group
	CtrlSend9(  )
	Send( "\carrot\{INSERT}" )


	;Center the mouse
	MouseMove( 960 , 470 , 0 )

	;Do It
	For $Group = 8 To 5 Step -1
		HatchGoIterate( $Group  )
	Next

	;Stop and go to last important thing 
	Send( "{INSERT}9" ) 
	MouseMove( $Pos[0] , $Pos[1] , 0 )


	;Give me back input
	BlockInput( 0 )

EndFunc

Attachments (0)

Change History (3)

comment:1 by J-Paul Mesnage, 16 years ago

Description: modified (diff)

comment:2 by J-Paul Mesnage, 16 years ago

I don't understand your repro script as \carrot is not interpreted by Send()
even \{INSERT} just send 2 keys \ and {INSERT] as \9 is sending \ and 9
Please correct your script with an application I can work with
;)

comment:3 by Valik, 15 years ago

Resolution: No Bug
Status: newclosed

Terrible bug report that doesn't demonstrate anything.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.