HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/xampp/htdocs/dpProfile/dispIcc.au3
#include <GUIConstants.au3>
#Include <File.au3>
#Include <Array.au3>
#include <String.au3>



Global $Paused
HotKeySet("{ESC}", "Terminate")

Global $iOrdinal=-1
Global $sFilename = "" ; Default file is "shell32.dll"

GUICreate("Display icc profile", 320,220, @DesktopWidth/2-160, @DesktopHeight/2-45, -1, 0x00000018); WS_EX_ACCEPTFILES



GUIStartGroup()

    $radio1 = GUICtrlCreateRadio("vx24", 20, 20, 50, 20)
	$radio2 = GUICtrlCreateRadio("vx238", 20, 40, 50, 20)
	$radio3 = GUICtrlCreateRadio("M3", 20, 60, 50, 20)
	

GuiCtrlCreateLabel("icc name: ", 15, 125, 60, 16)
$hFile1 = GUICtrlCreateInput($sFilename, 90,  125, 185, 16, -1)


;$hToggle = GUICtrlCreateButton("by Name", 300,  45, 60, 24, $BS_FLAT)
$btn = GUICtrlCreateButton (" �}�l", 20,  175, 60, 20)
$btn2 = GUICtrlCreateButton ("��ESC����", 85 , 175, 80, 20)

GUISetState () 

While 1
    $iMsg = GUIGetMsg()
    Select

	Case $iMsg  = $radio1 And BitAND(GUICtrlRead($radio1), $GUI_CHECKED) = $GUI_CHECKED
                $status="vx24"
   Case $iMsg  = $radio2 And BitAND(GUICtrlRead($radio2), $GUI_CHECKED) = $GUI_CHECKED
                $status="vx238"
	Case $iMsg  = $radio3 And BitAND(GUICtrlRead($radio3), $GUI_CHECKED) = $GUI_CHECKED
				$status="M3"
				

				

	Case $iMsg = $hFile1
            ;GUICtrlSetData($hFile1, $sTmpFile); GUI will be updated at next iteration
			$iccname=GUICtrlRead($hFile1)
			;MsgBox (4096, "drag drop file", $path_pdf
			
	Case $iMsg= $btn
			;$iOrdinal = 1
				GUICtrlSetData($btn, "�B�@��")
				;WinSetTitle($hGui,"","Icon Selector by Name value")
			$k = 0
			
While $k <= 1000000000
   			; msgbox(0,"press"&$k,$status,1) 	
			;msgbox(0,"barcode",$barcode,1)
 
			sleep(500)
 $k = $k + 1			


msgbox(0,$iccname,$status)

run("cmd.exe")
sleep(500)
send("^+1")
;send("C:\xampp\htdocs\dpReport\")
sleep(500)

if $status='vx24' Then
sleep(500)
send("dispread -v -dweb vx24")
sleep(1000)
send("{enter}")
sleep(2000)

ProcessWaitClose("dispread.exe")
sleep(3000)
filecopy("vx24.ti3", $iccname&"-24.ti3")
sleep(1000)

run("cmd.exe")
sleep(500)
send("^+1")
;send("C:\xampp\htdocs\dpReport\")
sleep(500)

send("colprof -v "&$iccname&"-24")
sleep(1000)
send("{enter}")
sleep(2000)

ProcessWaitClose("colprof.exe")
sleep(3000)




elseif $status='vx238' Then
   
sleep(500)
send("dispread -v -dweb vx238")
sleep(1000)
send("{enter}")
sleep(2000)

ProcessWaitClose("dispread.exe")
sleep(3000)
filecopy("vx238.ti3", $iccname&"-238.ti3")
sleep(1000)

run("cmd.exe")
sleep(500)
send("^+1")
;send("C:\xampp\htdocs\dpReport\")
sleep(500)

send("colprof -v "& $iccname&"-238")
sleep(1000)
send("{enter}")
sleep(2000)
ProcessWaitClose("colprof.exe")
sleep(3000)

endif




								 if  $iOrdinal=1 then 
									$iOrdinal=-1 
								GUICtrlSetData($btn, "�}�lx")
								
								MsgBox(0,"","����ʬ�")
										exitloop
							 endif
	  wend;;;;for $k
	Case $iMsg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
Wend;;1
Func Terminate()
    ;ProcessClose("Wscript.exe")
    Exit 0
   
	;$iOrdinal=1
 EndFunc