ProgrammingBrain Posted September 24, 2010 Share Posted September 24, 2010 why my compiled scripts using win xp style not win 7 !can any one help to make my script use win 7 style after been compiledhere is an example before compiling :win 7 styleafter compiling :win xp style Link to comment Share on other sites More sharing options...
wakillon Posted September 24, 2010 Share Posted September 24, 2010 Show your script for more details AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
ProgrammingBrain Posted September 24, 2010 Author Share Posted September 24, 2010 here you are expandcollapse popup#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <ListViewConstants.au3> #include <WindowsConstants.au3> #Include <GuiListView.au3> Global $lastchar="" #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 198, 315, 191, 124) $ListView = GUICtrlCreateListView("Chars", 0, 0, 201, 249);,BitOR($LVS_REPORT,$LVS_NOCOLUMNHEADER)) GUICtrlSetStyle($ListView,$LVS_REPORT) $check=GUICtrlCreateCheckbox("Filter",150,260,100,20) ;$chars=_GUICtrlListView_AddColumn($ListView, "Chars") _GUICtrlListView_SetColumnWidth($ListView, 0, 195) $random = GUICtrlCreateButton("Random Choice", 19, 288, 154, 25) $add = GUICtrlCreateButton("+", 104, 256, 25, 25) $remove = GUICtrlCreateButton("-", 64, 256, 25, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### If FileExists(@ScriptDir&"\charsname_random_choise.ini")<> 1 Then IniWriteSection (@ScriptDir& "\charsname_random_choise.ini", "", "") IniDelete ( @ScriptDir& "\charsname_random_choise.ini", "" ) EndIf read_ini() While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $add $inputname=InputBox("Add new char","Enter Char") IniWriteSection ( @ScriptDir& "\charsname_random_choise.ini", $inputname, "") _GUICtrlListView_AddItem($ListView,$inputname) Case $remove $sel_chars=_GUICtrlListView_GetSelectedIndices($ListView, True) If $sel_chars[0] <> 0 Then ;MsgBox(0,"Warning","Delete Selected Item(S) ?") For $i=1 to $sel_chars[0] ;MsgBox(0,"",$sel_chars[$i]) _GUICtrlListView_DeleteItem(GUICtrlGetHandle($ListView), $sel_chars[$i]) IniDelete( @ScriptDir& "\charsname_random_choise.ini",_GUICtrlListView_GetItemText($ListView, $sel_chars[$i])) Sleep(200) Next EndIf Case $random $count=_GUICtrlListView_GetItemCount($ListView) If GUICtrlRead ( $check )=$GUI_CHECKED And $lastchar <> "" Then Do $rnum=Random ( 1,$count ,1) Until $rnum <> $lastchar $lastchar=$rnum _GUICtrlListView_SetItemSelected($ListView, $rnum-1) MsgBox(0,"Selected Char",_GUICtrlListView_GetItemText($ListView, $rnum-1)) Else $rnum=Random ( 1,$count ,1) $lastchar=$rnum _GUICtrlListView_SetItemSelected($ListView, $rnum-1) ;MsgBox(0,"unchecked",$rnum) MsgBox(0,"Random Char Name",_GUICtrlListView_GetItemText(GUICtrlGetHandle($ListView), $rnum-1)) EndIf Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func read_ini() $charsname=IniReadSectionNames ( @ScriptDir& "\charsname_random_choise.ini") If Not @error Then For $i=1 to $charsname[0] _GUICtrlListView_AddItem($ListView,$charsname[$i]) Next EndIf EndFunc Link to comment Share on other sites More sharing options...
wakillon Posted September 24, 2010 Share Posted September 24, 2010 It doesn't give me xp style ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
ProgrammingBrain Posted September 24, 2010 Author Share Posted September 24, 2010 compile it (don't run it from SciTE Editor ) run it again and you will see the xp style Link to comment Share on other sites More sharing options...
wakillon Posted September 24, 2010 Share Posted September 24, 2010 compile it (don't run it from SciTE Editor )run it again and you will see the xp style It doesn't give me xp style, even compiled ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
ProgrammingBrain Posted September 24, 2010 Author Share Posted September 24, 2010 lol its works now but i noticed that if i complied the script using script-> mouse right click -> compile then it will use xp style but if i compile it using scite editor -> tools -> Build then it will use win 7 style i don't know why but its strange Thank you Link to comment Share on other sites More sharing options...
wakillon Posted September 24, 2010 Share Posted September 24, 2010 I can't test it, i have suppress this right menu item... AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
whim Posted September 24, 2010 Share Posted September 24, 2010 Maybe a manifest issue, check this forum thread (or check other results for forum search on "manifest")Can't test though - diehard classic mode fan here ...cheers,whim Link to comment Share on other sites More sharing options...
Yashied Posted September 24, 2010 Share Posted September 24, 2010 Check the following. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
whim Posted September 25, 2010 Share Posted September 25, 2010 Hi Yashied Not sure if you are referring to my post or the original question ? If you meant my post: I'm using systemwide settings (Classic Theme + Classic Explorer) so all apps open up that way by default ... cheers, whim Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now