Jump to content

b3vad

Members
  • Posts

    8
  • Joined

  • Last visited

b3vad's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I like how it's simple to and straight to point. can you take a look at this code and tell me what I've done wrong? it woks fine without MouseClick("left") but after I add this line it runs the function nonstop. thank you. #include <MouseTrapEvent.au3> _BlockMouseClicksInput(1) while 1 sleep(500) WEnd Func _BlockMouseClicksInput($iOpt = 1) If $iOpt = 1 Then _MouseTrapEvent("XClick1", "_XClick1" ); click x1 - intercept user defined block Else _MouseTrapEvent("XClick1") ; deregister EndIf EndFunc func _XClick1() MouseClick("left") sleep(100) Send("{DOWN}") sleep(100) Send("{ENTER}") Sleep(100) Send("{DOWN}") sleep(100) Send("{ENTER}") endfunc
  2. so that's what I was doing wrong thanks
  3. Hi I'm trying to define a key inside a variable but I have no idea what I'm doing. can somebody point me at the right direction please. trying to define Send("{DEL 4}") as $key='"{DEL'+4+'}"' Send($key) Func breakit() $jdi = StringSplit($for, ".") EndFunc Func doit() send("{F2}") if $jdi[0]=0 Then send("{HOME}") $s="{LEFT " $d="{DEL " Else send("{END}") $s='"{RIGHT '+2+'}"' $d='"{BS '+2+'}"' EndIf rest() EndFunc as you can see tried some things but nothing works so far. thank you
  4. I'm back (week ends) I got the whole code awesome work just the Mode part is some math monster i can't understand the whole thing and don't bother to explain it I spend 4 hrs Google and wiki it but its way above 2+2 that i can understand ty for help I'll try to find more problems to ask
  5. I got my second problem GUI always sends messages (I think a 0 on each loop) and now i need a way to find my messages between them (and an short one because i don't want to creat a long case ) any idea?
  6. will do sir Cristal clear ---------------------------------- Now it's time for new problem : Getting clipboard and put in control data here is the code #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $lc = "empty" $clip = "empty" $cnum = 0 $ans = "" Global $x[21] $hGUI = GUICreate("Cliplog", 500, 730, -513, 10, BitOR($WS_SIZEBOX, $WS_POPUP)) For $i = 1 To UBound($x) - 1 $x[$i] = GUICtrlCreateRadio("c" & $i, 5, 20 * $i, 490, 17, BitOR($BS_RIGHT,$BS_RIGHTBUTTON)) GUICtrlSetResizing(-1, $GUI_DOCKRIGHT + $GUI_DOCKWIDTH) Next GUISetState(@SW_SHOW) WinSetOnTop($hGUI,"",1) While 1 $nMsg = GUIGetMsg() $clip = ClipGet() if $clip <> $lc Then $cnum = $cnum+1 GUICtrlSetData($x[$cnum], $clip) $lc = $clip if $cnum >= UBound($x) - 1 Then $cnum = 0 EndIf EndIf ;~ if $nMsg = $GUI_EVENT_CLOSE Then ;~ Exit ;~ Else ;~ $ans = GUICtrlRead($x[1], 1) ;~ ClipPut($ans) ;~ $lc = $ans ;~ EndIf WEnd my code have 2 problems 1- when I removeor move down "$nMsg = GUIGetMsg()" from line 22 it seems "GUICtrlSetData($x[$cnum], $clip)" does an extra move and sets 2 control 2- second part that is in comment right now causes first part stop working ty for help
  7. thank you I always had a hard time understanding the arrays as far as i got: Global $aRadios[11] " I have to declare the number of things (I don't know the name of them) in my array " UBound($aRadios) - 1 "means end of the things and it starts with 0" actually GUI was cl (L) but i got the point an will try to use better name for variables
  8. I have: #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $cl = GUICreate("Cliplog", 500, 730, 513, 10, BitOR($WS_SIZEBOX,$WS_POPUP)) $c1 = GUICtrlCreateRadio("c1", 5, 20, 490, 17, BitOR($BS_RIGHT,$BS_RIGHTBUTTON)) GUICtrlSetResizing($c1, $GUI_DOCKRIGHT+$GUI_DOCKWIDTH) $c2 = GUICtrlCreateRadio("c2", 5, 40, 490, 17, BitOR($BS_RIGHT,$BS_RIGHTBUTTON)) GUICtrlSetResizing($c2, $GUI_DOCKRIGHT+$GUI_DOCKWIDTH) $c3 = GUICtrlCreateRadio("c3", 5, 60, 490, 17, BitOR($BS_RIGHT,$BS_RIGHTBUTTON)) GUICtrlSetResizing($c3, $GUI_DOCKRIGHT+$GUI_DOCKWIDTH) $c4 = GUICtrlCreateRadio("c4", 5, 80, 490, 17, BitOR($BS_RIGHT,$BS_RIGHTBUTTON)) GUICtrlSetResizing($c4, $GUI_DOCKRIGHT+$GUI_DOCKWIDTH) $c5 = GUICtrlCreateRadio("c5", 5, 100, 490, 17, BitOR($BS_RIGHT,$BS_RIGHTBUTTON)) GUICtrlSetResizing($c5, $GUI_DOCKRIGHT+$GUI_DOCKWIDTH) $c6 = GUICtrlCreateRadio("c6", 5, 120, 490, 17, BitOR($BS_RIGHT,$BS_RIGHTBUTTON)) GUICtrlSetResizing($c6, $GUI_DOCKRIGHT+$GUI_DOCKWIDTH) $c7 = GUICtrlCreateRadio("c7", 5, 140, 490, 17, BitOR($BS_RIGHT,$BS_RIGHTBUTTON)) GUICtrlSetResizing($c7, $GUI_DOCKRIGHT+$GUI_DOCKWIDTH) $c8 = GUICtrlCreateRadio("c8", 5, 160, 490, 17, BitOR($BS_RIGHT,$BS_RIGHTBUTTON)) GUICtrlSetResizing($c8, $GUI_DOCKRIGHT+$GUI_DOCKWIDTH) $c9 = GUICtrlCreateRadio("c9", 5, 180, 490, 17, BitOR($BS_RIGHT,$BS_RIGHTBUTTON)) GUICtrlSetResizing($c9, $GUI_DOCKRIGHT+$GUI_DOCKWIDTH) $c10 = GUICtrlCreateRadio("c10", 5, 200, 490, 17, BitOR($BS_RIGHT,$BS_RIGHTBUTTON)) GUICtrlSetResizing($c10, $GUI_DOCKRIGHT+$GUI_DOCKWIDTH) GUISetState(@SW_SHOW) WinSetOnTop($cl,"",1) While 1 sleep(100) WEnd and I wonder if its posible to create them within a loop? the problem is creating diffrent variables and had no chance with arrays either any idea will be cool
×
×
  • Create New...