
L3G3NdKillEr
Active Members-
Posts
161 -
Joined
-
Last visited
About L3G3NdKillEr
- Birthday 09/21/1991
Profile Information
-
Location
nowhere
Recent Profile Visitors
319 profile views
L3G3NdKillEr's Achievements

Prodigy (4/7)
0
Reputation
-
Autoit with command line support
L3G3NdKillEr replied to L3G3NdKillEr's topic in AutoIt General Help and Support
thanks .. =) Any example on how to use it in script or how it works? -
I want my script to receive command-line arguments.. e.g. C:\myScript.exe -run ==> something like that. link to post or example? thanks.
-
hi, $PsList = GUICtrlCreateList("", 0, 0, 5, 410) GUICtrlSetData(-1, "item1|item2|item3") GUICtrlSetOnEvent($PsList, "Psitems") Func Psitems() $pics = GUICtrlRead($PsList) Switch $pics Case "item1" msgbox(1024, "" item1") Case "item2" msgbox(1024, "" item1") Case "item3" msgbox(1024, "" item1") endswitch endfunc how do i switch my items without listbox and then use them with left and right keys.. i don't want listbox control anymore in my gui..??
-
Its for only retrieving hard drive serial number, actually iam making it for win9x.. =]
-
hi, I want my script to read only particular string from a lengthy output.. #include <Constants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> Local $cmd = Run(@comspec & " /c diskid32 /d", @SystemDir, @SW_SHOW, $STDERR_CHILD + $STDOUT_CHILD) Local $ResponseText $nOffset = 1 While 1 $ResponseText &= StdoutRead($Cmd) If @error Then ExitLoop $array = StringRegExp($ResponseText, 'Drive Serial Num(".*?")', 0, $nOffset) If @error = 0 Then $nOffset = @extended msgbox(0, "Drive Serial Number is- ", $array) Else ExitLoop EndIf WEnd i am using this and it returns 0 in a msgbox()
-
Have a look at controlsend() in helpfile
-
I want my script to get key press while psx emulator running.. it gets, but after pressing many time.. n i am using _ispressed() func in while loop.. anyway to make my script more sensitive..?
-
ey thanks for ur replies.. @Yashied i have read #AutoIt3Wrapper_Res_File_Add= in help file but i didn't get one thing.. "#AutoIt3Wrapper_Res_File_Add= Filename[,Section [,ResName]] to be added." what does section mean..? noob here.. >_<
-
I don't want resource hacker.., i want to add images in the resources of my au3 script.. after compiling i wont need those images anymore.. is it clear..?
-
Is there a way to add images to script resource after compile..? i have looked scite4au3 help but i didn't find any example of it..? any example or any other way about it..? Regards, Xaasha
-
two hotkey timers at once
L3G3NdKillEr replied to L3G3NdKillEr's topic in AutoIt General Help and Support
[solved] -
hi all, is it possible to use two timers for two different hot keys.. e.g. if hot key 6 press after hot key 5 then hot key 6 activate for 30 seconds. and during 30 sec if i press hotkey 7 then the timer of hot key 6 stop and hot key 7 timer starts working. i want both timers to work individually at same time.. have a look at my script that may make you understand better., #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_icon=C:\Documents and Settings\saeed\My Documents\pak.ico #AutoIt3Wrapper_outfile=new.exe #AutoIt3Wrapper_Allow_Decompile=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <GUIConstants.au3> #include <File.au3> #include <misc.au3> #include <GuiConstantsEx.au3> #include <WindowsConstants.au3> HotKeySet("5", "sevenup") HotKeySet("6", "sevendown") HotKeySet("7", "ndplaya") Global $i = 0 Global $j = 0 Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("", 640, 30, 0, 450, BitOR($WS_MINIMIZEBOX, $WS_GROUP, $WS_CLIPSIBLINGS, $WS_POPUP)) $label = GUICtrlCreateLabel(" coins: ", 0, 0, 200, 200) GUICtrlSetColor($label, 0x00FF00) GUICtrlSetFont($label, 18, 400, "", "Arial") GUISetBkColor(0x0E1010) WinMove($form1, "", 0, 450) GUISetState(@SW_SHOW) WinSetOnTop($Form1, "", 1) #EndRegion ### END Koda GUI section ### While 1 Sleep(50) WEnd Func WM_NCHITTEST($hWnd, $iMsg, $iwParam, $ilParam) If $hWnd = $Form1 And $iMsg = $WM_NCHITTEST Then $id = _API_DefWindowProc($hWnd, $iMsg, $iwParam, $ilParam) If $id = 2 Then;if it is the title handle Return 1;return the client handle Else Return $id;return the real handle EndIf EndIf EndFunc ;==>WM_NCHITTEST Func _API_DefWindowProc($hWnd, $iMsg, $iwParam, $ilParam) Local $aResult $aResult = DllCall("User32.dll", "int", "DefWindowProc", "hwnd", $hWnd, "int", $iMsg, "int", $iwParam, "int", $ilParam) Return $aResult[0] EndFunc ;==>_API_DefWindowProc ;==>fuckoff Func SevenDown() HotKeySet("6") If $i = 0 Then Send("0") EndIf ConsoleWrite("sdn" & @CRLF) If $i >= 1 Then;<----changed this so I could test it. Send("1") lod3Sleep(100) Send("1") lod3Sleep(100) Send("1") EndIf If $i > 0 Then $i -= 1 SoundPlay(@WindowsDir & "\media\ir_end.wav") GUICtrlSetData($label, " coins: " & $i) $s = lod3Sleep(30000) Else $i = 0 EndIf ;HotKeySet("1") HotKeySet("6", "SevenDown") ConsoleWrite("Endsdn" & @CRLF) EndFunc ;==>SevenDown Func lod3Sleep($lt) Opt("SendKeydelay", 200) $tin = TimerInit() While TimerDiff($tin) < $lt ;if NUm5 or 5 pressed HotKeySet("5", "sevenup") HotKeySet("7", "ndplaya") if _IsPressed("36") Then Send("1") EndIf WEnd EndFunc ;==>lod3Sleep Func lod2Sleep($lt2) Opt("SendKeydelay", 200) $tin2 = TimerInit() While TimerDiff($tin2) < $lt2 ;if NUm5 or 5 pressed HotKeySet("5", "sevenup") HotKeySet("6", "SevenDown") if _IsPressed("37") Then Send("2") EndIf WEnd EndFunc Func sevenup() $i += 1 SoundPlay(@WindowsDir & "\media\ringin.wav") GUICtrlSetData($label, " coins: " & $i) EndFunc ;==>sevenup Func ndplaya() HotKeySet("7") If $i = 0 Then Send("0") EndIf ConsoleWrite("sdn" & @CRLF) If $i >= 1 Then;<----changed this so I could test it. Send("2") lod2Sleep(100) Send("2") lod2Sleep(100) Send("2") EndIf If $i > 0 Then $i -= 1 SoundPlay(@WindowsDir & "\media\ir_end.wav") GUICtrlSetData($label, " coins: " & $i) $s = lod2Sleep(30000) Else $i = 0 EndIf ;HotKeySet("1") HotKeySet("7", "ndplaya") ConsoleWrite("Endsdn" & @CRLF) EndFunc ;==>SevenDown
-
Hi Martin, Thanks for reply.., Well i've got it.., but i was wondering if there is any other way to detect..?
-
hi to all.., i want to know how do i recognize this "System Settings Changed" msgbox.. It appears when i restore Xp image file from Norton Ghost..., Does it make any reg entry which i can detect.. =O Anyway Thanks..,
-
I'm using the latest version of autoit. And i didn't try it by using mouse $f_move = False. by the way i've used that: $tabnow = _GUICtrlTab_GetCurSel($tab) $tabnew = $tabnow + 1 If $tabnew < _GUICtrlTab_GetItemCount($tab) Then _GUICtrlTab_ClickTab($tab, $tabnew)